Esempio n. 1
0
 /**
  * Sets the text.
  *
  * @param text the text
  */
 public void setText(String text) {
   if (this.text != text) {
     this.text = text;
     if (rendered) {
       textEl.update((text == null || text.length() == 0) ? " " : text);
       autoWidth();
     }
   }
 }
Esempio n. 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();
   }
 }