Package io.keikai.ui.impl.undo
Class AbstractUndoableAction
java.lang.Object
io.keikai.ui.impl.undo.AbstractUndoableAction
- All Implemented Interfaces:
UndoableAction,Serializable
- Direct Known Subclasses:
Abstract2DCellDataStyleAction,AbstractCellDataStyleAction,AbstractEditTextAction,CellCommentAction,DataValidationAction,DeleteCellAction,HideHeaderAction,InsertCellAction,ResizeHeaderAction
- Author:
- dennis
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractUndoableAction(String label, Sheet sheet, int row, int column, int lastRow, int lastColumn) AbstractUndoableAction(String label, Sheet sheet, int row, int column, int lastRow, int lastColumn, boolean wholeColumn, boolean wholeRow) -
Method Summary
Modifier and TypeMethodDescriptiongetLabel()protected booleanisAnyCellProtected(Sheet sheet, CellRegion cellRegion) protected booleanCheck if sheet still availableprotected booleanCheck if sheet is protectedtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.keikai.ui.sys.UndoableAction
doAction, isRedoable, isUndoable, undoAction
-
Field Details
-
_label
-
_sheet
-
_row
protected final int _row -
_column
protected final int _column -
_lastRow
protected final int _lastRow -
_lastColumn
protected final int _lastColumn -
_wholeColumn
protected final boolean _wholeColumn -
_wholeRow
protected final boolean _wholeRow
-
-
Constructor Details
-
AbstractUndoableAction
-
AbstractUndoableAction
-
-
Method Details
-
getLabel
- Specified by:
getLabelin interfaceUndoableAction- Returns:
- the label of this action
-
isSheetAvailable
protected boolean isSheetAvailable()Check if sheet still available- Returns:
-
isSheetProtected
protected boolean isSheetProtected()Check if sheet is protected- Returns:
-
isAnyCellProtected
-
toString
-
getUndoSelection
- Specified by:
getUndoSelectionin interfaceUndoableAction- Returns:
- Selection after undo of this action, null if doesn't provided;
-
getRedoSelection
- Specified by:
getRedoSelectionin interfaceUndoableAction- Returns:
- Selection after redo of this action, null if doesn't provided;
-
getUndoSheet
- Specified by:
getUndoSheetin interfaceUndoableAction- Returns:
- target sheet of undo action, null if doesn't provided
-
getRedoSheet
- Specified by:
getRedoSheetin interfaceUndoableAction- Returns:
- target sheet of redo action, null if doesn't provided
-