|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.hssf.record.RecordBase org.apache.poi.hssf.record.Record org.apache.poi.hssf.record.StandardRecord org.apache.poi.hssf.record.HyperlinkRecord
public final class HyperlinkRecord
The HyperlinkRecord
(0x01B8) wraps an HLINK-record
from the Excel-97 format.
Supports only external links for now (eg http://)
Field Summary | |
---|---|
static short |
sid
|
Constructor Summary | |
---|---|
HyperlinkRecord()
Create a new hyperlink |
|
HyperlinkRecord(RecordInputStream in)
|
Method Summary | |
---|---|
HyperlinkRecord |
clone()
|
java.lang.String |
getAddress()
Hyperlink address. |
protected int |
getDataSize()
|
int |
getFileOptions()
|
int |
getFirstColumn()
|
int |
getFirstRow()
|
java.lang.String |
getLabel()
Return text label for this hyperlink |
int |
getLabelOptions()
|
int |
getLastColumn()
|
int |
getLastRow()
|
java.lang.String |
getShortFilename()
|
short |
getSid()
return the non static version of the id for this record. |
java.lang.String |
getTargetFrame()
|
java.lang.String |
getTextMark()
|
boolean |
isDocumentLink()
Based on the link options, is this a document? |
boolean |
isFileLink()
Based on the link options, is this a file? |
boolean |
isUrlLink()
Based on the link options, is this a url? |
void |
newDocumentLink()
Initialize a new document link |
void |
newFileLink()
Initialize a new file link |
void |
newUrlLink()
Initialize a new url link |
void |
serialize(LittleEndianOutput out)
Write the data content of this BIFF record. |
void |
setAddress(java.lang.String address)
Hyperlink address. |
void |
setFirstColumn(int firstCol)
Set the first column (zero-based) of the range that contains this hyperlink |
void |
setFirstRow(int firstRow)
Set the first row (zero-based) of the range that contains this hyperlink |
void |
setLabel(java.lang.String label)
Sets text label for this hyperlink |
void |
setLastColumn(int lastCol)
Set the last column (zero-based) of the range that contains this hyperlink |
void |
setLastRow(int lastRow)
Set the last row (zero-based) of the range that contains this hyperlink |
void |
setShortFilename(java.lang.String shortFilename)
|
void |
setTextMark(java.lang.String textMark)
|
java.lang.String |
toString()
get a string representation of the record (for biffview/debugging) |
Methods inherited from class org.apache.poi.hssf.record.StandardRecord |
---|
getRecordSize, serialize |
Methods inherited from class org.apache.poi.hssf.record.Record |
---|
cloneViaReserialise, serialize |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final short sid
Constructor Detail |
---|
public HyperlinkRecord()
public HyperlinkRecord(RecordInputStream in)
Method Detail |
---|
public int getFirstColumn()
public void setFirstColumn(int firstCol)
firstCol
- the first column (zero-based)public int getLastColumn()
public void setLastColumn(int lastCol)
lastCol
- the last column (zero-based)public int getFirstRow()
public void setFirstRow(int firstRow)
firstRow
- the first row (zero-based)public int getLastRow()
public void setLastRow(int lastRow)
lastRow
- the last row (zero-based)public java.lang.String getLabel()
public void setLabel(java.lang.String label)
label
- text label for this hyperlinkpublic java.lang.String getTargetFrame()
public java.lang.String getAddress()
public void setAddress(java.lang.String address)
address
- the address of this hyperlinkpublic java.lang.String getShortFilename()
public void setShortFilename(java.lang.String shortFilename)
public java.lang.String getTextMark()
public void setTextMark(java.lang.String textMark)
public int getLabelOptions()
public int getFileOptions()
public void serialize(LittleEndianOutput out)
StandardRecord
The number of bytes written must equal the record size reported by
RecordBase.getRecordSize()
} minus four
( record header consisting of a 'ushort sid' and 'ushort reclength' has already been written
by their superclass).
serialize
in class StandardRecord
out
- the output objectprotected int getDataSize()
getDataSize
in class StandardRecord
public short getSid()
Record
getSid
in class Record
public java.lang.String toString()
Record
toString
in class Record
public boolean isUrlLink()
public boolean isFileLink()
public boolean isDocumentLink()
public void newUrlLink()
public void newFileLink()
public void newDocumentLink()
public HyperlinkRecord clone()
clone
in class Record
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |