public class IfCommand extends AbstractCommand
| Modifier and Type | Field and Description |
|---|---|
static String |
COMMAND_NAME |
ADJACENT_SHIFT_MODE, INNER_SHIFT_MODE| Constructor and Description |
|---|
IfCommand() |
IfCommand(String condition) |
IfCommand(String condition,
Area ifArea,
Area elseArea) |
IfCommand(String condition,
XlsArea ifArea) |
| 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 |
getCondition()
Gets test condition as JEXL expression string
|
Area |
getElseArea()
Gets an area to render when the condition is evaluated to 'false'
|
Area |
getIfArea()
Gets an area to render when the condition is evaluated to 'true'
|
String |
getName() |
void |
setCondition(String condition)
Sets test condition as JEXL expression string
|
getAreaList, getShiftMode, getTransformationConfig, getTransformer, reset, setShiftModepublic static final String COMMAND_NAME
public IfCommand()
public IfCommand(String condition)
condition - JEXL expression for boolean condition to evaluatepublic String getName()
public String getCondition()
public void setCondition(String condition)
condition - condition to testpublic Area getIfArea()
public Area getElseArea()
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 © 2019. All rights reserved.