Package io.keikai.ui.impl.undo
Class AbstractEditTextAction
java.lang.Object
io.keikai.ui.impl.undo.AbstractUndoableAction
io.keikai.ui.impl.undo.AbstractEditTextAction
- All Implemented Interfaces:
UndoableAction,Serializable
- Direct Known Subclasses:
CellEditTextAction,CellRichTextAction
- 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
ConstructorsConstructorDescriptionAbstractEditTextAction(String label, Sheet sheet, int row, int column, int lastRow, int lastColumn) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidvoiddoAction()do the action, either first time or redoprotected intprotected intprotected intprotected intprotected Sheetprotected booleanbooleanCheck if still redoable or notbooleanCheck if still undoable or notvoidUndo the actionMethods inherited from class io.keikai.ui.impl.undo.AbstractUndoableAction
getLabel, getRedoSelection, getRedoSheet, getUndoSelection, getUndoSheet, isAnyCellProtected, isSheetAvailable, isSheetProtected, toString
-
Constructor Details
-
AbstractEditTextAction
-
-
Method Details
-
getReservedSheet
-
getReservedRow
protected int getReservedRow() -
getReservedColumn
protected int getReservedColumn() -
getReservedLastRow
protected int getReservedLastRow() -
getReservedLastColumn
protected int getReservedLastColumn() -
doAction
public void doAction()Description copied from interface:UndoableActiondo the action, either first time or redo -
isRangeProtected
protected boolean isRangeProtected() -
applyAction
protected abstract void applyAction() -
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
-