public abstract class AbstractUndoableAction extends Object implements UndoableAction, Serializable
Modifier and Type | Field and Description |
---|---|
protected int |
_column |
protected String |
_label |
protected int |
_lastColumn |
protected int |
_lastRow |
protected int |
_row |
protected Sheet |
_sheet |
protected boolean |
_wholeColumn |
protected boolean |
_wholeRow |
Constructor and Description |
---|
AbstractUndoableAction(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)
Deprecated.
|
AbstractUndoableAction(String label,
Sheet sheet,
int row,
int column,
int lastRow,
int lastColumn,
boolean wholeColumn,
boolean wholeRow) |
Modifier and Type | Method and Description |
---|---|
String |
getLabel() |
AreaRef |
getRedoSelection() |
Sheet |
getRedoSheet() |
AreaRef |
getUndoSelection() |
Sheet |
getUndoSheet() |
protected boolean |
isAnyCellProtected(Sheet sheet,
CellRegion cellRegion) |
protected boolean |
isSheetAvailable()
Check if sheet still available
|
protected boolean |
isSheetProtected()
Check if sheet is protected
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
doAction, isRedoable, isUndoable, undoAction
protected final String _label
protected final Sheet _sheet
protected final int _row
protected final int _column
protected final int _lastRow
protected final int _lastColumn
protected final boolean _wholeColumn
protected final boolean _wholeRow
public AbstractUndoableAction(String label, Sheet sheet, int row, int column, int lastRow, int lastColumn, boolean wholeColumn, boolean wholeRow)
@Deprecated public AbstractUndoableAction(String label, Sheet sheet, int row, int column, int lastRow, int lastColumn, boolean wholeColumn)
public String getLabel()
getLabel
in interface UndoableAction
protected boolean isSheetAvailable()
protected boolean isSheetProtected()
protected boolean isAnyCellProtected(Sheet sheet, CellRegion cellRegion)
public AreaRef getUndoSelection()
getUndoSelection
in interface UndoableAction
public AreaRef getRedoSelection()
getRedoSelection
in interface UndoableAction
public Sheet getUndoSheet()
getUndoSheet
in interface UndoableAction
public Sheet getRedoSheet()
getRedoSheet
in interface UndoableAction
Copyright © 2020. All rights reserved.