Package org.jxls.command
Class GridCommand
java.lang.Object
org.jxls.command.AbstractCommand
org.jxls.command.GridCommand
- All Implemented Interfaces:
Command
The command implements a grid with dynamic columns and rows
- Author:
- Leonid Vysochyn
-
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
ConstructorsConstructorDescriptionGridCommand(String headers, String data) GridCommand(String headers, String data, Area headerArea, Area bodyArea) -
Method Summary
Modifier and TypeMethodDescriptionAdds an area to this commandApplies a command at the given cell referencegetData()getName()getProps()voidvoidsetFormatCells(String formatCells) voidsetHeaders(String headers) voidMethods inherited from class org.jxls.command.AbstractCommand
getAreaList, getLockRange, getLogger, getShiftMode, getTransformer, reset, setLockRange, setLockRange, setShiftMode, transformToIterableObject
-
Field Details
-
COMMAND_NAME
- See Also:
-
HEADER_VAR
- See Also:
-
DATA_VAR
- See Also:
-
-
Constructor Details
-
GridCommand
public GridCommand() -
GridCommand
-
GridCommand
-
GridCommand
-
-
Method Details
-
getName
- Returns:
- command name
-
getHeaders
-
setHeaders
-
getData
-
setData
-
getProps
-
setProps
-
getFormatCells
-
setFormatCells
- Parameters:
formatCells- Comma-separated list of format type cells, e.g. formatCells="Double:E1, Date:F1"
-
addArea
Description copied from interface:CommandAdds an area to this command- Specified by:
addAreain interfaceCommand- Overrides:
addAreain classAbstractCommand- Parameters:
area- to be added area- Returns:
- this command instance
-
applyAt
Description copied from interface:CommandApplies a command at the given cell reference- Parameters:
cellRef- cell reference where the command must be appliedcontext- bean context to use- Returns:
- size of enclosing command area after transformation
-