Beispiel #1
0
  @Override
  protected void afterRender() {
    super.afterRender();

    setTabIndex(tabIndex);

    setIcon(icon);

    autoWidth();
  }
Beispiel #2
0
 /**
  * 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();
   }
 }