Package org.apache.pivot.wtk
Interface Editor
-
public interface EditorBase interface for content editors.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcancelEdit()Cancels an edit that is in progress by reverting any edits the user has made.booleanisEditing()booleansaveChanges()Saves an edit that is in progress by updating the appropriate data object.
-
-
-
Method Detail
-
isEditing
boolean isEditing()
- Returns:
- Flag saying 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 whenisEditing() == false.- Returns:
trueif the changes were successfully saved;falseotherwise.
-
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 whenisEditing() == false.
-
-