|
||||||||||
| 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.HyperlinkTag
public class HyperlinkTag
A HyperlinkTag represents a Cell that needs to have a
hyperlink on the cell. It controls Hyperlink properties such link type, the
link address, and the link label. Because Excel won't allow other text
besides the Hyperlink in the Cell, any text in the Cell but outside of the
Hyperlink tag will be removed when the Hyperlink is created.
BaseTag.StringStringRichTextString
| Field Summary | |
|---|---|
static java.lang.String |
ATTR_ADDRESS
Attribute that specifies the address of the link, e.g. |
static java.lang.String |
ATTR_TYPE
Attribute that specifies the link type to be created, which could be a web address, an email address, a document reference, or a file reference. |
static java.lang.String |
ATTR_VALUE
Attribute that specifies the value of the cell, which is the label for the link. |
static java.lang.String |
TYPE_DOC
The "type" value indicating a document link, with a cell reference. |
static java.lang.String |
TYPE_EMAIL
The "type" value indicating an email link with an email address. |
static java.lang.String |
TYPE_FILE
The "type" value indicating a file link with a pathname. |
static java.lang.String |
TYPE_URL
The "type" value indicating a web address with a URL. |
| Fields inherited from class net.sf.jett.tag.BaseTag |
|---|
ATTR_ON_PROCESSED, SPEC_SEP |
| Constructor Summary | |
|---|---|
HyperlinkTag()
|
|
| 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()
Place the Hyperlink in the Cell, which replaces any other value left behind in the Cell. |
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_TYPE
TYPE_URL,
TYPE_EMAIL,
TYPE_FILE,
TYPE_DOC,
Constant Field Valuespublic static final java.lang.String ATTR_ADDRESS
public static final java.lang.String ATTR_VALUE
public static final java.lang.String TYPE_URL
public static final java.lang.String TYPE_EMAIL
public static final java.lang.String TYPE_FILE
public static final java.lang.String TYPE_DOC
| Constructor Detail |
|---|
public HyperlinkTag()
| 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()
throws TagParseException
Tag. This tag must be
bodiless. The type must be valid.
validateAttributes in class BaseTagTagParseException - If the attribute values are illegal or
unacceptable.public boolean process()
Place the Hyperlink in the Cell, which replaces any other value left behind in the Cell.
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 | |||||||||