org.apache.pivot.wtk
Interface Editor


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.
 boolean 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

boolean 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.

Returns:
true if the changes were successfully saved; false otherwise.

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.