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
public abstract class AbstractEditTextAction 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 AbstractEditTextAction(String label, Sheet sheet, int row, int column, int lastRow, int lastColumn)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
applyAction()
void
doAction()
do the action, either first time or redoprotected int
getReservedColumn()
protected int
getReservedLastColumn()
protected int
getReservedLastRow()
protected int
getReservedRow()
protected Sheet
getReservedSheet()
protected boolean
isRangeProtected()
boolean
isRedoable()
Check if still redoable or notboolean
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, isSheetProtected, toString
-
-
-
-
Method Detail
-
getReservedSheet
protected Sheet 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:UndoableAction
do the action, either first time or redo
-
isRangeProtected
protected boolean isRangeProtected()
-
applyAction
protected abstract void applyAction()
-
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
-
-