Examples of MenuEvent


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

  protected void deactivate() {
    El li = el().getParent();
    if (li != null) {
      li.removeStyleName(activeStyle);
    }
    MenuEvent me = new MenuEvent(parentMenu);
    me.setItem(this);
    fireEvent(Events.Deactivate, me);
  }
View Full Code Here

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

    }
  }

  protected void onClick(ComponentEvent be) {
    be.stopEvent();
    MenuEvent me = new MenuEvent(parentMenu);
    me.setItem(this);
    me.setEvent(be.getEvent());
    if (!disabled && fireEvent(Events.Select, me)) {
      handleClick(be);
    }
  }
View Full Code Here

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

  public void setChecked(boolean state, boolean supressEvent) {
    if (!rendered) {
      this.checked = state;
      return;
    }
    MenuEvent me = new MenuEvent(parentMenu);
    me.setItem(this);
    me.setChecked(state);
    if (supressEvent || fireEvent(Events.BeforeCheckChange, me)) {

      if (getGroup() == null) {
        setIcon(state ? GXT.IMAGES.checked() : GXT.IMAGES.unchecked());
        el().setStyleName("x-menu-checked", state);
View Full Code Here

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

  public void setDate(Date date) {
    picker.setValue(date);
  }

  protected void onPickerSelect(DatePickerEvent be) {
    MenuEvent e = new MenuEvent(this);
    e.setDate(be.getDate());
    fireEvent(Events.Select, e);
  }
View Full Code Here

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

    if (disabled) {
      return;
    }
    El li = el().getParent();
    li.addStyleName(activeStyle);
    MenuEvent me = new MenuEvent(parentMenu);
    me.item = this;
    fireEvent(Events.Activate, me);
  }
View Full Code Here

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

  }

  protected void deactivate() {
    El li = el().getParent();
    li.removeStyleName(activeStyle);
    MenuEvent me = new MenuEvent(parentMenu);
    me.item = this;
    fireEvent(Events.Deactivate, me);
  }
View Full Code Here

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

      parentMenu.hide(true);
    }
  }

  protected void onClick(ComponentEvent be) {
    MenuEvent me = new MenuEvent(parentMenu);
    me.item = this;
    if (!disabled && fireEvent(Events.Select, me)) {
      handleClick(be);
    }
  }
View Full Code Here

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

   * @param deep true to close all parent menus
   * @return this
   */
  public Menu hide(boolean deep) {
    if (showing) {
      MenuEvent me = new MenuEvent(this);
      if (fireEvent(Events.BeforeHide, me)) {
        if (activeItem != null) {
          activeItem.deactivate();
          activeItem = null;
        }
View Full Code Here

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

   * @param elem the element to align to
   * @param pos the {@link El#alignTo} anchor position to use in aligning to the
   *          element (defaults to defaultAlign)
   */
  public void show(Element elem, String pos) {
    MenuEvent me = new MenuEvent(this);
    if (fireEvent(Events.BeforeShow, me)) {
      RootPanel.get().add(this);
      showing = true;
      el().makePositionable(true);

View Full Code Here

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

   *
   * @param x the x coordinate
   * @param y the y coordinate
   */
  public void showAt(int x, int y) {
    MenuEvent me = new MenuEvent(this);
    if (fireEvent(Events.BeforeShow, me)) {
      RootPanel.get().add(this);
      el().makePositionable(true);

      // add menu to ignore list
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.