예제 #1
0
파일: Field.java 프로젝트: eemi2010/ext4j
 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);
   }
 }
예제 #2
0
파일: Field.java 프로젝트: eemi2010/ext4j
 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);
   }
 }
예제 #3
0
 /**
  * An element, into which the resize operation must be constrained.
  *
  * @param element
  */
 public void setContrainTo(ExtElement element) {
   JsoHelper.setAttribute(jsObj, "constrainTo", element.getJsObj());
 }
예제 #4
0
 /** The Element to resize. */
 public void setTarget(ExtElement el) {
   JsoHelper.setAttribute(jsObj, "target", el.getJsObj());
 }
예제 #5
0
파일: Window.java 프로젝트: eemi2010/ext4j
 /**
  * Element from which the window should animate while opening.
  *
  * <p>Defaults to: null
  */
 public void setAnimateTarget(ExtElement target) {
   setAttribute("animateTarget", target.getJsObj(), true, true);
 }