org.apache.poi.common.usermodel
Interface Hyperlink
-
- All Known Subinterfaces:
- Hyperlink
- All Known Implementing Classes:
- HSSFHyperlink, XSSFHyperlink
public interface HyperlinkRepresents a hyperlink.
-
-
Field Summary
Fields Modifier and Type Field and Description static intLINK_DOCUMENTLink to a place in this documentstatic intLINK_EMAILLink to an E-mail addressstatic intLINK_FILELink to a filestatic intLINK_URLLink to an existing file or web page
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description java.lang.StringgetAddress()Hyperlink address.java.lang.StringgetLabel()Return text label for this hyperlinkintgetType()Return the type of this hyperlinkvoidsetAddress(java.lang.String address)Hyperlink address.voidsetLabel(java.lang.String label)Sets text label for this hyperlink
-
-
-
Field Detail
-
LINK_URL
static final int LINK_URL
Link to an existing file or web page- See Also:
- Constant Field Values
-
LINK_DOCUMENT
static final int LINK_DOCUMENT
Link to a place in this document- See Also:
- Constant Field Values
-
LINK_EMAIL
static final int LINK_EMAIL
Link to an E-mail address- See Also:
- Constant Field Values
-
LINK_FILE
static final int LINK_FILE
Link to a file- See Also:
- Constant Field Values
-
-
Method Detail
-
getAddress
java.lang.String getAddress()
Hyperlink address. Depending on the hyperlink type it can be URL, e-mail, path to a file, etc.- Returns:
- the address of this hyperlink
-
setAddress
void setAddress(java.lang.String address)
Hyperlink address. Depending on the hyperlink type it can be URL, e-mail, path to a file, etc.- Parameters:
address- the address of this hyperlink
-
getLabel
java.lang.String getLabel()
Return text label for this hyperlink- Returns:
- text to display
-
setLabel
void setLabel(java.lang.String label)
Sets text label for this hyperlink- Parameters:
label- text label for this hyperlink
-
getType
int getType()
Return the type of this hyperlink- Returns:
- the type of this hyperlink
-
-
DataMelt 3.0 © DataMelt by jWork.ORG