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

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


   * @param elem the element to align to
   * @param pos the postion
   * @param offsets the offsets
   */
  public void show(Element elem, String pos, int[] offsets) {
    if (!fireEvent(Events.BeforeShow, new ComponentEvent(this))) {
      return;
    }
    alignElem = elem;
    alignPos = pos;
    alignOffsets = offsets;
View Full Code Here


   *
   * @param x the x coordinate
   * @param y the y coordinate
   */
  public void showAt(int x, int y) {
    if (!fireEvent(Events.BeforeShow, new ComponentEvent(this))) {
      return;
    }
    alignPoint = new Point(x, y);
    onShowPopup();
  }
View Full Code Here

  protected void afterHide() {
    RootPanel.get().remove(this);
    hidden = true;
    hideShadow();
    fireEvent(Events.Hide, new ComponentEvent(this));
  }
View Full Code Here

      focus();
    }

    setZIndex(XDOM.getTopZIndex());

    fireEvent(Events.Open, new ComponentEvent(this));
  }
View Full Code Here

    if (GXT.isAriaEnabled()) {
      Accessibility.setState(getElement(), "aria-expanded", "false");
      collapseBtn.setTitle(GXT.MESSAGES.panel_expandPanel());
    }

    ComponentEvent ce = new ComponentEvent(this);
    fireEvent(Events.Collapse, ce);
  }
View Full Code Here

    if (GXT.isAriaEnabled()) {
      Accessibility.setState(getElement(), "aria-expanded", "true");
      collapseBtn.setTitle(GXT.MESSAGES.panel_collapsePanel());
    }

    ComponentEvent ce = new ComponentEvent(this);
    fireEvent(Events.Expand, ce);
  }
View Full Code Here

    draggable.addListener(Events.DragCancel, dragListener);

    render(DOM.createDiv());

    if (resizeWidget.isAttached()) {
      ComponentEvent be = createComponentEvent(null);
      be.setType(Events.Attach);
      listener.handleEvent(be);
    }

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

  }

  public void onComponentEvent(ComponentEvent ce) {
    super.onComponentEvent(ce);
    if (ce.getEventTypeInt() == Event.ONSCROLL) {
      fireEvent(Events.Scroll, new ComponentEvent(this));
    }
  }
View Full Code Here

    if (textTopElem != null && w != 0) {
      textTopElem.removeStyleName("x-hidden").setWidth((int) w, true);
    } else if (textTopElem != null && w == 0) {
      textTopElem.addStyleName("x-hidden");
    }
    fireEvent(Events.Update, new ComponentEvent(this));
    return this;
  }
View Full Code Here

    grid.setCellPadding(0);
    grid.addClickHandler(new ClickHandler() {

      public void onClick(ClickEvent event) {
        Event evt = DOM.eventGetCurrentEvent();
        ComponentEvent be = new ComponentEvent(DatePicker.this, evt);
        onDayClick(be);
      }
    });
    String s = GXT.isAriaEnabled() ? "<a role=gridcell tabindex=0><span role=presentation></span></a>"
        : "<a href=#><span></span></a>";
View Full Code Here

TOP

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

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.