public abstract class AbstractCellDataStyleAction extends AbstractUndoableAction
Modifier and Type | Field and Description |
---|---|
static int |
RESERVE_ALL |
static int |
RESERVE_CONTENT |
static int |
RESERVE_MERGE |
static int |
RESERVE_STYLE |
_column, _label, _lastColumn, _lastRow, _row, _sheet
Constructor and Description |
---|
AbstractCellDataStyleAction(java.lang.String label,
Sheet sheet,
int row,
int column,
int lastRow,
int lastColumn,
int reserveType) |
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() |
boolean |
isRedoable()
Check if still redoable or not
|
protected boolean |
isSheetProtected()
Check if sheet is protected
|
boolean |
isUndoable()
Check if still undoable or not
|
void |
undoAction()
Undo the action
|
getLabel, getRedoSelection, getRedoSheet, getUndoSelection, getUndoSheet, isSheetAvailable, toString
public static final int RESERVE_CONTENT
public static final int RESERVE_STYLE
public static final int RESERVE_MERGE
public static final int RESERVE_ALL
public AbstractCellDataStyleAction(java.lang.String label, Sheet sheet, int row, int column, int lastRow, int lastColumn, int reserveType)
protected int getReservedRow()
protected int getReservedColumn()
protected int getReservedLastRow()
protected int getReservedLastColumn()
protected Sheet getReservedSheet()
public void doAction()
UndoableAction
protected abstract void applyAction()
public boolean isUndoable()
UndoableAction
public boolean isRedoable()
UndoableAction
public void undoAction()
UndoableAction
protected boolean isSheetProtected()
AbstractUndoableAction
isSheetProtected
in class AbstractUndoableAction
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.