Esempio n. 1
0
 /**
  * True to disable the field (defaults to false).
  *
  * @param disabled true to disable
  */
 public void setDisabled(boolean disabled) {
   if (!isRendered()) {
     setAttribute("disabled", disabled, true, true);
   } else {
     super.setDisabled(disabled);
   }
 }
Esempio n. 2
0
 public void show() {
   super.show();
   if (!isRendered()) {
     Scheduler.get()
         .scheduleDeferred(
             new ScheduledCommand() {
               @Override
               public void execute() {
                 show();
               }
             });
   } else {
     ExtElement elem = getEl().up(".x-form-item");
     if (elem != null) elem.setDisplayed(true);
   }
 }
Esempio n. 3
0
 public void hide() {
   super.hide();
   if (!isRendered() && !this.isHidden()) {
     Scheduler.get()
         .scheduleDeferred(
             new ScheduledCommand() {
               @Override
               public void execute() {
                 hide();
               }
             });
   } else if (isRendered()) {
     ExtElement elem = getEl().up(".x-form-item");
     if (elem != null) elem.setDisplayed(false);
   }
 }
Esempio n. 4
0
 /**
  * A CSS class to apply to the field's underlying element.
  *
  * @param cls the CSS class
  * @throws IllegalStateException this property cannot be changed after the Component has been
  *     rendered
  */
 public void setCls(String cls) throws IllegalStateException {
   super.setCls(cls);
 }