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, _wholeColumn, _wholeRow
Constructor and Description |
---|
AbstractCellDataStyleAction(String label,
Sheet sheet,
int row,
int column,
int lastRow,
int lastColumn,
boolean wholeColumn,
boolean wholeRow,
int reserveType) |
AbstractCellDataStyleAction(String label,
Sheet sheet,
int row,
int column,
int lastRow,
int lastColumn,
boolean wholeColumn,
int reserveType)
Deprecated.
|
AbstractCellDataStyleAction(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, isAnyCellProtected, 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(String label, Sheet sheet, int row, int column, int lastRow, int lastColumn, boolean wholeColumn, boolean wholeRow, int reserveType)
@Deprecated public AbstractCellDataStyleAction(String label, Sheet sheet, int row, int column, int lastRow, int lastColumn, boolean wholeColumn, 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 © 2020. All rights reserved.