Package org.apache.poi.hssf.usermodel
Class HSSFHyperlink
- java.lang.Object
-
- org.apache.poi.hssf.usermodel.HSSFHyperlink
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(java.lang.Object other)java.lang.StringgetAddress()Hyperlink address.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.StringgetShortFilename()java.lang.StringgetTextMark()HyperlinkTypegetType()Return the type of this hyperlinkHyperlinkTypegetTypeEnum()Deprecated.usegetType()insteadinthashCode()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 hyperlinkvoidsetLastRow(int row)Set the row of the last cell that contains the hyperlinkvoidsetShortFilename(java.lang.String shortFilename)Convenience method equivalent tosetAddress(String)voidsetTextMark(java.lang.String textMark)Convenience method equivalent tosetAddress(String)
-
-
-
Method Detail
-
getFirstRow
public int getFirstRow()
Return the row of the first cell that contains the hyperlink- Specified by:
getFirstRowin interfaceHyperlink- Returns:
- the 0-based row of the cell that contains the hyperlink
-
setFirstRow
public void setFirstRow(int row)
Set the row of the first cell that contains the hyperlink- Specified by:
setFirstRowin interfaceHyperlink- Parameters:
row- the 0-based row of the first cell that contains the hyperlink
-
getLastRow
public int getLastRow()
Return the row of the last cell that contains the hyperlink- Specified by:
getLastRowin interfaceHyperlink- Returns:
- the 0-based row of the last cell that contains the hyperlink
-
setLastRow
public void setLastRow(int row)
Set the row of the last cell that contains the hyperlink- Specified by:
setLastRowin interfaceHyperlink- Parameters:
row- the 0-based row of the last cell that contains the hyperlink
-
getFirstColumn
public int getFirstColumn()
Return the column of the first cell that contains the hyperlink- Specified by:
getFirstColumnin interfaceHyperlink- Returns:
- the 0-based column of the first cell that contains the hyperlink
-
setFirstColumn
public void setFirstColumn(int col)
Set the column of the first cell that contains the hyperlink- Specified by:
setFirstColumnin interfaceHyperlink- Parameters:
col- 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- Specified by:
getLastColumnin interfaceHyperlink- Returns:
- the 0-based column of the last cell that contains the hyperlink
-
setLastColumn
public void setLastColumn(int col)
Set the column of the last cell that contains the hyperlink- Specified by:
setLastColumnin interfaceHyperlink- Parameters:
col- the 0-based column of the last cell that contains the hyperlink
-
getAddress
public java.lang.String getAddress()
Hyperlink address. Depending on the hyperlink type it can be URL, e-mail, path to a file, etc.- Specified by:
getAddressin interfaceHyperlink- Returns:
- the address of this hyperlink
-
getTextMark
public java.lang.String getTextMark()
-
setTextMark
public void setTextMark(java.lang.String textMark)
Convenience method equivalent tosetAddress(String)- Parameters:
textMark- the place in worksheet this hyperlink refers to, e.g. 'Target Sheet'!A1'
-
getShortFilename
public java.lang.String getShortFilename()
-
setShortFilename
public void setShortFilename(java.lang.String shortFilename)
Convenience method equivalent tosetAddress(String)- Parameters:
shortFilename- the path to a file this hyperlink points to, e.g. 'readme.txt'
-
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, etc.- Specified by:
setAddressin interfaceHyperlink- Parameters:
address- the address of this hyperlink
-
getLabel
public java.lang.String getLabel()
Return text label for this hyperlink
-
setLabel
public void setLabel(java.lang.String label)
Sets text label for this hyperlink
-
getType
public HyperlinkType getType()
Return the type of this hyperlink- Specified by:
getTypein interfaceHyperlink- Returns:
- the type of this hyperlink
- See Also:
HyperlinkType.forInt(int)
-
getTypeEnum
@Deprecated @Removal(version="4.2") public HyperlinkType getTypeEnum()
Deprecated.usegetType()insteadReturn the type of this hyperlink- Specified by:
getTypeEnumin interfaceHyperlink- Returns:
- the type of this hyperlink
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object- Returns:
- whether the objects have the same HyperlinkRecord
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-