Package org.jxls.command
Class MergeCellsCommand
java.lang.Object
org.jxls.command.AbstractCommand
org.jxls.command.MergeCellsCommand
- All Implemented Interfaces:
Command
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
- Since:
- 2.6.0
- Author:
- lnk
-
Field Summary
FieldsFields inherited from class org.jxls.command.AbstractCommand
areaListFields inherited from interface org.jxls.command.Command
ADJACENT_SHIFT_MODE, INNER_SHIFT_MODE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCols()getName()getRows()voidvoidsetMinCols(String minCols) voidsetMinRows(String minRows) voidMethods inherited from class org.jxls.command.AbstractCommand
getAreaList, getLockRange, getLogger, getShiftMode, getTransformer, reset, setLockRange, setLockRange, setShiftMode, transformToIterableObject
-
Field Details
-
COMMAND_NAME
- See Also:
-
-
Constructor Details
-
MergeCellsCommand
public MergeCellsCommand()
-
-
Method Details
-
getName
-
getCols
-
setCols
-
getRows
-
setRows
-
getMinCols
-
setMinCols
-
getMinRows
-
setMinRows
-
addArea
- Specified by:
addAreain interfaceCommand- Overrides:
addAreain classAbstractCommand
-
applyAt
-