Class PropertyBindingUndoAction
java.lang.Object
com.inductiveautomation.factorypmi.designer.property.configurators.PropertyBindingUndoAction
- All Implemented Interfaces:
UndoManager.UndoAction
-
Constructor Summary
ConstructorsConstructorDescriptionPropertyBindingUndoAction(BindingConfiguration oldBindingConfig, BindingConfiguration newBindingConfig, Component comp, String propName, VisionDesignerImpl visionDesignerImpl, InteractionController controller) -
Method Summary
Modifier and TypeMethodDescriptionbooleanexecute()This function executes (redoes) the actionThe description of the action will be used to determine grouping equality as well as for display purposes.booleanThis 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 actionboolean
-
Constructor Details
-
PropertyBindingUndoAction
public PropertyBindingUndoAction(BindingConfiguration oldBindingConfig, BindingConfiguration newBindingConfig, Component comp, String propName, VisionDesignerImpl visionDesignerImpl, InteractionController controller)
-
-
Method Details
-
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 interfaceUndoManager.UndoAction
-
undo
public boolean undo()Description copied from interface:UndoManager.UndoActionThis function will reverse the action- Specified by:
undoin interfaceUndoManager.UndoAction- Returns:
- false if the undo failed
-
execute
public boolean execute()Description copied from interface:UndoManager.UndoActionThis function executes (redoes) the action- Specified by:
executein interfaceUndoManager.UndoAction- Returns:
- false if the execution failed
-
isGroupSequenceIndependent
public 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 interfaceUndoManager.UndoAction
-
undoNeeded
public boolean undoNeeded()
-