public class MergeCellsCommand extends AbstractCommand
Merge cells
jx:mergeCells( lastCell="Merge cell ranges" [, cols="Number of columns combined"] [, rows="Number of rows combined"] [, minCols="Minimum number of columns to merge"] [, minRows="Minimum number of rows to merge"] )
Note: this command can only be used on cells that have not been merged. An exception will occur if the scope of the merged cell exists for the merged cell
| Modifier and Type | Field and Description |
|---|---|
static String |
COMMAND_NAME |
ADJACENT_SHIFT_MODE, INNER_SHIFT_MODE| Constructor and Description |
|---|
MergeCellsCommand() |
| Modifier and Type | Method and Description |
|---|---|
Command |
addArea(Area area)
Adds an area to this command
|
Size |
applyAt(CellRef cellRef,
Context context)
Applies a command at the given cell reference
|
String |
getCols() |
String |
getMinCols() |
String |
getMinRows() |
String |
getName() |
String |
getRows() |
void |
setCols(String cols) |
void |
setMinCols(String minCols) |
void |
setMinRows(String minRows) |
void |
setRows(String rows) |
getAreaList, getLockRange, getShiftMode, getTransformationConfig, getTransformer, reset, setLockRange, setLockRange, setShiftModepublic static final String COMMAND_NAME
public String getName()
public String getCols()
public void setCols(String cols)
public String getRows()
public void setRows(String rows)
public String getMinCols()
public void setMinCols(String minCols)
public String getMinRows()
public void setMinRows(String minRows)
public Command addArea(Area area)
CommandaddArea in interface CommandaddArea in class AbstractCommandarea - to be added areapublic Size applyAt(CellRef cellRef, Context context)
CommandcellRef - cell reference where the command must be appliedcontext - bean context to useCopyright © 2021. All rights reserved.