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.

Author:
gbrown

Method Summary
 void cancel()
          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 save()
          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.


save

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


cancel

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