Package org.gwt.mosaic.ui.client.event.TableEvent

Examples of org.gwt.mosaic.ui.client.event.TableEvent.Cell


   *
   * @param rowIndex the index of the highlighted row
   * @param cellIndex the index of the highlighted cell
   */
  public CellHighlightEvent(int rowIndex, int cellIndex) {
    this(new Cell(rowIndex, cellIndex));
  }
View Full Code Here


   *
   * @param rowIndex the index of the highlighted row
   * @param cellIndex the index of the highlighted cell
   */
  public CellUnhighlightEvent(int rowIndex, int cellIndex) {
    this(new Cell(rowIndex, cellIndex));
  }
View Full Code Here

    }

    // Unhighlight the current cell
    if (highlightedCellElem != null) {
      setStyleName(highlightedCellElem, "highlighted", false);
      CellUnhighlightEvent.fire(this, new Cell(highlightedRowIndex,
          highlightedCellIndex));
      highlightedCellElem = null;
      highlightedCellIndex = -1;

      // Unhighlight the current row if it changed
      if (rowElem != highlightedRowElem) {
        setStyleName(highlightedRowElem, "highlighted", false);
        RowUnhighlightEvent.fire(this, new Row(highlightedRowIndex));
        highlightedRowElem = null;
        highlightedRowIndex = -1;
      }
    }

    // Highlight the cell
    if (cellElem != null) {
      setStyleName(cellElem, "highlighted", true);
      highlightedCellElem = cellElem;
      highlightedCellIndex = OverrideDOM.getCellIndex(cellElem);

      // Highlight the row if it changed
      if (highlightedRowElem == null) {
        setStyleName(rowElem, "highlighted", true);
        highlightedRowElem = rowElem;
        highlightedRowIndex = getRowIndex(highlightedRowElem);
        RowHighlightEvent.fire(this, new Row(highlightedRowIndex));
      }

      // Fire listeners
      CellHighlightEvent.fire(this, new Cell(highlightedRowIndex,
          highlightedCellIndex));
    }
  }
View Full Code Here

TOP

Related Classes of org.gwt.mosaic.ui.client.event.TableEvent.Cell

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.