|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.poi.hssf.usermodel.HSSFHyperlink
public class HSSFHyperlink
Represents an Excel hyperlink.
| Field Summary | |
|---|---|
protected HyperlinkType |
link_type
If we create a new hyperlink remember its type |
protected HyperlinkRecord |
record
Low-level record object that stores the actual hyperlink data |
| Constructor Summary | |
|---|---|
protected |
HSSFHyperlink(Hyperlink other)
|
protected |
HSSFHyperlink(HyperlinkRecord record)
Initialize the hyperlink by a HyperlinkRecord record |
protected |
HSSFHyperlink(HyperlinkType type)
Construct a new hyperlink This method is internal to be used only by HSSFCreationHelper.createHyperlink(HyperlinkType). |
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object other)
|
java.lang.String |
getAddress()
Hyperlink address. |
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 |
getShortFilename()
|
java.lang.String |
getTextMark()
|
int |
getType()
Deprecated. POI 3.15. Use getTypeEnum() instead.
getType will return a HyperlinkType enum in the future. |
HyperlinkType |
getTypeEnum()
Return the type of this hyperlink |
int |
hashCode()
|
void |
setAddress(java.lang.String address)
Hyperlink address. |
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 |
setShortFilename(java.lang.String shortFilename)
Convenience method equivalent to setAddress(String) |
void |
setTextMark(java.lang.String textMark)
Convenience method equivalent to setAddress(String) |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final HyperlinkRecord record
protected final HyperlinkType link_type
| Constructor Detail |
|---|
@Internal(since="3.15 beta 3") protected HSSFHyperlink(HyperlinkType type)
HSSFCreationHelper.createHyperlink(HyperlinkType).
type - the type of hyperlink to createprotected HSSFHyperlink(HyperlinkRecord record)
HyperlinkRecord record
record - protected HSSFHyperlink(Hyperlink other)
| Method Detail |
|---|
public int getFirstRow()
public void setFirstRow(int row)
row - the 0-based row of the first cell that contains the hyperlinkpublic int getLastRow()
public void setLastRow(int row)
row - the 0-based row of the last cell that contains the hyperlinkpublic int getFirstColumn()
public void setFirstColumn(int col)
col - the 0-based column of the first cell that contains the hyperlinkpublic int getLastColumn()
public void setLastColumn(int col)
col - the 0-based column of the last cell that contains the hyperlinkpublic java.lang.String getAddress()
getAddress in interface Hyperlinkpublic java.lang.String getTextMark()
public void setTextMark(java.lang.String textMark)
setAddress(String)
textMark - the place in worksheet this hyperlink refers to, e.g. 'Target Sheet'!A1'public java.lang.String getShortFilename()
public void setShortFilename(java.lang.String shortFilename)
setAddress(String)
shortFilename - the path to a file this hyperlink points to, e.g. 'readme.txt'public void setAddress(java.lang.String address)
setAddress in interface Hyperlinkaddress - the address of this hyperlinkpublic java.lang.String getLabel()
getLabel in interface Hyperlinkpublic void setLabel(java.lang.String label)
setLabel in interface Hyperlinklabel - text label for this hyperlinkpublic int getType()
getTypeEnum() instead.
getType will return a HyperlinkType enum in the future.
getType in interface HyperlinkHyperlinkType.forInt(int)public HyperlinkType getTypeEnum()
getTypeEnum in interface Hyperlinkpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||