Package io.keikai.ui.impl.undo
Class DeleteCellAction
java.lang.Object
io.keikai.ui.impl.undo.AbstractUndoableAction
io.keikai.ui.impl.undo.DeleteCellAction
- All Implemented Interfaces:
UndoableAction,Serializable
- Author:
- dennis
- See Also:
-
Field Summary
Fields inherited from class io.keikai.ui.impl.undo.AbstractUndoableAction
_column, _label, _lastColumn, _lastRow, _row, _sheet, _wholeColumn, _wholeRow -
Constructor Summary
ConstructorsConstructorDescriptionDeleteCellAction(String label, Sheet sheet, int row, int column, int lastRow, int lastColumn, Range.DeleteShift shift) -
Method Summary
Modifier and TypeMethodDescriptionvoiddoAction()do the action, either first time or redobooleanCheck if still redoable or notprotected booleanCheck if sheet is protectedbooleanCheck if still undoable or notvoidUndo the actionMethods inherited from class io.keikai.ui.impl.undo.AbstractUndoableAction
getLabel, getRedoSelection, getRedoSheet, getUndoSelection, getUndoSheet, isAnyCellProtected, isSheetAvailable, toString
-
Constructor Details
-
DeleteCellAction
public DeleteCellAction(String label, Sheet sheet, int row, int column, int lastRow, int lastColumn, Range.DeleteShift shift)
-
-
Method Details
-
doAction
public void doAction()Description copied from interface:UndoableActiondo the action, either first time or redo -
isUndoable
public boolean isUndoable()Description copied from interface:UndoableActionCheck if still undoable or not- Returns:
-
isRedoable
public boolean isRedoable()Description copied from interface:UndoableActionCheck if still redoable or not- Returns:
-
undoAction
public void undoAction()Description copied from interface:UndoableActionUndo the action -
isSheetProtected
protected boolean isSheetProtected()Description copied from class:AbstractUndoableActionCheck if sheet is protected- Overrides:
isSheetProtectedin classAbstractUndoableAction- Returns:
-