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 |
protected boolean |
_destWholeColumn |
protected boolean |
_destWholeRow |
static int |
RESERVE_ALL |
static int |
RESERVE_CONTENT |
static int |
RESERVE_MERGE |
static int |
RESERVE_STYLE |
_column, _label, _lastColumn, _lastRow, _row, _sheet, _wholeColumn, _wholeRow| Constructor and Description |
|---|
Abstract2DCellDataStyleAction(String label,
Sheet sheet,
int srcRow,
int srcColumn,
int srcLastRow,
int srcLastColumn,
boolean srcWholeColumn,
boolean srcWholeRow,
Sheet destSheet,
int destRow,
int destColumn,
int destLastRow,
int destLastColumn,
boolean destWholeColumn,
boolean destWholeRow,
int reserveType) |
Abstract2DCellDataStyleAction(String label,
Sheet sheet,
int srcRow,
int srcColumn,
int srcLastRow,
int srcLastColumn,
boolean srcWholeColumn,
Sheet destSheet,
int destRow,
int destColumn,
int destLastRow,
int destLastColumn,
boolean destWholeColumn,
int reserveType)
Deprecated.
|
Abstract2DCellDataStyleAction(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() |
protected boolean |
isDstSheetProtected() |
boolean |
isRedoable()
Check if still redoable or not
|
protected boolean |
isSheetProtected()
Check if sheet is protected
|
protected boolean |
isSrcSheetProtected() |
boolean |
isUndoable()
Check if still undoable or not
|
void |
undoAction()
Undo the action
|
getLabel, getUndoSelection, isAnyCellProtected, isSheetAvailable, toStringpublic 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 final boolean _destWholeColumn
protected final boolean _destWholeRow
public Abstract2DCellDataStyleAction(String label, Sheet sheet, int srcRow, int srcColumn, int srcLastRow, int srcLastColumn, boolean srcWholeColumn, boolean srcWholeRow, Sheet destSheet, int destRow, int destColumn, int destLastRow, int destLastColumn, boolean destWholeColumn, boolean destWholeRow, int reserveType)
@Deprecated public Abstract2DCellDataStyleAction(String label, Sheet sheet, int srcRow, int srcColumn, int srcLastRow, int srcLastColumn, boolean srcWholeColumn, Sheet destSheet, int destRow, int destColumn, int destLastRow, int destLastColumn, boolean destWholeColumn, int reserveType)
protected boolean isSheetProtected()
AbstractUndoableActionisSheetProtected in class AbstractUndoableActionprotected boolean isSrcSheetProtected()
protected boolean isDstSheetProtected()
public Sheet getUndoSheet()
getUndoSheet in interface UndoableActiongetUndoSheet in class AbstractUndoableActionpublic Sheet getRedoSheet()
getRedoSheet in interface UndoableActiongetRedoSheet in class AbstractUndoableActionprotected 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()
UndoableActionprotected void applyAction()
public boolean isUndoable()
UndoableActionpublic boolean isRedoable()
UndoableActionpublic void undoAction()
UndoableActionpublic AreaRef getRedoSelection()
getRedoSelection in interface UndoableActiongetRedoSelection in class AbstractUndoableActionCopyright © 2020. All rights reserved.