public abstract class Abstract2DCellDataStyleAction extends AbstractUndoableAction
Modifier and Type | Field and Description |
---|---|
protected int |
_destColumn |
protected int |
_destLastColumn |
protected int |
_destLastRow |
protected int |
_destRow |
protected Sheet |
_destSheet |
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 |
---|
Abstract2DCellDataStyleAction(java.lang.String label,
Sheet sheet,
int srcRow,
int srcColumn,
int srcLastRow,
int srcLastColumn,
Sheet destSheet,
int destRow,
int destColumn,
int destLastRow,
int destLastColumn,
int reserveType) |
Modifier and Type | Method and Description |
---|---|
protected void |
applyAction() |
void |
doAction()
do the action, either first time or redo
|
AreaRef |
getRedoSelection() |
Sheet |
getRedoSheet() |
protected int |
getReservedDestColumn() |
protected int |
getReservedDestLastColumn() |
protected int |
getReservedDestLastRow() |
protected int |
getReservedDestRow() |
protected Sheet |
getReservedDestSheet() |
protected int |
getReservedSrcColumn() |
protected int |
getReservedSrcLastColumn() |
protected int |
getReservedSrcLastRow() |
protected int |
getReservedSrcRow() |
protected Sheet |
getReservedSrcSheet() |
Sheet |
getUndoSheet() |
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, getUndoSelection, 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
protected final Sheet _destSheet
protected final int _destRow
protected final int _destColumn
protected final int _destLastRow
protected final int _destLastColumn
protected boolean isSheetProtected()
AbstractUndoableAction
isSheetProtected
in class AbstractUndoableAction
public Sheet getUndoSheet()
getUndoSheet
in interface UndoableAction
getUndoSheet
in class AbstractUndoableAction
public Sheet getRedoSheet()
getRedoSheet
in interface UndoableAction
getRedoSheet
in class AbstractUndoableAction
protected int getReservedSrcRow()
protected int getReservedSrcColumn()
protected int getReservedSrcLastRow()
protected int getReservedSrcLastColumn()
protected Sheet getReservedSrcSheet()
protected int getReservedDestRow()
protected int getReservedDestColumn()
protected int getReservedDestLastRow()
protected int getReservedDestLastColumn()
protected Sheet getReservedDestSheet()
public void doAction()
UndoableAction
protected void applyAction()
public boolean isUndoable()
UndoableAction
public boolean isRedoable()
UndoableAction
public void undoAction()
UndoableAction
public AreaRef getRedoSelection()
getRedoSelection
in interface UndoableAction
getRedoSelection
in class AbstractUndoableAction
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.