| Modifier | Constructor and Description |
|---|---|
protected |
XSSFHyperlink(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTHyperlink ctHyperlink, PackageRelationship hyperlinkRel)
Create a XSSFHyperlink and initialize it from the supplied CTHyperlink bean and package relationship
(创建一个 XSSFHyperlink 并从提供的 CTHyperlink bean 和包关系初始化它)
|
|
XSSFHyperlink(Hyperlink other)
Create a new XSSFHyperlink.
(创建一个新的 XSSFHyperlink。)
|
protected |
XSSFHyperlink(HyperlinkType type)
Create a new XSSFHyperlink.
(创建一个新的 XSSFHyperlink。)
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
generateRelationIfNeeded(PackagePart sheetPart)
Generates the relation if required
(如果需要,生成关系)
|
java.lang.String |
getAddress()
Hyperlink address.
(超链接地址。)
|
java.lang.String |
getCellRef()
Get the address of the cell this hyperlink applies to, e.g.
(获取此超链接适用的单元格的地址,例如)
|
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTHyperlink |
getCTHyperlink() |
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 |
getLocation()
Location within target.
(目标内的位置。)
|
java.lang.String |
getTooltip() |
HyperlinkType |
getType()
Return the type of this hyperlink
(返回此超链接的类型)
|
boolean |
needsRelationToo()
Do we need to a relation too, to represent this hyperlink?
(我们是否也需要一个关系来表示这个超链接?)
|
void |
setAddress(java.lang.String address)
Hyperlink address.
(超链接地址。)
|
void |
setCellReference(CellReference ref) |
void |
setCellReference(java.lang.String ref)
Assigns this hyperlink to the given cell reference
(将此超链接分配给给定的单元格引用)
|
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 |
setLocation(java.lang.String location)
Location within target.
(目标内的位置。)
|
void |
setTooltip(java.lang.String text) |
protected XSSFHyperlink(HyperlinkType type)
XSSFCreationHelper.createHyperlink(HyperlinkType).
(创建一个新的 XSSFHyperlink。此方法受保护,仅供 XSSFCreationHelper.createHyperlink(HyperlinkType) 使用。)
type - - the type of hyperlink to create
(type - - 要创建的超链接的类型)
protected XSSFHyperlink(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTHyperlink ctHyperlink,
PackageRelationship hyperlinkRel)
ctHyperlink - the xml bean containing xml properties
(ctHyperlink - 包含 xml 属性的 xml bean)
hyperlinkRel - the relationship in the underlying OPC package which stores the actual link's address
(hyperlinkRel - 底层 OPC 包中存储实际链接地址的关系)
@Internal public XSSFHyperlink(Hyperlink other)
XSSFCreationHelper. See the
spreadsheet quick-guide for an example.
(创建一个新的 XSSFHyperlink。此方法仅供内部使用。 XSSFCreationHelper 可以创建 XSSF 超链接。有关示例,请参阅电子表格快速指南。)
other - the hyperlink to copy
(other - 要复制的超链接)
@Internal public org.openxmlformats.schemas.spreadsheetml.x2006.main.CTHyperlink getCTHyperlink()
public boolean needsRelationToo()
protected void generateRelationIfNeeded(PackagePart sheetPart)
public HyperlinkType getType()
public java.lang.String getCellRef()
public java.lang.String getAddress()
getAddress in interface
Hyperlink
(接口 Hyperlink 中的 getAddress)
public java.lang.String getLabel()
public java.lang.String getLocation()
public void setLabel(java.lang.String label)
public void setLocation(java.lang.String location)
location - - string representing a location of this hyperlink
(location - 表示此超链接位置的字符串)
public void setAddress(java.lang.String address)
setAddress in interface
Hyperlink
(接口超链接中的 setAddress)
address - - the address of this hyperlink
(地址——这个超链接的地址)
@Internal public void setCellReference(java.lang.String ref)
@Internal public void setCellReference(CellReference ref)
public int getFirstColumn()
public int getLastColumn()
public int getFirstRow()
public int getLastRow()
public void setFirstColumn(int col)
col - the 0-based column of the first cell that contains the hyperlink
(col - 包含超链接的第一个单元格的从 0 开始的列)
public void setLastColumn(int col)
col - the 0-based column of the last cell that contains the hyperlink
(col - 包含超链接的最后一个单元格的从 0 开始的列)
public void setFirstRow(int row)
row - the 0-based row of the first cell that contains the hyperlink
(row - 包含超链接的第一个单元格的从 0 开始的行)
public void setLastRow(int row)
row - the 0-based row of the last cell that contains the hyperlink
(row - 包含超链接的最后一个单元格的从 0 开始的行)
public java.lang.String getTooltip()
public void setTooltip(java.lang.String text)
text - additional text to help the user understand more about the hyperlink
(文本 - 附加文本以帮助用户了解有关超链接的更多信息)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.