public final class HSLFHyperlink extends Object implements Hyperlink<HSLFShape,HSLFTextParagraph>
| Modifier | Constructor and Description |
|---|---|
protected |
HSLFHyperlink(ExHyperlink exHyper,
InteractiveInfo info) |
| Modifier and Type | Method and Description |
|---|---|
protected static HSLFHyperlink |
find(HSLFShape shape)
Find hyperlink assigned to the supplied shape
|
static List<HSLFHyperlink> |
find(HSLFTextShape shape)
Find hyperlinks in a text shape
|
protected static List<HSLFHyperlink> |
find(List<HSLFTextParagraph> paragraphs)
Find hyperlinks in a text paragraph
|
String |
getAddress() |
int |
getEndIndex()
Gets the ending character position
|
ExHyperlink |
getExHyperlink() |
int |
getId() |
InteractiveInfo |
getInfo() |
String |
getLabel() |
int |
getStartIndex()
Gets the beginning character position
|
TxInteractiveInfoAtom |
getTextRunInfo() |
HyperlinkType |
getType()
Gets the type of the hyperlink action.
|
void |
linkToEmail(String emailAddress) |
void |
linkToFirstSlide() |
void |
linkToLastSlide() |
void |
linkToNextSlide() |
void |
linkToPreviousSlide() |
void |
linkToSlide(Slide<HSLFShape,HSLFTextParagraph> slide) |
void |
linkToUrl(String url) |
void |
setAddress(String str) |
void |
setEndIndex(int endIndex)
Sets the ending character position
|
void |
setLabel(String label) |
void |
setStartIndex(int startIndex)
Sets the beginning character position
|
protected void |
setTextRunInfo(TxInteractiveInfoAtom txinfo) |
protected HSLFHyperlink(ExHyperlink exHyper, InteractiveInfo info)
public ExHyperlink getExHyperlink()
public InteractiveInfo getInfo()
public TxInteractiveInfoAtom getTextRunInfo()
protected void setTextRunInfo(TxInteractiveInfoAtom txinfo)
public HyperlinkType getType()
LINK_* constantgetType in interface HyperlinkInteractiveInfoAtompublic void linkToEmail(String emailAddress)
public void linkToUrl(String url)
public void linkToSlide(Slide<HSLFShape,HSLFTextParagraph> slide)
public void linkToNextSlide()
public void linkToPreviousSlide()
public void linkToFirstSlide()
public void linkToLastSlide()
public String getAddress()
getAddress in interface Hyperlinkpublic void setAddress(String str)
setAddress in interface Hyperlinkpublic int getId()
public int getStartIndex()
public void setStartIndex(int startIndex)
startIndex - the beginning character positionpublic int getEndIndex()
public void setEndIndex(int endIndex)
endIndex - the ending character positionpublic static List<HSLFHyperlink> find(HSLFTextShape shape)
shape - TextRun to lookup hyperlinks innull if not foundprotected static List<HSLFHyperlink> find(List<HSLFTextParagraph> paragraphs)
paragraphs - List of TextParagraph to lookup hyperlinksprotected static HSLFHyperlink find(HSLFShape shape)
shape - Shape to lookup hyperlink innull