|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jett.tag.BaseTag
net.sf.jett.tag.SpanTag
public class SpanTag
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.intintRichTextStringbooleanEither one or both of the factor and the adjust
attributes must be specified.
| Field Summary | |
|---|---|
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_VALUE
Attribute that specifies the value of the cell/merged region. |
| Fields inherited from class net.sf.jett.tag.BaseTag |
|---|
ATTR_ON_PROCESSED, SPEC_SEP |
| Constructor Summary | |
|---|---|
SpanTag()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class net.sf.jett.tag.BaseTag |
|---|
checkAttributes, clearBlock, deleteBlock, getAttributes, getContext, getWorkbookContext, isBodiless, processTag, removeBlock, setAttributes, setBodiless, setContext, setWorkbookContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public 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
| Constructor Detail |
|---|
public SpanTag()
| Method Detail |
|---|
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.
process in class BaseTagCell in the Block
associated with this Tag was processed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||