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

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


  protected void onBlur(ComponentEvent be) {
    if (!GXT.isOpera && focusStyle != null) {
      getFocusEl().removeStyleName(focusStyle);
    }
    hasFocus = false;
    fireEvent(Events.Blur, new FieldEvent(this));
  }
View Full Code Here


      public void run() {
        listView.getSelectionModel().deselectAll();
      }
    };
    t.schedule(100);
    fireEvent(Events.Collapse, new FieldEvent(this));
  }
View Full Code Here

    list.show();
    restrict();
    list.el().setVisibility(true);

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

    eventPreview.getIgnoreList().add(getElement());
  }

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

    super.onRender(target, index);

    triggerListener = new EventListener() {
      public void onBrowserEvent(Event event) {
        FieldEvent ce = new FieldEvent(TwinTriggerField.this);
        ce.event = event;
        ce.type = DOM.eventGetType(event);
        ce.stopEvent();
        onTriggerEvent(ce);
      }
    };
    DOM.sinkEvents(wrap.dom, Event.FOCUSEVENTS);
    DOM.sinkEvents(trigger.dom, Event.ONCLICK | Event.MOUSEEVENTS);
View Full Code Here

    super.onRender(target, index);

    triggerListener = new EventListener() {
      public void onBrowserEvent(Event event) {
        FieldEvent ce = new FieldEvent(TriggerField.this);
        ce.event = event;
        ce.type = DOM.eventGetType(event);
        ce.stopEvent();
        onTriggerEvent(ce);
      }
    };
    DOM.sinkEvents(wrap.dom, Event.FOCUSEVENTS);
    DOM.sinkEvents(trigger.dom, Event.ONCLICK | Event.MOUSEEVENTS);
View Full Code Here

      Element elem = DOM.getElementById(messageTarget);
      if (elem != null) {
        elem.setInnerHTML("");
      }
    }
    fireEvent(Events.Valid, new FieldEvent(this));
  }
View Full Code Here

  @Override
  public void focus() {
    super.focus();
    if (rendered) {
      onFocus(new FieldEvent(this));
    }
  }
View Full Code Here

      if (elem != null) {
        elem.setInnerHTML(msg);
      }
    }

    FieldEvent fe = new FieldEvent(this);
    fe.message = msg;
    fireEvent(Events.Invalid, fe);
  }
View Full Code Here

    fireEvent(Events.Invalid, fe);
  }

  public void onComponentEvent(ComponentEvent ce) {
    super.onComponentEvent(ce);
    FieldEvent fe = new FieldEvent(this);
    fe.event = ce.event;
    switch (ce.type) {
      case Event.ONFOCUS:
        onFocus(ce);
        break;
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.