LINK_DOCUMENT, LINK_EMAIL, LINK_FILE, LINK_URL
Modifier | Constructor | Description |
---|---|---|
protected |
XSSFHyperlink(int type) |
Create a new XSSFHyperlink.
|
protected |
XSSFHyperlink(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTHyperlink ctHyperlink,
PackageRelationship hyperlinkRel) |
Create a XSSFHyperlink amd initialize it from the supplied CTHyperlink bean and package relationship
|
Modifier and Type | Method | Description |
---|---|---|
protected void |
generateRelationIfNeeded(PackagePart sheetPart) |
Generates the relation if required
|
java.lang.String |
getAddress() |
Hyperlink address.
|
java.lang.String |
getCellRef() |
Get the reference of the cell this applies to,
es A55
|
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() |
|
int |
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.
|
protected void |
setCellReference(java.lang.String ref) |
Assigns this hyperlink to the given cell reference
|
protected void |
setCellReference(CellReference ref) |
|
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(int type)
type
- - the type of hyperlink to create, see Hyperlink
protected XSSFHyperlink(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTHyperlink ctHyperlink, PackageRelationship hyperlinkRel)
ctHyperlink
- the xml bean containing xml propertieshyperlinkRel
- the relationship in the underlying OPC package which stores the actual link's addresspublic org.openxmlformats.schemas.spreadsheetml.x2006.main.CTHyperlink getCTHyperlink()
public boolean needsRelationToo()
protected void generateRelationIfNeeded(PackagePart sheetPart)
public int getType()
public java.lang.String getCellRef()
public java.lang.String getAddress()
getAddress
in interface Hyperlink
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 hyperlinkpublic void setAddress(java.lang.String address)
setAddress
in interface Hyperlink
address
- - the address of this hyperlinkprotected void setCellReference(java.lang.String ref)
protected void setCellReference(CellReference ref)
public int getFirstColumn()
getFirstColumn
in interface Hyperlink
public int getLastColumn()
getLastColumn
in interface Hyperlink
public int getFirstRow()
getFirstRow
in interface Hyperlink
public int getLastRow()
getLastRow
in interface Hyperlink
public void setFirstColumn(int col)
setFirstColumn
in interface Hyperlink
col
- the 0-based column of the first cell that contains the hyperlinkpublic void setLastColumn(int col)
setLastColumn
in interface Hyperlink
col
- the 0-based column of the last cell that contains the hyperlinkpublic void setFirstRow(int row)
setFirstRow
in interface Hyperlink
row
- the 0-based row of the first cell that contains the hyperlinkpublic void setLastRow(int row)
setLastRow
in interface Hyperlink
row
- the 0-based row of the last cell that contains the hyperlinkpublic java.lang.String getTooltip()
public void setTooltip(java.lang.String text)
text
- additional text to help the user understand more about the hyperlinkCopyright 2018 The Apache Software Foundation or its licensors, as applicable.