Class UndoConvertComponentToDrawing
java.lang.Object
com.inductiveautomation.perspective.designer.workspace.undo.UndoConvertComponentToDrawing
- All Implemented Interfaces:
UndoManager.UndoAction
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.inductiveautomation.perspective.designer.workspace.undo.UndoActionFactory<UndoConvertComponentToDrawing.ComponentDrawingInfo>
static final String
-
Constructor Summary
ConstructorsConstructorDescriptionUndoConvertComponentToDrawing
(UndoActionReceiver receiver, UndoConvertComponentToDrawing.ComponentDrawingInfo info) -
Method Summary
Modifier and TypeMethodDescriptionboolean
execute()
This function executes (redoes) the actionThe description of the action will be used to determine grouping equality as well as for display purposes.boolean
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 action
-
Field Details
-
KEY
- See Also:
-
FACTORY
public static final com.inductiveautomation.perspective.designer.workspace.undo.UndoActionFactory<UndoConvertComponentToDrawing.ComponentDrawingInfo> FACTORY
-
-
Constructor Details
-
UndoConvertComponentToDrawing
public UndoConvertComponentToDrawing(UndoActionReceiver receiver, UndoConvertComponentToDrawing.ComponentDrawingInfo info)
-
-
Method Details
-
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
-