public interface EditHistoryTrackingProperty
extends com.vaadin.data.Property<byte[]>
Modifier and Type | Interface and Description |
---|---|
static interface |
EditHistoryTrackingProperty.Listener
Listener interface that receives important information
about the property workflow.
|
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
Modifier and Type | Method and Description |
---|---|
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.
|
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()
Copyright © 2015 Magnolia International Ltd.. All rights reserved.