|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EditHistoryTrackingProperty
Property interface that is capable of tracking data modification and undo/redo the steps. The original value is buffered and the state can always be rolled back to it.
Nested Class Summary | |
---|---|
static interface |
EditHistoryTrackingProperty.Listener
Listener interface that receives important information about the property workflow. |
Nested classes/interfaces inherited from interface com.vaadin.data.Property |
---|
com.vaadin.data.Property.Editor, com.vaadin.data.Property.ReadOnlyException, com.vaadin.data.Property.ReadOnlyStatusChangeEvent, com.vaadin.data.Property.ReadOnlyStatusChangeListener, com.vaadin.data.Property.ReadOnlyStatusChangeNotifier, com.vaadin.data.Property.Transactional<T>, com.vaadin.data.Property.ValueChangeEvent, com.vaadin.data.Property.ValueChangeListener, com.vaadin.data.Property.ValueChangeNotifier, com.vaadin.data.Property.Viewer |
Method Summary | |
---|---|
void |
commit()
Propagate changes to the original value. |
String |
getLastDoneActionName()
Gets the last done action name. |
String |
getLastUnDoneActionName()
Gets the last undone action name. |
void |
purgeHistory()
Clears modification history which erases all the tracked steps. |
void |
redo()
Redo last step. |
void |
revert()
Roll back to original value. |
void |
setCapacity(int capacity)
Sets the amount of steps that can be tracked. |
void |
setListener(EditHistoryTrackingProperty.Listener listener)
|
void |
startAction(String actionName)
Starts an action which will cause a new record to appear in history. |
void |
undo()
Undo last step. |
Methods inherited from interface com.vaadin.data.Property |
---|
getType, getValue, isReadOnly, setReadOnly, setValue |
Method Detail |
---|
void setListener(EditHistoryTrackingProperty.Listener listener)
String getLastDoneActionName()
String getLastUnDoneActionName()
void purgeHistory()
void setCapacity(int capacity)
capacity
- amount of steps to be available for undo/redo.void startAction(String actionName)
actionName
- the name of an action.void undo() throws ActionExecutionException
ActionExecutionException
void redo() throws ActionExecutionException
ActionExecutionException
void commit()
void revert()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |