public abstract class AbstractUndoableAction extends java.lang.Object implements UndoableAction
Modifier and Type | Field and Description |
---|---|
protected int |
_column |
protected java.lang.String |
_label |
protected int |
_lastColumn |
protected int |
_lastRow |
protected int |
_row |
protected Sheet |
_sheet |
Constructor and Description |
---|
AbstractUndoableAction(java.lang.String label,
Sheet sheet,
int row,
int column,
int lastRow,
int lastColumn) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLabel() |
AreaRef |
getRedoSelection() |
Sheet |
getRedoSheet() |
AreaRef |
getUndoSelection() |
Sheet |
getUndoSheet() |
protected boolean |
isSheetAvailable()
Check if sheet still available
|
protected boolean |
isSheetProtected()
Check if sheet is protected
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
doAction, isRedoable, isUndoable, undoAction
protected final java.lang.String _label
protected final Sheet _sheet
protected final int _row
protected final int _column
protected final int _lastRow
protected final int _lastColumn
public AbstractUndoableAction(java.lang.String label, Sheet sheet, int row, int column, int lastRow, int lastColumn)
public java.lang.String getLabel()
getLabel
in interface UndoableAction
protected boolean isSheetAvailable()
protected boolean isSheetProtected()
public java.lang.String toString()
toString
in class java.lang.Object
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 © 2005-2010 Potix Corporation. All Rights Reserved.