Interface UndoDelegateContext
- 
- All Superinterfaces:
- Changeable
 
 public interface UndoDelegateContext extends Changeable Used to take control of the undo/redo stack. Normally, undo/redo is done by registering an Object "context" with the UndoManager, and then adding undo actions. The context is normally an opaque object used only for equality purposes to keep the undo stacks of different parts of the UI separate.If the context you register with the undo manager just so happens to implement this interface, however, then the undo stack and undo actions are not used. Instead, the undo actions delegate to the methods defined on this interface. Note that this interface extends from Changeable, and should fire change events when the "answers" to the can* methods has changed. - Since:
- 7.8.0
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanRedo()Controls whether or not the redo action will be enabled.booleancanUndo()Controls whether or not the undo action will be enabled.java.lang.StringgetRedoDescription()java.lang.StringgetUndoDescription()voidredo()Perform the redo action.voidundo()Perform the undo action.- 
Methods inherited from interface com.inductiveautomation.ignition.common.util.ChangeableaddChangeListener, removeChangeListener
 
- 
 
- 
- 
- 
Method Detail- 
canUndoboolean canUndo() Controls whether or not the undo action will be enabled.- Returns:
- true if the undo action is currently available.
 
 - 
canRedoboolean canRedo() Controls whether or not the redo action will be enabled.- Returns:
- true if the redo action is currently available.
 
 - 
undovoid undo() Perform the undo action.
 - 
redovoid redo() Perform the redo action.
 - 
getUndoDescriptionjava.lang.String getUndoDescription() - Returns:
- A description of the next undo action that would be performed, or empty string if unable to compute.
 
 - 
getRedoDescriptionjava.lang.String getRedoDescription() - Returns:
- A description of the next redo action that would be performed, or empty string if unable to compute.
 
 
- 
 
-