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

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


  @Override
  @SuppressWarnings({"unchecked", "rawtypes"})
  public void onComponentEvent(ComponentEvent ce) {
    super.onComponentEvent(ce);
    GridEvent ge = (GridEvent) ce;
    switch (ce.getEventTypeInt()) {
      case Event.ONCLICK:
        onClick(ge);
        break;
      case Event.ONDBLCLICK:
View Full Code Here


    }
  }

  @SuppressWarnings({"rawtypes", "unchecked"})
  protected GridEvent<?> createComponentEvent(Event event) {
    return new GridEvent(grid, event);
  }
View Full Code Here

    if (e.getType() == Events.CellMouseDown) {
      handleMouseDown((GridEvent) e);
    } else if (e.getType() == Events.Refresh) {
      refresh();
    } else if (e.getType() == Events.BeforeEdit) {
      GridEvent ge = (GridEvent) e;
      selectCell(ge.getRowIndex(), ge.getColIndex());
    } else if (e.getType() == Events.RowUpdated) {
      onRowUpdated((GridEvent) e);
    } else if (e.getType() == Events.ViewReady) {
      if (selection != null) {
        selectCell(selection.row, selection.cell);
View Full Code Here

  @Override
  @SuppressWarnings({"unchecked", "rawtypes"})
  public void onComponentEvent(ComponentEvent ce) {
    super.onComponentEvent(ce);
    GridEvent ge = (GridEvent) ce;
    switch (ce.getEventTypeInt()) {
      case Event.ONCLICK:
        onClick(ge);
        break;
      case Event.ONDBLCLICK:
View Full Code Here

    if (e.getType() == Events.CellMouseDown) {
      handleMouseDown((GridEvent) e);
    } else if (e.getType() == Events.Refresh) {
      refresh();
    } else if (e.getType() == Events.BeforeEdit) {
      GridEvent ge = (GridEvent) e;
      selectCell(ge.getRowIndex(), ge.getColIndex());
    } else if (e.getType() == Events.RowUpdated) {
      onRowUpdated((GridEvent) e);
    } else if (e.getType() == Events.ViewReady) {
      if (selection != null) {
        selectCell(selection.row, selection.cell);
View Full Code Here

  @Override
  @SuppressWarnings({"unchecked", "rawtypes"})
  public void onComponentEvent(ComponentEvent ce) {
    super.onComponentEvent(ce);
    GridEvent ge = (GridEvent) ce;
    switch (ce.getEventTypeInt()) {
      case Event.ONCLICK:
        onClick(ge);
        break;
      case Event.ONDBLCLICK:
View Full Code Here

    if (e.getType() == Events.CellMouseDown) {
      handleMouseDown((GridEvent) e);
    } else if (e.getType() == Events.Refresh) {
      refresh();
    } else if (e.getType() == Events.BeforeEdit) {
      GridEvent ge = (GridEvent) e;
      selectCell(ge.getRowIndex(), ge.getColIndex());
    } else if (e.getType() == Events.RowUpdated) {
      onRowUpdated((GridEvent) e);
    } else if (e.getType() == Events.ViewReady) {
      if (selection != null) {
        selectCell(selection.row, selection.cell);
View Full Code Here

    }
  }

  @SuppressWarnings({"rawtypes", "unchecked"})
  protected GridEvent<?> createComponentEvent(Event event) {
    return new GridEvent(grid, event);
  }
View Full Code Here

    setSelectionModel(sm);
  }

  @Override
  protected ComponentEvent createComponentEvent(Event event) {
    GridEvent ge = new GridEvent(this, event);
    if (event != null) {
      ge.rowIndex = view.findRowIndex(event.getTarget());
      ge.colIndex = view.findCellIndex(event.getTarget(), null);
    }
    return ge;
View Full Code Here

  }

  protected void onClick(ComponentEvent ce) {
    Element row = findRow(ce.getTarget());
    if (row != null) {
      GridEvent e = (GridEvent) ce;
      e.rowIndex = findRowIndex(row);
      grid.fireEvent(Events.RowClick, e);
    }
  }
View Full Code Here

TOP

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

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.