public void setNavBarTextLogo(MaterialLink textLogo) { this.text = lblLogo.getText(); this.lblLogo = textLogo; imgLogo.removeFromParent(); }
public void setText(String text) { this.text = text; imgLogo.removeFromParent(); lblLogo.setText(text); }