Пример #1
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);
   }
 }
Пример #2
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);
   }
 }