com.sun.data.provider
Class TableCursorAdapter

java.lang.Object
  extended bycom.sun.data.provider.TableCursorAdapter
All Implemented Interfaces:
java.util.EventListener, TableCursorListener

public class TableCursorAdapter
extends java.lang.Object
implements TableCursorListener

TableCursorAdapter is an event listener adapter that provides a base implementation of TableCursorListener.

Author:
Joe Nuxoll

Constructor Summary
TableCursorAdapter()
           
 
Method Summary
 void cursorChanged(TableDataProvider provider, RowKey oldRow, RowKey newRow)
          

Process an event indicating that the current cursor row of the specified TableDataProvider has been successfully changed.

 void cursorChanging(TableDataProvider provider, RowKey oldRow, RowKey newRow)
          

Process an event indicating that the current cursor row of the specified TableDataProvider is changing. If an exception is thrown be an event handler, the cursor change will be vetoed.

 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableCursorAdapter

public TableCursorAdapter()
Method Detail

cursorChanging

public void cursorChanging(TableDataProvider provider,
                           RowKey oldRow,
                           RowKey newRow)
                    throws TableCursorVetoException

Process an event indicating that the current cursor row of the specified TableDataProvider is changing. If an exception is thrown be an event handler, the cursor change will be vetoed.

Specified by:
cursorChanging in interface TableCursorListener
Parameters:
provider - TableDataProvider whose cursor row is changing
oldRow - The old cursor row key
newRow - The new cursor row key
Throws:
TableCursorVetoException - a cursor veto exception explicitly vetos the cursor change

cursorChanged

public void cursorChanged(TableDataProvider provider,
                          RowKey oldRow,
                          RowKey newRow)

Process an event indicating that the current cursor row of the specified TableDataProvider has been successfully changed.

Specified by:
cursorChanged in interface TableCursorListener
Parameters:
provider - TableDataProvider whose cursor row index has successfully changed
oldRow - The old cursor row key
newRow - The new cursor row key