org.apache.pivot.wtk
Class ListView.ItemEditorListener.Adapter

java.lang.Object
  extended by org.apache.pivot.wtk.ListView.ItemEditorListener.Adapter
All Implemented Interfaces:
ListView.ItemEditorListener
Enclosing interface:
ListView.ItemEditorListener

public static class ListView.ItemEditorListener.Adapter
extends Object
implements ListView.ItemEditorListener

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

ListView.ItemEditorListener.Adapter

public ListView.ItemEditorListener.Adapter()
Method Detail

previewEditItem

public Vote previewEditItem(ListView.ItemEditor itemEditor,
                            ListView listView,
                            int index)
Description copied from interface: ListView.ItemEditorListener
Called to preview an item edit.

Specified by:
previewEditItem in interface ListView.ItemEditorListener
Parameters:
itemEditor - The item editor
listView - The list view containing the item to be edited.
index - The index of the item to edit.
Returns:
A vote on whether editing should be allowed to begin.

editItemVetoed

public void editItemVetoed(ListView.ItemEditor itemEditor,
                           Vote reason)
Description copied from interface: ListView.ItemEditorListener
Called when an item edit was vetoed by a listener in the preview event.

Specified by:
editItemVetoed in interface ListView.ItemEditorListener
Parameters:
itemEditor - The item editor
reason - The reason for the veto

itemEditing

public void itemEditing(ListView.ItemEditor itemEditor,
                        ListView listView,
                        int index)
Description copied from interface: ListView.ItemEditorListener
Called when editing has begun.

Specified by:
itemEditing in interface ListView.ItemEditorListener
Parameters:
itemEditor - The item editor
listView - The list view containing the item being edited.
index - The index of the item being edited.

previewSaveChanges

public Vote previewSaveChanges(ListView.ItemEditor itemEditor,
                               ListView listView,
                               int index,
                               Object changes)
Description copied from interface: ListView.ItemEditorListener
Called to preview a save.

Specified by:
previewSaveChanges in interface ListView.ItemEditorListener
Parameters:
itemEditor - The item editor
listView - 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.
Returns:
A vote on whether the changes should be allowed to be saved.

saveChangesVetoed

public void saveChangesVetoed(ListView.ItemEditor itemEditor,
                              Vote reason)
Description copied from interface: ListView.ItemEditorListener
Called when a save was vetoed by a listener in the preview event.

Specified by:
saveChangesVetoed in interface ListView.ItemEditorListener
Parameters:
itemEditor - The item editor
reason - The reason for the veto

changesSaved

public void changesSaved(ListView.ItemEditor itemEditor,
                         ListView listView,
                         int index)
Description copied from interface: ListView.ItemEditorListener
Called when changes have been saved.

Specified by:
changesSaved in interface ListView.ItemEditorListener
Parameters:
itemEditor - The item editor
listView - The list view containing the item that was edited.
index - The index of the item that was edited.

editCancelled

public void editCancelled(ListView.ItemEditor itemEditor,
                          ListView listView,
                          int index)
Description copied from interface: ListView.ItemEditorListener
Called when an edit has been cancelled.

Specified by:
editCancelled in interface ListView.ItemEditorListener
Parameters:
itemEditor - The item editor
listView - The list view containing the item that was being edited.
index - The index of the item that was being edited.