|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pivot.wtk.ListView.ItemEditorListener.Adapter
public static class ListView.ItemEditorListener.Adapter
Item editor listener adapter.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ListView.ItemEditorListener |
---|
ListView.ItemEditorListener.Adapter |
Constructor Summary | |
---|---|
ListView.ItemEditorListener.Adapter()
|
Method Summary | |
---|---|
void |
changesSaved(ListView.ItemEditor itemEditor,
ListView listView,
int index)
Called when changes have been saved. |
void |
editCancelled(ListView.ItemEditor itemEditor,
ListView listView,
int index)
Called when an edit has been cancelled. |
void |
editItemVetoed(ListView.ItemEditor itemEditor,
Vote reason)
Called when an item edit was vetoed by a listener in the preview event. |
void |
itemEditing(ListView.ItemEditor itemEditor,
ListView listView,
int index)
Called when editing has begun. |
Vote |
previewEditItem(ListView.ItemEditor itemEditor,
ListView listView,
int index)
Called to preview an item edit. |
Vote |
previewSaveChanges(ListView.ItemEditor itemEditor,
ListView listView,
int index,
Object changes)
Called to preview a save. |
void |
saveChangesVetoed(ListView.ItemEditor itemEditor,
Vote reason)
Called when a save was vetoed by a listener in the preview event. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ListView.ItemEditorListener.Adapter()
Method Detail |
---|
public Vote previewEditItem(ListView.ItemEditor itemEditor, ListView listView, int index)
ListView.ItemEditorListener
previewEditItem
in interface ListView.ItemEditorListener
itemEditor
- The item editorlistView
- The list view containing the item to be edited.index
- The index of the item to edit.
public void editItemVetoed(ListView.ItemEditor itemEditor, Vote reason)
ListView.ItemEditorListener
editItemVetoed
in interface ListView.ItemEditorListener
itemEditor
- The item editorreason
- The reason for the vetopublic void itemEditing(ListView.ItemEditor itemEditor, ListView listView, int index)
ListView.ItemEditorListener
itemEditing
in interface ListView.ItemEditorListener
itemEditor
- The item editorlistView
- The list view containing the item being edited.index
- The index of the item being edited.public Vote previewSaveChanges(ListView.ItemEditor itemEditor, ListView listView, int index, Object changes)
ListView.ItemEditorListener
previewSaveChanges
in interface ListView.ItemEditorListener
itemEditor
- The item editorlistView
- The list view containing the item being edited.index
- The index of the item being edited.changes
- The proposed changes. The type of this object will depend on the
editor implementation.
public void saveChangesVetoed(ListView.ItemEditor itemEditor, Vote reason)
ListView.ItemEditorListener
saveChangesVetoed
in interface ListView.ItemEditorListener
itemEditor
- The item editorreason
- The reason for the vetopublic void changesSaved(ListView.ItemEditor itemEditor, ListView listView, int index)
ListView.ItemEditorListener
changesSaved
in interface ListView.ItemEditorListener
itemEditor
- The item editorlistView
- The list view containing the item that was edited.index
- The index of the item that was edited.public void editCancelled(ListView.ItemEditor itemEditor, ListView listView, int index)
ListView.ItemEditorListener
editCancelled
in interface ListView.ItemEditorListener
itemEditor
- The item editorlistView
- The list view containing the item that was being edited.index
- The index of the item that was being edited.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |