Package com.extjs.gxt.ui.client.event

Examples of com.extjs.gxt.ui.client.event.FieldEvent


    return null;
  }

  protected void fireChangeEvent(Object oldValue, Object value) {
    if (!Util.equalWithNull(oldValue, value)) {
      FieldEvent e = new FieldEvent(this);
      e.setOldValue(oldValue);
      e.setValue(value);
      fireEvent(Events.Change, e);
    }
  }
View Full Code Here


      }

      D v = getValue();
      value = v;
      fireChangeEvent(focusValue, v);
      fireEvent(Events.Blur, new FieldEvent(this));
    }
  }
View Full Code Here

      if (getInputEl() != null) {
        getInputEl().addStyleName(focusStyle);
      }
      hasFocus = true;
      focusValue = getValue();
      fireEvent(Events.Focus, new FieldEvent(this));
    }
  }
View Full Code Here

      errorIcon.hide();
    }
  }

  protected void onKeyDown(FieldEvent fe) {
    fireEvent(Events.KeyDown, new FieldEvent(this, fe.getEvent()));
  }
View Full Code Here

  protected void onKeyDown(FieldEvent fe) {
    fireEvent(Events.KeyDown, new FieldEvent(this, fe.getEvent()));
  }

  protected void onKeyPress(FieldEvent fe) {
    fireEvent(Events.KeyPress, new FieldEvent(this, fe.getEvent()));
  }
View Full Code Here

  protected void onKeyUp(FieldEvent fe) {
    if (autoValidate && validationTask != null) {
      validationTask.delay(validationDelay);
    }
    fireEvent(Events.KeyUp, new FieldEvent(this, fe.getEvent()));
  }
View Full Code Here

    if (GXT.isAriaEnabled()) {
      // inspect 32 is keeping focus on hidden list item in dropdown
      input.blur();
      input.focus();
    }
    fireEvent(Events.Collapse, new FieldEvent(this));
  }
View Full Code Here

  public void doQuery(String q, boolean forceAll) {
    if (q == null) {
      q = "";
    }

    FieldEvent fe = new FieldEvent(this);
    fe.setValue(q);
    if (!fireEvent(Events.BeforeQuery, fe)) {
      return;
    }

    if (forceAll || q.length() >= minChars) {
View Full Code Here

    list.el().updateZIndex(0);
    restrict();

    eventPreview.add();
    expanded = true;
    fireEvent(Events.Expand, new FieldEvent(this));
  }
View Full Code Here

    setAriaState("aria-owns", listView.getId());
    setAriaRole("combobox");
  }

  protected void onSelect(D model, int index) {
    FieldEvent fe = new FieldEvent(this);
    if (fireEvent(Events.BeforeSelect, fe)) {
      setValue(model);
      collapse();
      fireEvent(Events.Select, fe);
    }
View Full Code Here

TOP

Related Classes of com.extjs.gxt.ui.client.event.FieldEvent

Copyright © 2018 www.massapicom. 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.