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

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


   * Construct a new {@link RowHighlightEvent}.
   *
   * @param rowIndex the index of the highlighted row
   */
  public RowHighlightEvent(int rowIndex) {
    this(new Row(rowIndex));
  }
View Full Code Here


   * Construct a new {@link RowUnhighlightEvent}.
   *
   * @param rowIndex the index of the highlighted row
   */
  public RowUnhighlightEvent(int rowIndex) {
    this(new Row(rowIndex));
  }
View Full Code Here

   * @return a list of selected rows to pass into a {@link RowSelectionEvent}
   */
  protected Set<Row> getSelectedRowsSet() {
    Set<Row> rowSet = new TreeSet<Row>();
    for (Integer rowIndex : selectedRows.keySet()) {
      rowSet.add(new Row(rowIndex.intValue()));
    }
    return rowSet;
  }
View Full Code Here

      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.Row

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.