Examples of DelayedTask


Examples of com.extjs.gxt.ui.client.util.DelayedTask

        doRefresh();
      }

    });

    task = new DelayedTask(new Listener<BaseEvent>() {
      public void handleEvent(BaseEvent be) {
        int columnIndex = grid.getColumnModel().getIndexById(RowNumberer.this.getId());
        ColumnData columnData = grid.getView().getColumnData().get(columnIndex);
        ListStore<ModelData> store = (ListStore<ModelData>) grid.getStore();
        String property = RowNumberer.this.getDataIndex();
View Full Code Here

Examples of com.extjs.gxt.ui.client.util.DelayedTask

      ComponentEvent be = createComponentEvent(null);
      be.setType(Events.Attach);
      listener.handleEvent(be);
    }

    delay = new DelayedTask(new Listener<ComponentEvent>() {
      public void handleEvent(ComponentEvent ce) {
        sync();
      }
    });
  }
View Full Code Here

Examples of com.extjs.gxt.ui.client.util.DelayedTask

   */
  public void setTypeAhead(boolean typeAhead) {
    this.typeAhead = typeAhead;
    if (rendered) {
      if (typeAhead && taTask == null) {
        taTask = new DelayedTask(new Listener<BaseEvent>() {
          public void handleEvent(BaseEvent be) {
            onTypeAhead();
          }
        });
      } else if (!typeAhead && taTask != null) {
View Full Code Here

Examples of com.extjs.gxt.ui.client.util.DelayedTask

    if (mode.equals("local")) {
      minChars = 0;
    }

    dqTask = new DelayedTask(new Listener<BaseEvent>() {
      public void handleEvent(BaseEvent be) {
        initQuery();
      }
    });

    if (valueField != null) {
      hiddenInput = Document.get().createHiddenInputElement().cast();
      hiddenInput.setName(getName() + "-hidden");
      getElement().appendChild(hiddenInput);
    }

    if (typeAhead) {
      taTask = new DelayedTask(new Listener<BaseEvent>() {
        public void handleEvent(BaseEvent be) {
          onTypeAhead();
        }
      });
    }
View Full Code Here

Examples of com.extjs.gxt.ui.client.util.DelayedTask

      container = (Container<?>) ct;
      if (ct != null) {
        ct.addListener(Events.Remove, containerListener);
        ct.addListener(Events.Add, containerListener);
        if (resizeTask == null) {
          resizeTask = new DelayedTask(new Listener<BaseEvent>() {
            public void handleEvent(BaseEvent be) {
              if (container != null) {
                layout();
              }
            }
View Full Code Here

Examples of com.extjs.gxt.ui.client.util.DelayedTask

    return style;
  }

  protected void clean() {
    if (cleanTask == null) {
      cleanTask = new DelayedTask(new Listener<BaseEvent>() {
        public void handleEvent(BaseEvent be) {
          doClean();
        }
      });
    }
View Full Code Here

Examples of com.extjs.gxt.ui.client.util.DelayedTask

    }
  }

  protected void update() {
    if (updateTask == null) {
      updateTask = new DelayedTask(new Listener<BaseEvent>() {
        public void handleEvent(BaseEvent be) {
          doUpdate();
        }
      });
    }
View Full Code Here

Examples of com.extjs.gxt.ui.client.util.DelayedTask

  protected void clean() {
    if (grid == null || !grid.isViewReady() || !bufferEnabled) {
      return;
    }
    if (cleanTask == null) {
      cleanTask = new DelayedTask(new Listener<BaseEvent>() {
        public void handleEvent(BaseEvent be) {
          doClean();
        }
      });
    }
View Full Code Here

Examples of com.extjs.gxt.ui.client.util.DelayedTask

  protected void update() {
    if (grid == null || !grid.isViewReady() || !bufferEnabled) {
      return;
    }
    if (renderTask == null) {
      renderTask = new DelayedTask(new Listener<BaseEvent>() {
        public void handleEvent(BaseEvent be) {
          doUpdate();
        }
      });
    }
View Full Code Here

Examples of com.extjs.gxt.ui.client.util.DelayedTask

   *
   * @param autoValidate true to validate on each key press
   */
  public void setAutoValidate(boolean autoValidate) {
    if (!this.autoValidate && autoValidate) {
      validationTask = new DelayedTask(new Listener<BaseEvent>() {
        public void handleEvent(BaseEvent be) {
          validate();
        }
      });
    } else if (!autoValidate && validationTask != null) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.