com.google.gwt.widgetideas.table.client
Class TableSelectionListenerCollection

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<TableSelectionListener>
              extended by com.google.gwt.widgetideas.table.client.TableSelectionListenerCollection
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<TableSelectionListener>, java.util.Collection<TableSelectionListener>, java.util.List<TableSelectionListener>, java.util.RandomAccess

public class TableSelectionListenerCollection
extends java.util.ArrayList<TableSelectionListener>

A helper class for implementers of the SourceTableSelectionEvents interface. This subclass of ArrayList assumes that all objects added to it will be of type TableSelectionListener.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
TableSelectionListenerCollection()
           
 
Method Summary
 void fireAllRowsDeselected(SourceTableSelectionEvents sender)
          Fired when all rows are deselected.
 void fireCellHover(SourceTableSelectionEvents sender, int row, int cell)
          Fired when a cell is hovered.
 void fireCellUnhover(SourceTableSelectionEvents sender, int row, int cell)
          Fired when a cell is unhovered.
 void fireRowDeselected(SourceTableSelectionEvents sender, int row)
          Fired when a single row is deselected.
 void fireRowHover(SourceTableSelectionEvents sender, int row)
          Fired when a row is hovered.
 void fireRowsSelected(SourceTableSelectionEvents sender, int firstRow, int numRows)
          Fired when one or more rows are selected.
 void fireRowUnhover(SourceTableSelectionEvents sender, int row)
          Fired when a row is unhovered.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

TableSelectionListenerCollection

public TableSelectionListenerCollection()
Method Detail

fireAllRowsDeselected

public void fireAllRowsDeselected(SourceTableSelectionEvents sender)
Fired when all rows are deselected.

Parameters:
sender - the source of the event

fireCellHover

public void fireCellHover(SourceTableSelectionEvents sender,
                          int row,
                          int cell)
Fired when a cell is hovered.

Parameters:
sender - the source of the event
row - the row index
cell - the cell index

fireCellUnhover

public void fireCellUnhover(SourceTableSelectionEvents sender,
                            int row,
                            int cell)
Fired when a cell is unhovered.

Parameters:
sender - the source of the event
row - the row index
cell - the cell index

fireRowDeselected

public void fireRowDeselected(SourceTableSelectionEvents sender,
                              int row)
Fired when a single row is deselected. This method will not fire when all rows are deselected. In that case, use the onAllRowsDeselected events.

Parameters:
sender - the source of the event
row - the row index

fireRowHover

public void fireRowHover(SourceTableSelectionEvents sender,
                         int row)
Fired when a row is hovered.

Parameters:
sender - the source of the event
row - the row index

fireRowsSelected

public void fireRowsSelected(SourceTableSelectionEvents sender,
                             int firstRow,
                             int numRows)
Fired when one or more rows are selected.

Parameters:
sender - the source of the event
firstRow - the row index of the first row
numRows - the number of selected rows

fireRowUnhover

public void fireRowUnhover(SourceTableSelectionEvents sender,
                           int row)
Fired when a row is unhovered.

Parameters:
sender - the source of the event
row - the row index