org.cafesip.gwtcomp.client.ui
Interface SuperTableListener


public interface SuperTableListener

This interface must be implemented by applications to add a listener to the SuperTable class.

Author:
Amit Chatterjee

Method Summary
 void cellSelected(boolean selected, int row, int col, Widget column)
          Invoked if a cell is selected.
 void rowSelected(boolean selected, int row, Widget[] columns)
          Invoked if a row is selected or deselected.
 

Method Detail

rowSelected

void rowSelected(boolean selected,
                 int row,
                 Widget[] columns)
Invoked if a row is selected or deselected. Multiple rows can be set in a super table.

Parameters:
selected - selected or deselected.
row - row index
columns - the row including all the columns.

cellSelected

void cellSelected(boolean selected,
                  int row,
                  int col,
                  Widget column)
Invoked if a cell is selected. Only one cell can remain selected at a time. Therefore, when this method is invoked and the selected parameter is set to true, the previous selection is assumed to cleared. There is no separate invocation for the previously-selected cell. A deselection invocation is only made if the selected row has been deselected by the user by clicking on it again.

Parameters:
selected - selected or deselected.
row - row index
col - column index
column - the column widget.


Copyright © 2010 Cafesip.org. All Rights Reserved.