Package io.keikai.ui.impl.undo
Class AggregatedAction
- java.lang.Object
-
- io.keikai.ui.impl.undo.AggregatedAction
-
- All Implemented Interfaces:
UndoableAction,Serializable
public class AggregatedAction extends Object implements UndoableAction, Serializable
- Author:
- dennis
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AggregatedAction(String label, UndoableAction[] actions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoAction()do the action, either first time or redoStringgetLabel()AreaRefgetRedoSelection()SheetgetRedoSheet()AreaRefgetUndoSelection()SheetgetUndoSheet()booleanisRedoable()Check if still redoable or notbooleanisUndoable()Check if still undoable or notvoidundoAction()Undo the action
-
-
-
Constructor Detail
-
AggregatedAction
public AggregatedAction(String label, UndoableAction[] actions)
-
-
Method Detail
-
getLabel
public String getLabel()
- Specified by:
getLabelin interfaceUndoableAction- Returns:
- the label of this action
-
doAction
public void doAction()
Description copied from interface:UndoableActiondo the action, either first time or redo- Specified by:
doActionin interfaceUndoableAction
-
isUndoable
public boolean isUndoable()
Description copied from interface:UndoableActionCheck if still undoable or not- Specified by:
isUndoablein interfaceUndoableAction- Returns:
-
isRedoable
public boolean isRedoable()
Description copied from interface:UndoableActionCheck if still redoable or not- Specified by:
isRedoablein interfaceUndoableAction- Returns:
-
undoAction
public void undoAction()
Description copied from interface:UndoableActionUndo the action- Specified by:
undoActionin interfaceUndoableAction
-
getUndoSelection
public AreaRef getUndoSelection()
- Specified by:
getUndoSelectionin interfaceUndoableAction- Returns:
- Selection after undo of this action, null if doesn't provided;
-
getRedoSelection
public AreaRef getRedoSelection()
- Specified by:
getRedoSelectionin interfaceUndoableAction- Returns:
- Selection after redo of this action, null if doesn't provided;
-
getUndoSheet
public Sheet getUndoSheet()
- Specified by:
getUndoSheetin interfaceUndoableAction- Returns:
- target sheet of undo action, null if doesn't provided
-
getRedoSheet
public Sheet getRedoSheet()
- Specified by:
getRedoSheetin interfaceUndoableAction- Returns:
- target sheet of redo action, null if doesn't provided
-
-