Constructor and Description |
---|
XSSFHyperlink(Hyperlink other)
Create a new XSSFHyperlink.
|
Modifier and Type | Method and Description |
---|---|
String |
getAddress()
Hyperlink address.
|
String |
getCellRef()
Get the reference of the cell this applies to,
es A55
|
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
|
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
|
String |
getLocation()
Location within target.
|
String |
getTooltip() |
HyperlinkType |
getType()
Return the type of this hyperlink
|
HyperlinkType |
getTypeEnum()
Deprecated.
use
getType instead |
boolean |
needsRelationToo()
Do we need to a relation too, to represent
this hyperlink?
|
void |
setAddress(String address)
Hyperlink address.
|
void |
setCellReference(CellReference ref) |
void |
setCellReference(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(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(String location)
Location within target.
|
void |
setTooltip(String text) |
@Internal public XSSFHyperlink(Hyperlink other)
XSSFCreationHelper
.
See the spreadsheet quick-guide
for an example.other
- the hyperlink to copy@Internal public CTHyperlink getCTHyperlink()
public boolean needsRelationToo()
public HyperlinkType getType()
getType
in interface Hyperlink
HyperlinkType.forInt(int)
@Deprecated @Removal(version="4.2") public HyperlinkType getTypeEnum()
getType
insteadgetTypeEnum
in interface Hyperlink
public String getCellRef()
public String getAddress()
getAddress
in interface Hyperlink
public String getLabel()
public String getLocation()
public void setLabel(String label)
public void setLocation(String location)
location
- - string representing a location of this hyperlinkpublic void setAddress(String address)
setAddress
in interface Hyperlink
address
- - the address of this hyperlink@Internal public void setCellReference(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 hyperlinkpublic void setLastColumn(int col)
col
- the 0-based column of the last cell that contains the hyperlinkpublic void setFirstRow(int row)
row
- the 0-based row of the first cell that contains the hyperlinkpublic void setLastRow(int row)
row
- the 0-based row of the last cell that contains the hyperlinkpublic String getTooltip()
public void setTooltip(String text)
text
- additional text to help the user understand more about the hyperlinkCopyright © 2010 - 2020 Adobe. All Rights Reserved