Tag
public class GroupTag extends BaseTag
A GroupTag
represents a set of rows or a set of columns that
needs an Excel "group" associated with it. Optionally, it may be displayed
expanded (default) or collapsed.
BaseTag
.String
boolean
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
ATTR_COLLAPSE |
Attribute for specifying whether the group should be displayed collapsed.
|
static java.lang.String |
ATTR_GROUP_DIR |
Attribute for specifying the direction of the grouping.
|
static java.lang.String |
GROUP_DIR_COLS |
The "group dir" value to specify that columns should be grouped.
|
static java.lang.String |
GROUP_DIR_NONE |
The "group dir" value to specify that neither rows nor columns should be
grouped.
|
static java.lang.String |
GROUP_DIR_ROWS |
The "group dir" value to specify that rows should be grouped.
|
ATTR_ON_PROCESSED, SPEC_SEP
Constructor | Description |
---|---|
GroupTag() |
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() |
Create an Excel group of rows or columns around the height or the
width of the block.
|
void |
validateAttributes() |
Validates the attributes for this
Tag . |
checkAttributes, clearBlock, deleteBlock, getAttributes, getContext, getLocation, getParentTag, getWorkbookContext, isBodiless, processTag, removeBlock, setAttributes, setBodiless, setContext, setParentTag, setWorkbookContext
public static final java.lang.String ATTR_GROUP_DIR
GROUP_DIR_ROWS
,
GROUP_DIR_COLS
,
GROUP_DIR_NONE
,
Constant Field Valuespublic static final java.lang.String ATTR_COLLAPSE
public static final java.lang.String GROUP_DIR_COLS
public static final java.lang.String GROUP_DIR_ROWS
public static final java.lang.String GROUP_DIR_NONE
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 BaseTag
List
of required attribute names.protected java.util.List<java.lang.String> getOptionalAttributes()
List
of optional attribute names.getOptionalAttributes
in class BaseTag
List
of optional attribute names.public void validateAttributes() throws TagParseException
Tag
. This tag must have a
body.validateAttributes
in class BaseTag
TagParseException
- If the attribute values are illegal or
unacceptable.Copyright © 2012–2018 Jett Team. All rights reserved.