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

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


  public SelectionMode getSelectionMode() {
    return mode;
  }

  public void handleEvent(ContainerEvent e) {
    EventType type = e.getType();
    if (type == Events.OnMouseDown) {
      onMouseDown(e);
    } else if (type == Events.OnDoubleClick) {
      onDoubleClick(e);
    } else if (type == Events.Remove) {
View Full Code Here


    }
  }

  @SuppressWarnings("unchecked")
  public void handleEvent(BaseEvent e) {
    EventType type = e.getType();
    if (type == Events.RowMouseDown) {
      handleMouseDown((GridEvent) e);
    } else if (type == Events.RowClick) {
      handleMouseClick((GridEvent) e);
    } else if (type == Events.RowUpdated) {
View Full Code Here

  @Override
  public void initTarget(Component target) {
    if (listener == null) {
      listener = new Listener<ComponentEvent>() {
        public void handleEvent(ComponentEvent be) {
          EventType type = be.getType();
          if (type == Events.OnMouseOver) {
            onTargetOver(be);
          } else if (type == Events.OnMouseOut) {
            onTargetOut(be);
          } else if (type == Events.OnMouseMove) {
View Full Code Here

    this.target = target;
    if (listener == null) {
      listener = new Listener<ComponentEvent>() {
        public void handleEvent(ComponentEvent be) {
          Element source = target.getElement();
          EventType type = be.getType();
          if (type == Events.OnMouseOver) {
            Element from = DOM.eventGetFromElement(be.getEvent());
            if (from != null && !DOM.isOrHasChild(source, from)) {
              onTargetOver(be);
            }
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 == (GXT.isSafari && GXT.isMac ? Event.ONMOUSEDOWN : Event.ONMOUSEUP) && ce.isRightClick()) {
      onRightClick(ce);
    }
View Full Code Here

    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

      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

    };

    columnListener = new Listener<ColumnModelEvent>() {
      public void handleEvent(ColumnModelEvent e) {
        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

  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

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.