Class UndoReplace
- java.lang.Object
- 
- com.inductiveautomation.perspective.designer.workspace.undo.UndoReplace
 
- 
- All Implemented Interfaces:
- UndoManager.UndoAction
 
 public class UndoReplace extends java.lang.Object implements UndoManager.UndoAction 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classUndoReplace.UndoReplaceInfo
 - 
Field SummaryFields Modifier and Type Field Description static com.inductiveautomation.perspective.designer.workspace.undo.UndoActionFactory<UndoReplace.UndoReplaceInfo>FACTORYstatic java.lang.StringKEY
 - 
Constructor SummaryConstructors Constructor Description UndoReplace(UndoActionReceiver receiver, UndoReplace.UndoReplaceInfo info)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexecute()This function executes (redoes) the actionjava.lang.StringgetDescription()The description of the action will be used to determine grouping equality as well as for display purposes.booleanisGroupSequenceIndependent()This function should return true if a group of these actions can be undone by ONLY calling undo() on the first action in the group, and redone by ONLY calling execute() on the last action in the group.booleanundo()This function will reverse the action
 
- 
- 
- 
Field Detail- 
KEYpublic static final java.lang.String KEY - See Also:
- Constant Field Values
 
 - 
FACTORYpublic static final com.inductiveautomation.perspective.designer.workspace.undo.UndoActionFactory<UndoReplace.UndoReplaceInfo> FACTORY 
 
- 
 - 
Constructor Detail- 
UndoReplacepublic UndoReplace(UndoActionReceiver receiver, UndoReplace.UndoReplaceInfo info) 
 
- 
 - 
Method Detail- 
getDescriptionpublic java.lang.String getDescription() Description copied from interface:UndoManager.UndoActionThe description of the action will be used to determine grouping equality as well as for display purposes.- Specified by:
- getDescriptionin interface- UndoManager.UndoAction
 
 - 
undopublic boolean undo() Description copied from interface:UndoManager.UndoActionThis function will reverse the action- Specified by:
- undoin interface- UndoManager.UndoAction
- Returns:
- false if the undo failed
 
 - 
executepublic boolean execute() Description copied from interface:UndoManager.UndoActionThis function executes (redoes) the action- Specified by:
- executein interface- UndoManager.UndoAction
- Returns:
- false if the execution failed
 
 - 
isGroupSequenceIndependentpublic boolean isGroupSequenceIndependent() Description copied from interface:UndoManager.UndoActionThis function should return true if a group of these actions can be undone by ONLY calling undo() on the first action in the group, and redone by ONLY calling execute() on the last action in the group.- Specified by:
- isGroupSequenceIndependentin interface- UndoManager.UndoAction
 
 
- 
 
-