public final class HSLFHyperlink extends java.lang.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 java.util.List<HSLFHyperlink> |
find(HSLFTextShape shape)
Find hyperlinks in a text shape
(在文本形状中查找超链接)
|
protected static java.util.List<HSLFHyperlink> |
find(java.util.List<HSLFTextParagraph> paragraphs)
Find hyperlinks in a text paragraph
(在文本段落中查找超链接)
|
java.lang.String |
getAddress()
Hyperlink address.
(超链接地址。)
|
int |
getEndIndex()
Gets the ending character position
(获取结束字符位置)
|
ExHyperlink |
getExHyperlink() |
int |
getId() |
InteractiveInfo |
getInfo() |
java.lang.String |
getLabel()
Return text label for this hyperlink
(返回此超链接的文本标签)
|
int |
getStartIndex()
Gets the beginning character position
(获取起始字符位置)
|
TxInteractiveInfoAtom |
getTextRunInfo() |
HyperlinkType |
getType()
Gets the type of the hyperlink action.
(获取超链接操作的类型。)
|
void |
linkToEmail(java.lang.String emailAddress)
Link to an email
(链接到电子邮件)
|
void |
linkToFirstSlide()
Link to the first slide in this slideshow
(链接到此幻灯片中的第一张幻灯片)
|
void |
linkToLastSlide()
Link to the last slide in this slideshow
(链接到此幻灯片中的最后一张幻灯片)
|
void |
linkToNextSlide()
Link to the next slide (relative from the current)
(链接到下一张幻灯片(相对于当前))
|
void |
linkToPreviousSlide()
Link to the previous slide (relative from the current)
(链接到上一张幻灯片(相对于当前幻灯片))
|
void |
linkToSlide(Slide<HSLFShape,HSLFTextParagraph> slide)
Link to a slide in this slideshow
(链接到此幻灯片中的幻灯片)
|
void |
linkToUrl(java.lang.String url)
Link to a web page / URL
(链接到网页/URL)
|
void |
setAddress(java.lang.String str)
Hyperlink address.
(超链接地址。)
|
void |
setEndIndex(int endIndex)
Sets the ending character position
(设置结束字符位置)
|
void |
setLabel(java.lang.String label)
Sets text label for this hyperlink
(设置此超链接的文本标签)
|
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_*
constant
(获取超链接操作的类型。必须是 LINK_* 常量)
getType
in interface
Hyperlink
(接口 Hyperlink 中的 getType)
InteractiveInfoAtom
public void linkToEmail(java.lang.String emailAddress)
Hyperlink
emailAddress
- the email address
(emailAddress - 电子邮件地址)
public void linkToUrl(java.lang.String url)
Hyperlink
url
- the url
(网址 - 网址)
public void linkToSlide(Slide<HSLFShape,HSLFTextParagraph> slide)
Hyperlink
slide
- the linked slide
(slide - 链接的幻灯片)
public void linkToNextSlide()
Hyperlink
public void linkToPreviousSlide()
Hyperlink
public void linkToFirstSlide()
Hyperlink
public void linkToLastSlide()
Hyperlink
public java.lang.String getAddress()
Hyperlink
getAddress
in interface
Hyperlink
(接口 Hyperlink 中的 getAddress)
public void setAddress(java.lang.String str)
Hyperlink
setAddress
in interface
Hyperlink
(接口超链接中的 setAddress)
str
- the address of this hyperlink
(str - 此超链接的地址)
public int getId()
public java.lang.String getLabel()
Hyperlink
public void setLabel(java.lang.String label)
Hyperlink
public int getStartIndex()
public void setStartIndex(int startIndex)
startIndex
- the beginning character position
(startIndex - 开始字符位置)
public int getEndIndex()
public void setEndIndex(int endIndex)
endIndex
- the ending character position
(endIndex - 结束字符位置)
public static java.util.List<HSLFHyperlink> find(HSLFTextShape shape)
shape
-
TextRun
to lookup hyperlinks in
(shape - TextRun 在其中查找超链接)
null
if not found
(找到超链接,如果没有找到则返回 null)
protected static java.util.List<HSLFHyperlink> find(java.util.List<HSLFTextParagraph> paragraphs)
paragraphs
- List of
TextParagraph
to lookup hyperlinks
(段落 - 用于查找超链接的 TextParagraph 列表)
protected static HSLFHyperlink find(HSLFShape shape)
shape
-
Shape
to lookup hyperlink in
(shape - 查找超链接的形状)
null
(找到超链接或空)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.