org.apache.poi.xssf.usermodel
Class XSSFHyperlink
- java.lang.Object
-
- org.apache.poi.xssf.usermodel.XSSFHyperlink
-
-
Field Summary
-
Fields inherited from interface org.apache.poi.common.usermodel.Hyperlink
LINK_DOCUMENT, LINK_EMAIL, LINK_FILE, LINK_URL
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringgetAddress()Hyperlink address.java.lang.StringgetCellRef()Get the reference of the cell this applies to, es A55org.openxmlformats.schemas.spreadsheetml.x2006.main.CTHyperlinkgetCTHyperlink()intgetFirstColumn()Return the column of the first cell that contains the hyperlinkintgetFirstRow()Return the row of the first cell that contains the hyperlinkjava.lang.StringgetLabel()Return text label for this hyperlinkintgetLastColumn()Return the column of the last cell that contains the hyperlinkintgetLastRow()Return the row of the last cell that contains the hyperlinkjava.lang.StringgetLocation()Location within target.java.lang.StringgetTooltip()intgetType()Return the type of this hyperlinkbooleanneedsRelationToo()Do we need to a relation too, to represent this hyperlink?voidsetAddress(java.lang.String address)Hyperlink address.voidsetFirstColumn(int col)Set the column of the first cell that contains the hyperlinkvoidsetFirstRow(int row)Set the row of the first cell that contains the hyperlinkvoidsetLabel(java.lang.String label)Sets text label for this hyperlinkvoidsetLastColumn(int col)Set the column of the last cell that contains the hyperlink.voidsetLastRow(int row)Set the row of the last cell that contains the hyperlink.voidsetLocation(java.lang.String location)Location within target.voidsetTooltip(java.lang.String text)
-
-
-
Method Detail
-
getCTHyperlink
public org.openxmlformats.schemas.spreadsheetml.x2006.main.CTHyperlink getCTHyperlink()
- Returns:
- the underlying CTHyperlink object
-
needsRelationToo
public boolean needsRelationToo()
Do we need to a relation too, to represent this hyperlink?
-
getType
public int getType()
Return the type of this hyperlink
-
getCellRef
public java.lang.String getCellRef()
Get the reference of the cell this applies to, es A55
-
getAddress
public java.lang.String getAddress()
Hyperlink address. Depending on the hyperlink type it can be URL, e-mail, path to a file- Specified by:
getAddressin interfaceHyperlink- Returns:
- the address of this hyperlink
-
getLabel
public java.lang.String getLabel()
Return text label for this hyperlink
-
getLocation
public java.lang.String getLocation()
Location within target. If target is a workbook (or this workbook) this shall refer to a sheet and cell or a defined name. Can also be an HTML anchor if target is HTML file.- Returns:
- location
-
setLabel
public void setLabel(java.lang.String label)
Sets text label for this hyperlink
-
setLocation
public void setLocation(java.lang.String location)
Location within target. If target is a workbook (or this workbook) this shall refer to a sheet and cell or a defined name. Can also be an HTML anchor if target is HTML file.- Parameters:
location- - string representing a location of this hyperlink
-
setAddress
public void setAddress(java.lang.String address)
Hyperlink address. Depending on the hyperlink type it can be URL, e-mail, path to a file- Specified by:
setAddressin interfaceHyperlink- Parameters:
address- - the address of this hyperlink
-
getFirstColumn
public int getFirstColumn()
Return the column of the first cell that contains the hyperlink- Returns:
- the 0-based column of the first cell that contains the hyperlink
-
getLastColumn
public int getLastColumn()
Return the column of the last cell that contains the hyperlink- Returns:
- the 0-based column of the last cell that contains the hyperlink
-
getFirstRow
public int getFirstRow()
Return the row of the first cell that contains the hyperlink- Returns:
- the 0-based row of the cell that contains the hyperlink
-
getLastRow
public int getLastRow()
Return the row of the last cell that contains the hyperlink- Returns:
- the 0-based row of the last cell that contains the hyperlink
-
setFirstColumn
public void setFirstColumn(int col)
Set the column of the first cell that contains the hyperlink- Parameters:
col- the 0-based column of the first cell that contains the hyperlink
-
setLastColumn
public void setLastColumn(int col)
Set the column of the last cell that contains the hyperlink. For XSSF, a Hyperlink may only reference one cell- Parameters:
col- the 0-based column of the last cell that contains the hyperlink
-
setFirstRow
public void setFirstRow(int row)
Set the row of the first cell that contains the hyperlink- Parameters:
row- the 0-based row of the first cell that contains the hyperlink
-
setLastRow
public void setLastRow(int row)
Set the row of the last cell that contains the hyperlink. For XSSF, a Hyperlink may only reference one cell- Parameters:
row- the 0-based row of the last cell that contains the hyperlink
-
getTooltip
public java.lang.String getTooltip()
- Returns:
- additional text to help the user understand more about the hyperlink
-
setTooltip
public void setTooltip(java.lang.String text)
- Parameters:
text- additional text to help the user understand more about the hyperlink
-
-
DataMelt 3.0 © DataMelt by jWork.ORG