Package org.jxls.command
Class UpdateCellCommand
java.lang.Object
org.jxls.command.AbstractCommand
org.jxls.command.UpdateCellCommand
- All Implemented Interfaces:
Command
Allows to update a cell data dynamically for any cell
-
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 TypeMethodDescriptionAdds an area to this commandApplies a command at the given cell referencegetName()voidsetCellDataUpdater(CellDataUpdater cellDataUpdater) voidsetUpdater(String updater) Methods 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
-
UpdateCellCommand
public UpdateCellCommand()
-
-
Method Details
-
getName
- Returns:
- command name
-
getUpdater
-
setUpdater
-
getCellDataUpdater
-
setCellDataUpdater
-
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
-