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 void
doAction()
do the action, either first time or redoString
getLabel()
AreaRef
getRedoSelection()
Sheet
getRedoSheet()
AreaRef
getUndoSelection()
Sheet
getUndoSheet()
boolean
isRedoable()
Check if still redoable or notboolean
isUndoable()
Check if still undoable or notvoid
undoAction()
Undo the action
-
-
-
Constructor Detail
-
AggregatedAction
public AggregatedAction(String label, UndoableAction[] actions)
-
-
Method Detail
-
getLabel
public String getLabel()
- Specified by:
getLabel
in interfaceUndoableAction
- Returns:
- the label of this action
-
doAction
public void doAction()
Description copied from interface:UndoableAction
do the action, either first time or redo- Specified by:
doAction
in interfaceUndoableAction
-
isUndoable
public boolean isUndoable()
Description copied from interface:UndoableAction
Check if still undoable or not- Specified by:
isUndoable
in interfaceUndoableAction
- Returns:
-
isRedoable
public boolean isRedoable()
Description copied from interface:UndoableAction
Check if still redoable or not- Specified by:
isRedoable
in interfaceUndoableAction
- Returns:
-
undoAction
public void undoAction()
Description copied from interface:UndoableAction
Undo the action- Specified by:
undoAction
in interfaceUndoableAction
-
getUndoSelection
public AreaRef getUndoSelection()
- Specified by:
getUndoSelection
in interfaceUndoableAction
- Returns:
- Selection after undo of this action, null if doesn't provided;
-
getRedoSelection
public AreaRef getRedoSelection()
- Specified by:
getRedoSelection
in interfaceUndoableAction
- Returns:
- Selection after redo of this action, null if doesn't provided;
-
getUndoSheet
public Sheet getUndoSheet()
- Specified by:
getUndoSheet
in interfaceUndoableAction
- Returns:
- target sheet of undo action, null if doesn't provided
-
getRedoSheet
public Sheet getRedoSheet()
- Specified by:
getRedoSheet
in interfaceUndoableAction
- Returns:
- target sheet of redo action, null if doesn't provided
-
-