Package io.keikai.ui.impl.undo
Class InsertCellAction
- java.lang.Object
-
- io.keikai.ui.impl.undo.AbstractUndoableAction
-
- io.keikai.ui.impl.undo.InsertCellAction
-
- All Implemented Interfaces:
UndoableAction
,Serializable
public class InsertCellAction extends AbstractUndoableAction
- Author:
- dennis
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class io.keikai.ui.impl.undo.AbstractUndoableAction
_column, _label, _lastColumn, _lastRow, _row, _sheet, _wholeColumn, _wholeRow
-
-
Constructor Summary
Constructors Constructor Description InsertCellAction(String label, Sheet sheet, int row, int column, int lastRow, int lastColumn, Range.InsertShift shift, Range.InsertCopyOrigin copyOrigin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doAction()
do the action, either first time or redoboolean
isRedoable()
Check if still redoable or notprotected boolean
isSheetProtected()
Check if sheet is protectedboolean
isUndoable()
Check if still undoable or notvoid
undoAction()
Undo the action-
Methods inherited from class io.keikai.ui.impl.undo.AbstractUndoableAction
getLabel, getRedoSelection, getRedoSheet, getUndoSelection, getUndoSheet, isAnyCellProtected, isSheetAvailable, toString
-
-
-
-
Constructor Detail
-
InsertCellAction
public InsertCellAction(String label, Sheet sheet, int row, int column, int lastRow, int lastColumn, Range.InsertShift shift, Range.InsertCopyOrigin copyOrigin)
-
-
Method Detail
-
doAction
public void doAction()
Description copied from interface:UndoableAction
do the action, either first time or redo
-
isUndoable
public boolean isUndoable()
Description copied from interface:UndoableAction
Check if still undoable or not- Returns:
-
isRedoable
public boolean isRedoable()
Description copied from interface:UndoableAction
Check if still redoable or not- Returns:
-
undoAction
public void undoAction()
Description copied from interface:UndoableAction
Undo the action
-
isSheetProtected
protected boolean isSheetProtected()
Description copied from class:AbstractUndoableAction
Check if sheet is protected- Overrides:
isSheetProtected
in classAbstractUndoableAction
- Returns:
-
-