|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjxl.biff.RecordData
jxl.biff.WritableRecordData
jxl.write.biff.HyperlinkRecord
A number record. This is stored as 8 bytes, as opposed to the 4 byte RK record
| Field Summary |
| Fields inherited from class jxl.biff.WritableRecordData |
maxRecordLength |
| Constructor Summary | |
protected |
HyperlinkRecord(Hyperlink h,
WritableSheet s)
Constructs this object from the readable spreadsheet |
protected |
HyperlinkRecord(int col,
int row,
int lastcol,
int lastrow,
java.io.File file,
java.lang.String desc)
Constructs a File hyperlink to a range of cells |
protected |
HyperlinkRecord(int col,
int row,
int lastcol,
int lastrow,
java.lang.String desc,
WritableSheet s,
int destcol,
int destrow,
int lastdestcol,
int lastdestrow)
Constructs a hyperlink to some cells within this workbook |
protected |
HyperlinkRecord(int col,
int row,
int lastcol,
int lastrow,
java.net.URL url,
java.lang.String desc)
Constructs a URL hyperlink to a range of cells |
| Method Summary | |
int |
getColumn()
Returns the column number of the top left cell |
byte[] |
getData()
Gets the binary data to be written to the output file |
java.io.File |
getFile()
Returns the local file eferenced by this Hyperlink |
int |
getLastColumn()
Returns the column number of the bottom right cell |
int |
getLastRow()
Returns the row number of the bottom right cell |
Range |
getRange()
Gets the range of cells which activate this hyperlink The get sheet index methods will all return -1, because the cells will all be present on the same sheet |
int |
getRow()
Returns the row number of the top left cell |
java.net.URL |
getURL()
Gets the URL referenced by this Hyperlink |
boolean |
isFile()
Determines whether this is a hyperlink to a file |
boolean |
isLocation()
Determines whether this is a hyperlink to a location in this workbook |
boolean |
isUNC()
Determines whether this is a hyperlink to a UNC |
boolean |
isURL()
Determines whether this is a hyperlink to a web resource |
protected void |
setContents(java.lang.String desc)
Sets the description |
void |
setFile(java.io.File file)
Sets the file activated by this hyperlink |
protected void |
setLocation(java.lang.String desc,
WritableSheet sheet,
int destcol,
int destrow,
int lastdestcol,
int lastdestrow)
Sets the location of the cells to be linked to within this workbook |
void |
setURL(java.net.URL url)
Sets the URL of this hyperlink |
java.lang.String |
toString()
A standard toString method |
| Methods inherited from class jxl.biff.WritableRecordData |
getBytes |
| Methods inherited from class jxl.biff.RecordData |
getCode, getRecord |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected HyperlinkRecord(Hyperlink h,
WritableSheet s)
protected HyperlinkRecord(int col,
int row,
int lastcol,
int lastrow,
java.net.URL url,
java.lang.String desc)
col - the column containing this hyperlinkrow - the row containing this hyperlinklastcol - the last column which activates this hyperlinklastrow - the last row which activates this hyperlinkurl - the hyperlinkdesc - the description
protected HyperlinkRecord(int col,
int row,
int lastcol,
int lastrow,
java.io.File file,
java.lang.String desc)
col - the column containing this hyperlinkrow - the row containing this hyperlinklastcol - the last column which activates this hyperlinklastrow - the last row which activates this hyperlinkfile - the hyperlinkdesc - the description
protected HyperlinkRecord(int col,
int row,
int lastcol,
int lastrow,
java.lang.String desc,
WritableSheet s,
int destcol,
int destrow,
int lastdestcol,
int lastdestrow)
col - the column containing this hyperlinkrow - the row containing this hyperlinklastcol - the last column which activates this hyperlinklastrow - the last row which activates this hyperlinkdesc - the contents of the cell which describe this hyperlinkdestcol - the column number of the first destination linked celldestrow - the row number of the first destination linked celllastdestcol - the column number of the last destination linked celllastdestrow - the row number of the last destination linked cell| Method Detail |
public boolean isFile()
public boolean isUNC()
public boolean isURL()
public boolean isLocation()
public int getRow()
public int getColumn()
public int getLastRow()
public int getLastColumn()
public java.net.URL getURL()
public java.io.File getFile()
public byte[] getData()
getData in class WritableRecordDatapublic java.lang.String toString()
public Range getRange()
public void setURL(java.net.URL url)
url - the urlpublic void setFile(java.io.File file)
file - the file
protected void setLocation(java.lang.String desc,
WritableSheet sheet,
int destcol,
int destrow,
int lastdestcol,
int lastdestrow)
desc - the label describing the linksheet - the sheet containing the cells to be linked todestcol - the column number of the first destination linked celldestrow - the row number of the first destination linked celllastdestcol - the column number of the last destination linked celllastdestrow - the row number of the last destination linked cellprotected void setContents(java.lang.String desc)
desc - the description
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||