org.apache.pivot.wtk
Interface Editor

All Known Subinterfaces:
ListView.ItemEditor, TableView.RowEditor, TreeView.NodeEditor
All Known Implementing Classes:
ListViewItemEditor, TableViewCellEditor, TableViewRowEditor, TreeViewNodeEditor

public interface Editor

Base interface for content editors.


Method Summary
 void cancelEdit()
          Cancels an edit that is in progress by reverting any edits the user has made.
 boolean isEditing()
          Tells whether or not an edit is currently in progress.
 void saveChanges()
          Saves an edit that is in progress by updating the appropriate data object.
 

Method Detail

isEditing

boolean isEditing()
Tells whether or not an edit is currently in progress.


saveChanges

void saveChanges()
Saves an edit that is in progress by updating the appropriate data object. It is up to implementations to define the behavior when isEditing() == false.


cancelEdit

void cancelEdit()
Cancels an edit that is in progress by reverting any edits the user has made. It is up to implementations to define the behavior when isEditing() == false.