Tagpublic class TotalTag extends BaseTag
A TotalTag represents an aggregate value calculated from a
List of values already exposed to the context. This uses
jAgg functionality.
BaseTag.ListStringint| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
ATTR_ITEMS |
Attribute that specifies the
List of items to aggregate. |
static java.lang.String |
ATTR_PARALLEL |
Attribute that specifies the degree of parallelism to use.
|
static java.lang.String |
ATTR_VALUE |
Attribute that specifies the aggregator to use.
|
ATTR_ON_PROCESSED, SPEC_SEP| Constructor | Description |
|---|---|
TotalTag() |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getName() |
Returns this
Tag's name. |
protected java.util.List<java.lang.String> |
getOptionalAttributes() |
Returns a
List of optional attribute names. |
protected java.util.List<java.lang.String> |
getRequiredAttributes() |
Returns a
List of required attribute names. |
boolean |
process() |
Run a "group by" operation on the specified
Aggregator, get
the result, and set the cell value appropriately. |
void |
validateAttributes() |
Validates the attributes for this
Tag. |
checkAttributes, clearBlock, deleteBlock, getAttributes, getContext, getLocation, getParentTag, getWorkbookContext, isBodiless, processTag, removeBlock, setAttributes, setBodiless, setContext, setParentTag, setWorkbookContextpublic static final java.lang.String ATTR_ITEMS
List of items to aggregate.public static final java.lang.String ATTR_VALUE
public static final java.lang.String ATTR_PARALLEL
public java.lang.String getName()
Tag's name.Tag's name.protected java.util.List<java.lang.String> getRequiredAttributes()
List of required attribute names.getRequiredAttributes in class BaseTagList of required attribute names.protected java.util.List<java.lang.String> getOptionalAttributes()
List of optional attribute names.getOptionalAttributes in class BaseTagList of optional attribute names.public void validateAttributes()
throws TagParseException
Tag. The "items"
attribute must be a List. The "parallel" attribute must be
a positive integer (defaults to 1). The "value" attribute must be a
valid Aggregator specification string. The "total" tag must
not have a body.validateAttributes in class BaseTagTagParseException - If the attribute values are illegal or
unacceptable.Copyright © 2012–2018 Jett Team. All rights reserved.