|
||||||||||
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 | |
---|---|
static int |
LINK_DOCUMENT
Link to a place in this document |
static int |
LINK_EMAIL
Link to an E-mail address |
static int |
LINK_FILE
Link to a file |
protected int |
link_type
If we create a new hypelrink remember its type |
static int |
LINK_URL
Link to a existing file or web page |
protected HyperlinkRecord |
record
Low-level record object that stores the actual hyperlink data |
Constructor Summary | |
---|---|
protected |
HSSFHyperlink(HyperlinkRecord record)
Initialize the hyperlink by a HyperlinkRecord record |
|
HSSFHyperlink(int type)
Construct a new hyperlink |
Method Summary | |
---|---|
java.lang.String |
getAddress()
Hypelink 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()
Return the type of this hyperlink |
void |
setAddress(java.lang.String address)
Hypelink 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)
|
void |
setTextMark(java.lang.String textMark)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int LINK_URL
public static final int LINK_DOCUMENT
public static final int LINK_EMAIL
public static final int LINK_FILE
protected HyperlinkRecord record
protected int link_type
Constructor Detail |
---|
public HSSFHyperlink(int type)
type
- the type of hyperlink to createprotected HSSFHyperlink(HyperlinkRecord record)
HyperlinkRecord
record
record
- 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 Hyperlink
public java.lang.String getTextMark()
public void setTextMark(java.lang.String textMark)
public java.lang.String getShortFilename()
public void setShortFilename(java.lang.String shortFilename)
public void setAddress(java.lang.String address)
setAddress
in interface Hyperlink
address
- the address of this hyperlinkpublic java.lang.String getLabel()
getLabel
in interface Hyperlink
public void setLabel(java.lang.String label)
setLabel
in interface Hyperlink
label
- text label for this hyperlinkpublic int getType()
getType
in interface Hyperlink
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |