public class EachCommand extends AbstractCommand
| Modifier and Type | Class and Description |
|---|---|
static class |
EachCommand.Direction |
| Modifier and Type | Field and Description |
|---|---|
static String |
COMMAND_NAME |
ADJACENT_SHIFT_MODE, INNER_SHIFT_MODE| Constructor and Description |
|---|
EachCommand() |
EachCommand(String items,
Area area) |
EachCommand(String var,
String items,
Area area) |
EachCommand(String var,
String items,
Area area,
CellRefGenerator cellRefGenerator) |
EachCommand(String var,
String items,
Area area,
EachCommand.Direction direction) |
EachCommand(String var,
String items,
EachCommand.Direction direction) |
| 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
|
CellRefGenerator |
getCellRefGenerator()
Gets defined cell ref generator
|
EachCommand.Direction |
getDirection()
Gets iteration directino
|
String |
getGroupBy() |
String |
getGroupOrder() |
String |
getItems()
Gets collection bean name
|
String |
getMultisheet() |
String |
getName() |
String |
getSelect()
Gets current 'select' expression for filtering out collection items
|
String |
getVar()
Gets current variable name for collection item in the context during iteration
|
void |
setCellRefGenerator(CellRefGenerator cellRefGenerator) |
void |
setDirection(EachCommand.Direction direction)
Sets iteration direction
|
void |
setDirection(String direction) |
void |
setGroupBy(String groupBy) |
void |
setGroupOrder(String groupOrder) |
void |
setItems(String items)
Sets collection bean name
|
void |
setMultisheet(String multisheet)
Sets name of context variable holding a list of Excel sheet names to output the collection to
|
void |
setSelect(String select)
Sets current 'select' expression for filtering collection
|
void |
setVar(String var)
Sets current variable name for collection item in the context during iteration
|
getAreaList, getShiftMode, getTransformationConfig, getTransformer, reset, setShiftModepublic static final String COMMAND_NAME
public EachCommand()
public EachCommand(String var, String items, EachCommand.Direction direction)
var - name of the key in the context to contain each collection items during iterationitems - name of the collection bean in the contextdirection - defines processing by rows (DOWN - default) or columns (RIGHT)public EachCommand(String var, String items, Area area, EachCommand.Direction direction)
public EachCommand(String var, String items, Area area, CellRefGenerator cellRefGenerator)
var - name of the key in the context to contain each collection items during iterationitems - name of the collection bean in the contextarea - body area for this commandcellRefGenerator - generates target cell ref for each collection item during iterationpublic EachCommand.Direction getDirection()
public void setDirection(EachCommand.Direction direction)
direction - -public void setDirection(String direction)
public CellRefGenerator getCellRefGenerator()
CellRefGenerator instance or nullpublic void setCellRefGenerator(CellRefGenerator cellRefGenerator)
public String getName()
public String getVar()
public void setVar(String var)
var - name of the loop varpublic String getItems()
public void setItems(String items)
items - collection bean name in the contextpublic String getSelect()
public void setSelect(String select)
select - filtering expressionpublic String getMultisheet()
public void setMultisheet(String multisheet)
multisheet - var namepublic String getGroupBy()
public void setGroupBy(String groupBy)
groupBy - property name for grouping the collectionpublic String getGroupOrder()
public void setGroupOrder(String groupOrder)
groupOrder - group orderingpublic Command addArea(Area area)
CommandaddArea in interface CommandaddArea in class AbstractCommandarea - -public Size applyAt(CellRef cellRef, Context context)
CommandcellRef - cell reference where the command must be appliedcontext - bean context to useCopyright © 2019. All rights reserved.