|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pivot.util.ListenerList<TableView.RowEditorListener>
org.apache.pivot.wtk.TableView.RowEditor.RowEditorListenerList
public static class TableView.RowEditor.RowEditorListenerList
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, iterator, remove |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TableView.RowEditor.RowEditorListenerList()
Method Detail |
---|
public Vote previewEditRow(TableView.RowEditor rowEditor, TableView tableView, int rowIndex, int columnIndex)
TableView.RowEditorListener
previewEditRow
in interface TableView.RowEditorListener
rowEditor
- The row editortableView
- 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.
public void editRowVetoed(TableView.RowEditor rowEditor, Vote reason)
TableView.RowEditorListener
editRowVetoed
in interface TableView.RowEditorListener
rowEditor
- The row editorreason
- The reason for the vetopublic void rowEditing(TableView.RowEditor rowEditor, TableView tableView, int rowIndex, int columnIndex)
TableView.RowEditorListener
rowEditing
in interface TableView.RowEditorListener
rowEditor
- The row editortableView
- The table view containing the row being edited.rowIndex
- The index of the row being edited.columnIndex
- The index of the column being edited.public Vote previewSaveChanges(TableView.RowEditor rowEditor, TableView tableView, int rowIndex, int columnIndex, Dictionary<String,Object> changes)
TableView.RowEditorListener
previewSaveChanges
in interface TableView.RowEditorListener
rowEditor
- The row editortableView
- 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.
public void saveChangesVetoed(TableView.RowEditor rowEditor, Vote reason)
TableView.RowEditorListener
saveChangesVetoed
in interface TableView.RowEditorListener
rowEditor
- The row editorreason
- The reason for the vetopublic void changesSaved(TableView.RowEditor rowEditor, TableView tableView, int rowIndex, int columnIndex)
TableView.RowEditorListener
changesSaved
in interface TableView.RowEditorListener
rowEditor
- The row editortableView
- 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.public void editCancelled(TableView.RowEditor rowEditor, TableView tableView, int rowIndex, int columnIndex)
TableView.RowEditorListener
editCancelled
in interface TableView.RowEditorListener
rowEditor
- The row editortableView
- 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |