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

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


    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

      Element elem = XDOM.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.setMessage(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.setEvent(ce.getEvent());
    switch (ce.getEventTypeInt()) {
      case Event.ONFOCUS:
        onFocus(ce);
        break;
      case Event.ONBLUR:
View Full Code Here

    });
  }

  @Override
  protected ComponentEvent createComponentEvent(Event event) {
    return new FieldEvent(this);
  }
View Full Code Here

    }
  }

  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

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.