@Override protected void afterRender() { super.afterRender(); setTabIndex(tabIndex); setIcon(icon); autoWidth(); }
/** * Sets the button's text. * * @param text the new text */ public void setText(String text) { this.text = text; if (rendered) { if (text != null && text.equals("")) { text = " "; } buttonEl.update(text); autoWidth(); } }