Class PropertyBindingUndoAction
- java.lang.Object
-
- com.inductiveautomation.factorypmi.designer.property.configurators.PropertyBindingUndoAction
-
- All Implemented Interfaces:
UndoManager.UndoAction
public class PropertyBindingUndoAction extends java.lang.Object implements UndoManager.UndoAction
-
-
Constructor Summary
Constructors Constructor Description PropertyBindingUndoAction(BindingConfiguration oldBindingConfig, BindingConfiguration newBindingConfig, java.awt.Component comp, java.lang.String propName, VisionDesignerImpl visionDesignerImpl, InteractionController controller)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
execute()
This function executes (redoes) the actionjava.lang.String
getDescription()
The description of the action will be used to determine grouping equality as well as for display purposes.boolean
isGroupSequenceIndependent()
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.boolean
undo()
This function will reverse the actionboolean
undoNeeded()
-
-
-
Constructor Detail
-
PropertyBindingUndoAction
public PropertyBindingUndoAction(BindingConfiguration oldBindingConfig, BindingConfiguration newBindingConfig, java.awt.Component comp, java.lang.String propName, VisionDesignerImpl visionDesignerImpl, InteractionController controller)
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
Description copied from interface:UndoManager.UndoAction
The description of the action will be used to determine grouping equality as well as for display purposes.- Specified by:
getDescription
in interfaceUndoManager.UndoAction
-
undo
public boolean undo()
Description copied from interface:UndoManager.UndoAction
This function will reverse the action- Specified by:
undo
in interfaceUndoManager.UndoAction
- Returns:
- false if the undo failed
-
execute
public boolean execute()
Description copied from interface:UndoManager.UndoAction
This function executes (redoes) the action- Specified by:
execute
in interfaceUndoManager.UndoAction
- Returns:
- false if the execution failed
-
isGroupSequenceIndependent
public boolean isGroupSequenceIndependent()
Description copied from interface:UndoManager.UndoAction
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.- Specified by:
isGroupSequenceIndependent
in interfaceUndoManager.UndoAction
-
undoNeeded
public boolean undoNeeded()
-
-