public abstract class AbstractEditTextAction extends AbstractUndoableAction
_column, _label, _lastColumn, _lastRow, _row, _sheet, _wholeColumn, _wholeRow| Constructor and Description |
|---|
AbstractEditTextAction(String label,
Sheet sheet,
int row,
int column,
int lastRow,
int lastColumn) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
applyAction() |
void |
doAction()
do the action, either first time or redo
|
protected int |
getReservedColumn() |
protected int |
getReservedLastColumn() |
protected int |
getReservedLastRow() |
protected int |
getReservedRow() |
protected Sheet |
getReservedSheet() |
protected boolean |
isRangeProtected() |
boolean |
isRedoable()
Check if still redoable or not
|
boolean |
isUndoable()
Check if still undoable or not
|
void |
undoAction()
Undo the action
|
getLabel, getRedoSelection, getRedoSheet, getUndoSelection, getUndoSheet, isAnyCellProtected, isSheetAvailable, isSheetProtected, toStringprotected Sheet getReservedSheet()
protected int getReservedRow()
protected int getReservedColumn()
protected int getReservedLastRow()
protected int getReservedLastColumn()
public void doAction()
UndoableActionprotected boolean isRangeProtected()
protected abstract void applyAction()
public boolean isUndoable()
UndoableActionpublic boolean isRedoable()
UndoableActionpublic void undoAction()
UndoableActionCopyright © 2020. All rights reserved.