Examples of ComponentEvent


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

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

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

      focus();
    }

    setZIndex(XDOM.getTopZIndex());

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

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

   */
  protected boolean insert(T item, int index) {
    ContainerEvent<?, ?> containerEvent = createContainerEvent(item);
    containerEvent.setIndex(index);
    if (fireEvent(Events.BeforeAdd, containerEvent)) {
      ComponentEvent componentEvent = item.createComponentEvent(null);
      if (item.fireEvent(Events.BeforeAdopt, componentEvent)) {
        index = adjustIndex(item, index);
        item.removeFromParent();
        if (item.isRendered()) {
          // make sure to detach it from the dom first
View Full Code Here

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

  protected boolean remove(T component, boolean force) {
    ContainerEvent containerEvent = createContainerEvent(component);
    containerEvent.setItem(component);
    containerEvent.setIndex(indexOf(component));
    if (fireEvent(Events.BeforeRemove, containerEvent) || force) {
      ComponentEvent componentEvent = component.createComponentEvent(null);
      if (component.fireEvent(Events.BeforeOrphan, componentEvent) || force) {
        onRemove(component);

        if (attachChildren) {
          assert component.getParent() == this :"component is not a child of this container";
View Full Code Here

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

    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

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

    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

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

    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

Examples of java.awt.event.ComponentEvent

     * layers not firing ComponentEvents when hidden. This method calls
     * componentHidden, which in turn calls cleanUp.
     */
    public void killWindow() {

        ComponentEvent ce = null;
        if (display != null) {
            ce = display.kill();
        }

        if (ce != null) {
View Full Code Here

Examples of java.awt.event.ComponentEvent

            return this;
        }

        public ComponentEvent kill() {
            setVisible(false);
            return new ComponentEvent(this, ComponentEvent.COMPONENT_HIDDEN);
        }
View Full Code Here

Examples of java.awt.event.ComponentEvent

            return this;
        }

        public ComponentEvent kill() {
            setVisible(false);
            return new ComponentEvent(this, ComponentEvent.COMPONENT_HIDDEN);
        }
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.