Modifier and Type | Field and Description |
---|---|
protected HyperlinkType |
link_type
If we create a new hyperlink remember its type
(如果我们创建一个新的超链接,请记住它的类型)
|
protected HyperlinkRecord |
record
Low-level record object that stores the actual hyperlink data
(存储实际超链接数据的低级记录对象)
|
Modifier | Constructor and Description |
---|---|
protected |
HSSFHyperlink(Hyperlink other) |
protected |
HSSFHyperlink(HyperlinkRecord record)
Initialize the hyperlink by a
HyperlinkRecord record
(通过 HyperlinkRecord 记录初始化超链接)
|
protected |
HSSFHyperlink(HyperlinkType type)
Construct a new hyperlink This method is internal to be used only by
HSSFCreationHelper.createHyperlink(HyperlinkType) .
(构造一个新的超链接 此方法是内部的,仅供 HSSFCreationHelper.createHyperlink(HyperlinkType) 使用。)
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
java.lang.String |
getAddress()
Hyperlink address.
(超链接地址。)
|
int |
getFirstColumn()
Return the column of the first cell that contains the hyperlink
(返回包含超链接的第一个单元格的列)
|
int |
getFirstRow()
Return the row of the first cell that contains the hyperlink
(返回包含超链接的第一个单元格的行)
|
java.lang.String |
getLabel()
Return text label for this hyperlink
(返回此超链接的文本标签)
|
int |
getLastColumn()
Return the column of the last cell that contains the hyperlink
(返回包含超链接的最后一个单元格的列)
|
int |
getLastRow()
Return the row of the last cell that contains the hyperlink
(返回包含超链接的最后一个单元格的行)
|
java.lang.String |
getShortFilename() |
java.lang.String |
getTextMark() |
HyperlinkType |
getType()
Return the type of this hyperlink
(返回此超链接的类型)
|
int |
hashCode() |
void |
setAddress(java.lang.String address)
Hyperlink address.
(超链接地址。)
|
void |
setFirstColumn(int col)
Set the column of the first cell that contains the hyperlink
(设置包含超链接的第一个单元格的列)
|
void |
setFirstRow(int row)
Set the row of the first cell that contains the hyperlink
(设置包含超链接的第一个单元格的行)
|
void |
setLabel(java.lang.String label)
Sets text label for this hyperlink
(设置此超链接的文本标签)
|
void |
setLastColumn(int col)
Set the column of the last cell that contains the hyperlink
(设置包含超链接的最后一个单元格的列)
|
void |
setLastRow(int row)
Set the row of the last cell that contains the hyperlink
(设置包含超链接的最后一个单元格的行)
|
void |
setShortFilename(java.lang.String shortFilename)
Convenience method equivalent to
setAddress(String)
(等效于 setAddress(String) 的便捷方法)
|
void |
setTextMark(java.lang.String textMark)
Convenience method equivalent to
setAddress(String)
(等效于 setAddress(String) 的便捷方法)
|
protected final HyperlinkRecord record
protected final HyperlinkType link_type
@Internal(since="3.15 beta 3") protected HSSFHyperlink(HyperlinkType type)
HSSFCreationHelper.createHyperlink(HyperlinkType)
.
(构造一个新的超链接 此方法是内部的,仅供 HSSFCreationHelper.createHyperlink(HyperlinkType) 使用。)
type
- the type of hyperlink to create
(type - 要创建的超链接的类型)
protected HSSFHyperlink(HyperlinkRecord record)
HyperlinkRecord
record
(通过 HyperlinkRecord 记录初始化超链接)
record
-
(记录 -)
protected HSSFHyperlink(Hyperlink other)
public int getFirstRow()
public void setFirstRow(int row)
row
- the 0-based row of the first cell that contains the hyperlink
(row - 包含超链接的第一个单元格的从 0 开始的行)
public int getLastRow()
public void setLastRow(int row)
row
- the 0-based row of the last cell that contains the hyperlink
(row - 包含超链接的最后一个单元格的从 0 开始的行)
public int getFirstColumn()
public void setFirstColumn(int col)
col
- the 0-based column of the first cell that contains the hyperlink
(col - 包含超链接的第一个单元格的从 0 开始的列)
public int getLastColumn()
public void setLastColumn(int col)
col
- the 0-based column of the last cell that contains the hyperlink
(col - 包含超链接的最后一个单元格的从 0 开始的列)
public java.lang.String getAddress()
getAddress
in interface
Hyperlink
(接口 Hyperlink 中的 getAddress)
public java.lang.String getTextMark()
public void setTextMark(java.lang.String textMark)
setAddress(String)
(等效于 setAddress(String) 的便捷方法)
textMark
- the place in worksheet this hyperlink refers to, e.g. 'Target Sheet'!A1'
(textMark - 此超链接所指的工作表中的位置,例如 'Target Sheet'!A1')
public java.lang.String getShortFilename()
public void setShortFilename(java.lang.String shortFilename)
setAddress(String)
(等效于 setAddress(String) 的便捷方法)
shortFilename
- the path to a file this hyperlink points to, e.g. 'readme.txt'
(shortFilename - 此超链接指向的文件的路径,例如“readme.txt”)
public void setAddress(java.lang.String address)
setAddress
in interface
Hyperlink
(接口超链接中的 setAddress)
address
- the address of this hyperlink
(address - 此超链接的地址)
public java.lang.String getLabel()
public void setLabel(java.lang.String label)
public HyperlinkType getType()
public boolean equals(java.lang.Object other)
equals
in class
java.lang.Object
public int hashCode()
hashCode
in class
java.lang.Object
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.