|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface ListView.ItemEditorListener
The item editor listener interface. This provides callers with notifications about an item editor's activity.
Nested Class Summary | |
---|---|
static class |
ListView.ItemEditorListener.Adapter
Item editor listener 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. |
Method Detail |
---|
Vote previewEditItem(ListView.ItemEditor itemEditor, ListView listView, int index)
itemEditor
- The item editorlistView
- The list view containing the item to be edited.index
- The index of the item to edit.
void editItemVetoed(ListView.ItemEditor itemEditor, Vote reason)
itemEditor
- The item editorreason
- The reason for the vetovoid itemEditing(ListView.ItemEditor itemEditor, ListView listView, int index)
itemEditor
- The item editorlistView
- The list view containing the item being edited.index
- The index of the item being edited.Vote previewSaveChanges(ListView.ItemEditor itemEditor, ListView listView, int index, Object changes)
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.
void saveChangesVetoed(ListView.ItemEditor itemEditor, Vote reason)
itemEditor
- The item editorreason
- The reason for the vetovoid changesSaved(ListView.ItemEditor itemEditor, ListView listView, int index)
itemEditor
- The item editorlistView
- The list view containing the item that was edited.index
- The index of the item that was edited.void editCancelled(ListView.ItemEditor itemEditor, ListView listView, int index)
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 |