org.apache.pivot.wtk
Class TableViewSelectionListener.Adapter

java.lang.Object
  extended by org.apache.pivot.wtk.TableViewSelectionListener.Adapter
All Implemented Interfaces:
TableViewSelectionListener
Enclosing interface:
TableViewSelectionListener

public static class TableViewSelectionListener.Adapter
extends Object
implements TableViewSelectionListener

Table view selection listener adapter.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.TableViewSelectionListener
TableViewSelectionListener.Adapter
 
Constructor Summary
TableViewSelectionListener.Adapter()
           
 
Method Summary
 void selectedRangeAdded(TableView tableView, int rangeStart, int rangeEnd)
          Called when a range has been added to a table view's selection.
 void selectedRangeRemoved(TableView tableView, int rangeStart, int rangeEnd)
          Called when a range has been removed from a table view's selection.
 void selectedRangesChanged(TableView tableView, Sequence<Span> previousSelectedRanges)
          Called when a table view's selection state has been reset.
 void selectedRowChanged(TableView tableView, Object previousSelectedRow)
          Called when a table view's selected item has changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableViewSelectionListener.Adapter

public TableViewSelectionListener.Adapter()
Method Detail

selectedRangeAdded

public void selectedRangeAdded(TableView tableView,
                               int rangeStart,
                               int rangeEnd)
Description copied from interface: TableViewSelectionListener
Called when a range has been added to a table view's selection.

Specified by:
selectedRangeAdded in interface TableViewSelectionListener
Parameters:
tableView - The source of the event.
rangeStart - The start index of the range that was added, inclusive.
rangeEnd - The end index of the range that was added, inclusive.

selectedRangeRemoved

public void selectedRangeRemoved(TableView tableView,
                                 int rangeStart,
                                 int rangeEnd)
Description copied from interface: TableViewSelectionListener
Called when a range has been removed from a table view's selection.

Specified by:
selectedRangeRemoved in interface TableViewSelectionListener
Parameters:
tableView - The source of the event.
rangeStart - The start index of the range that was removed, inclusive.
rangeEnd - The end index of the range that was removed, inclusive.

selectedRangesChanged

public void selectedRangesChanged(TableView tableView,
                                  Sequence<Span> previousSelectedRanges)
Description copied from interface: TableViewSelectionListener
Called when a table view's selection state has been reset.

Specified by:
selectedRangesChanged in interface TableViewSelectionListener
Parameters:
tableView - The source of the event.
previousSelectedRanges - If the selection changed directly, contains the ranges that were previously selected. If the selection changed indirectly as a result of a model change, contains the current selection. Otherwise, contains null.

selectedRowChanged

public void selectedRowChanged(TableView tableView,
                               Object previousSelectedRow)
Description copied from interface: TableViewSelectionListener
Called when a table view's selected item has changed.

Specified by:
selectedRowChanged in interface TableViewSelectionListener
Parameters:
tableView - The source of the event.
previousSelectedRow - The row that was previously selected.