Tag
RickrollTag
public class HyperlinkTag extends BaseTag
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
.String
String
RichTextString
Modifier and Type | Field | Description |
---|---|---|
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.
|
ATTR_ON_PROCESSED, SPEC_SEP
Constructor | Description |
---|---|
HyperlinkTag() |
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() |
Place the Hyperlink in the Cell, which replaces any other value left
behind in the Cell.
|
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_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
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 be
bodiless. The type must be valid.validateAttributes
in class BaseTag
TagParseException
- If the attribute values are illegal or
unacceptable.Copyright © 2012–2018 Jett Team. All rights reserved.