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

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


    this.table = table;
    this.cm = table.getColumnModel();

    Listener<TableEvent> l = new Listener<TableEvent>() {
      public void handleEvent(TableEvent e) {
        EventType type = e.getType();
        if (type == Events.HeaderChange) {
          TableColumn c = cm.getColumn(e.getColumnIndex());
          table.getTableHeader().getColumnUI(e.getColumnIndex()).onTextChange(c.getText());
        } else if (type == Events.WidthChange) {
          table.getTableHeader().resizeColumn(e.getColumnIndex(), true);
View Full Code Here


    attachChildren = false;

    listener = new Listener<MenuEvent>() {

      public void handleEvent(MenuEvent be) {
        EventType type = be.getType();
        if (type == Events.Hide) {
          autoSelect = false;
          focus();
          autoSelect = true;
          if (active != null) active.expanded = false;
View Full Code Here

  public void onPreviewNativeEvent(NativePreviewEvent event) {
    Event e = event.getNativeEvent().<Event> cast();

    PreviewEvent pe = new PreviewEvent(this, event);
    pe.setType(new EventType(e.getTypeInt()));
    pe.setEvent(e);

    lastX = pe.getClientX();
    lastY = pe.getClientY();
View Full Code Here

        case KeyCodes.KEY_UP:
          onUp(e);
          break;
      }

      fireEvent(new EventType(code), e);
    }
  }
View Full Code Here

      this.listStore = listView.getStore();
    }
  }

  public void handleEvent(ListViewEvent<M> e) {
    EventType type = e.getType();
    if (type == Events.OnMouseDown) {
      handleMouseDown(e);
    } else if (type == Events.OnClick) {
      handleMouseClick(e);
    } else if (type == Events.RowUpdated) {
View Full Code Here

    targetStyleName = "x-border-layout-ct";
    componentStyleName = "x-border-panel";
    monitorResize = true;
    collapseListener = new Listener<ComponentEvent>() {
      public void handleEvent(ComponentEvent e) {
        EventType type = e.getType();
        if (type == Events.BeforeCollapse) {
          e.setCancelled(true);
          onCollapse(e.<ContentPanel> getComponent());
        } else if (type == Events.BeforeExpand) {
          e.setCancelled(true);
View Full Code Here

    // browser event listeners can cancel event
    if (!fireEvent(Events.BrowserEvent, ce)) {
      return;
    }

    EventType eventType = Events.lookupBrowserEvent(type);
    ce.setType(eventType);

    if (type == Event.ONCONTEXTMENU) {
      if (disableContextMenu) {
        event.preventDefault();
View Full Code Here

  }

  public void doRender() {
    gridListener = new Listener<GridEvent<M>>() {
      public void handleEvent(GridEvent<M> e) {
        EventType type = e.getType();
        if (type == Events.BodyScroll) {
          if (!ignoreScroll) {
            stopEditing(true);
          }
        } else if (type == Events.CellClick || type == Events.CellDoubleClick) {
View Full Code Here

    };

    columnListener = new Listener<ColumnModelEvent>() {
      public void handleEvent(ColumnModelEvent e) {
        if (grid.isViewReady()) {
          EventType type = e.getType();
          if (type == Events.HiddenChange) {
            onHiddenChange(cm, e.getColIndex(), e.isHidden());
          } else if (type == Events.HeaderChange) {
            onHeaderChange(e.getColIndex(), e.getHeader());
          } else if (type == Events.WidthChange) {
View Full Code Here

      tabPanel.setSelection(item);
    }
  }

  protected void handleEvent(AppEvent event) {
    EventType type = event.getType();
    if (type == AppEvents.ShowPage) {
      Entry entry = event.getData();
      onShowPage(entry);
    }
  }
View Full Code Here

TOP

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

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.