org.apache.pivot.wtk
Class TableView.RowEditor.RowEditorListenerList

java.lang.Object
  extended by org.apache.pivot.util.ListenerList<TableView.RowEditorListener>
      extended by org.apache.pivot.wtk.TableView.RowEditor.RowEditorListenerList
All Implemented Interfaces:
Iterable<TableView.RowEditorListener>, TableView.RowEditorListener
Enclosing interface:
TableView.RowEditor

public static class TableView.RowEditor.RowEditorListenerList
extends ListenerList<TableView.RowEditorListener>
implements TableView.RowEditorListener

Row editor listener list.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.TableView.RowEditorListener
TableView.RowEditorListener.Adapter
 
Constructor Summary
TableView.RowEditor.RowEditorListenerList()
           
 
Method Summary
 void changesSaved(TableView.RowEditor rowEditor, TableView tableView, int rowIndex, int columnIndex)
          Called when changes have been saved.
 void editCancelled(TableView.RowEditor rowEditor, TableView tableView, int rowIndex, int columnIndex)
          Called when an edit has been cancelled.
 void editRowVetoed(TableView.RowEditor rowEditor, Vote reason)
          Called when a row edit was vetoed by a listener in the preview event.
 Vote previewEditRow(TableView.RowEditor rowEditor, TableView tableView, int rowIndex, int columnIndex)
          Called to preview a row edit.
 Vote previewSaveChanges(TableView.RowEditor rowEditor, TableView tableView, int rowIndex, int columnIndex, Dictionary<String,Object> changes)
          Called to preview a save.
 void rowEditing(TableView.RowEditor rowEditor, TableView tableView, int rowIndex, int columnIndex)
          Called when editing has begun.
 void saveChangesVetoed(TableView.RowEditor rowEditor, Vote reason)
          Called when a save was vetoed by a listener in the preview event.
 
Methods inherited from class org.apache.pivot.util.ListenerList
add, isEmpty, iterator, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableView.RowEditor.RowEditorListenerList

public TableView.RowEditor.RowEditorListenerList()
Method Detail

previewEditRow

public Vote previewEditRow(TableView.RowEditor rowEditor,
                           TableView tableView,
                           int rowIndex,
                           int columnIndex)
Description copied from interface: TableView.RowEditorListener
Called to preview a row edit.

Specified by:
previewEditRow in interface TableView.RowEditorListener
Parameters:
rowEditor - The row editor
tableView - The table view containing the row to be edited.
rowIndex - The index of the row to edit.
columnIndex - The index of the column to edit.
Returns:
A vote on whether editing should be allowed to begin.

editRowVetoed

public void editRowVetoed(TableView.RowEditor rowEditor,
                          Vote reason)
Description copied from interface: TableView.RowEditorListener
Called when a row edit was vetoed by a listener in the preview event.

Specified by:
editRowVetoed in interface TableView.RowEditorListener
Parameters:
rowEditor - The row editor
reason - The reason for the veto

rowEditing

public void rowEditing(TableView.RowEditor rowEditor,
                       TableView tableView,
                       int rowIndex,
                       int columnIndex)
Description copied from interface: TableView.RowEditorListener
Called when editing has begun.

Specified by:
rowEditing in interface TableView.RowEditorListener
Parameters:
rowEditor - The row editor
tableView - The table view containing the row being edited.
rowIndex - The index of the row being edited.
columnIndex - The index of the column being edited.

previewSaveChanges

public Vote previewSaveChanges(TableView.RowEditor rowEditor,
                               TableView tableView,
                               int rowIndex,
                               int columnIndex,
                               Dictionary<String,Object> changes)
Description copied from interface: TableView.RowEditorListener
Called to preview a save.

Specified by:
previewSaveChanges in interface TableView.RowEditorListener
Parameters:
rowEditor - The row editor
tableView - The table view containing the row being edited.
rowIndex - The index of the row being edited.
columnIndex - The index of the column being edited.
changes - The proposed changes, indexed by table view column name. The type of each entry in this dictionary will depend on the editor implementation.
Returns:
A vote on whether the changes should be allowed to be saved.

saveChangesVetoed

public void saveChangesVetoed(TableView.RowEditor rowEditor,
                              Vote reason)
Description copied from interface: TableView.RowEditorListener
Called when a save was vetoed by a listener in the preview event.

Specified by:
saveChangesVetoed in interface TableView.RowEditorListener
Parameters:
rowEditor - The row editor
reason - The reason for the veto

changesSaved

public void changesSaved(TableView.RowEditor rowEditor,
                         TableView tableView,
                         int rowIndex,
                         int columnIndex)
Description copied from interface: TableView.RowEditorListener
Called when changes have been saved.

Specified by:
changesSaved in interface TableView.RowEditorListener
Parameters:
rowEditor - The row editor
tableView - The table view containing the row that was edited.
rowIndex - The index of the row that was edited.
columnIndex - The index of the column that was edited.

editCancelled

public void editCancelled(TableView.RowEditor rowEditor,
                          TableView tableView,
                          int rowIndex,
                          int columnIndex)
Description copied from interface: TableView.RowEditorListener
Called when an edit has been cancelled.

Specified by:
editCancelled in interface TableView.RowEditorListener
Parameters:
rowEditor - The row editor
tableView - The table view containing the row that was being edited.
rowIndex - The index of the row that was being edited.
columnIndex - The index of the column that was being edited.