Tagpublic class SpanTag extends BaseTag
A SpanTag represents a cell or merged region that will span
extra rows and/or extra columns, depending on growth and/or adjustment
factors. If this tag is applied to a cell that is not part of a merged
region, then it may result in the creation of a merged region. If this tag
is applied to a cell that is part of a merged region, then it may result in
the removal of the merged region.
BaseTag.intintRichTextStringbooleanbooleanEither one or both of the factor and the adjust
attributes must be specified.
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
ATTR_ADJUST |
Attribute for specifying an adjustment to the size of the merged region.
|
static java.lang.String |
ATTR_EXPAND_RIGHT |
Attribute for forcing "expand right" behavior.
|
static java.lang.String |
ATTR_FACTOR |
Attribute for specifying the growth factor.
|
static java.lang.String |
ATTR_FIXED |
Attribute that specifies the value of the cell/merged region.
|
static java.lang.String |
ATTR_VALUE |
Attribute that specifies the value of the cell/merged region.
|
ATTR_ON_PROCESSED, SPEC_SEP| Constructor | Description |
|---|---|
SpanTag() |
| 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() |
If not already part of a merged region, and one of the factors is
greater than 1, then create a merged region.
|
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_FACTOR
public static final java.lang.String ATTR_ADJUST
public static final java.lang.String ATTR_EXPAND_RIGHT
public static final java.lang.String ATTR_VALUE
public static final java.lang.String ATTR_FIXED
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()
Tag. Some optional
attributes are only valid for bodiless tags, and others are only valid
for tags without bodies.validateAttributes in class BaseTagpublic boolean process()
If not already part of a merged region, and one of the factors is greater than 1, then create a merged region. Else, replace the current merged region with a new merged region.
Copyright © 2012–2018 Jett Team. All rights reserved.