|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jxl.biff.RecordData | +--jxl.biff.WritableRecordData | +--jxl.write.biff.CellValue
Abstract class which stores the common data used for cells, such as row, column and formatting information. Any record which directly represents the contents of a cell, such as labels and numbers, are derived from this class data store
Field Summary | |
private int |
column
The column in the worksheet at which this cell is located |
private XFRecord |
format
The format applied to this cell |
private FormattingRecords |
formattingRecords
A handle to the formatting records, used in case we want to change the format of the cell once it has been added to the spreadsheet |
private boolean |
referenced
A flag to indicate that this record is already referenced within a worksheet |
private int |
row
The row in the worksheet at which this cell is located |
private WritableSheetImpl |
sheet
A handle to the sheet |
Fields inherited from class jxl.biff.WritableRecordData |
maxRecordLength |
Fields inherited from class jxl.biff.RecordData |
code, record |
Constructor Summary | |
protected |
CellValue(Type t,
Cell c)
Constructor used when creating a writable cell from a read-only cell (when copying a workbook) |
protected |
CellValue(Type t,
int c,
int r)
Constructor used when building writable cells from the Java API |
protected |
CellValue(Type t,
int c,
int r,
CellFormat st)
Overloaded constructor used when building writable cells from the Java API which also takes a format |
Method Summary | |
(package private) void |
decrementColumn()
Decrements the column of this cell by one. |
(package private) void |
decrementRow()
Decrements the row of this cell by one. |
CellFormat |
getCellFormat()
API method which gets the format applied to this cell |
int |
getColumn()
Returns the column number of this cell |
byte[] |
getData()
Gets the data to write to the output file |
int |
getRow()
Returns the row number of this cell |
(package private) int |
getXFIndex()
Gets the internal index of the formatting record |
(package private) void |
incrementColumn()
Increments the column of this cell by one. |
(package private) void |
incrementRow()
Increments the row of this cell by one. |
boolean |
isHidden()
Indicates whether or not this cell is hidden, by virtue of either the entire row or column being collapsed |
(package private) boolean |
isReferenced()
Internal method to see if this cell is referenced within the workbook. |
(package private) void |
setCellDetails(FormattingRecords fr,
SharedStrings ss,
WritableSheetImpl s)
Called when the cell is added to the worksheet in order to indicate that this object is already added to the worksheet This method also verifies that the associated formats and formats have been initialized correctly |
void |
setCellFormat(CellFormat cf)
An API function which sets the format to apply to this cell |
Methods inherited from class jxl.biff.WritableRecordData |
getBytes, handleContinueRecords |
Methods inherited from class jxl.biff.RecordData |
getCode, getRecord |
Methods inherited from class java.lang.Object |
|
Methods inherited from interface jxl.Cell |
getContents, getType |
Field Detail |
private int row
private int column
private XFRecord format
private FormattingRecords formattingRecords
private boolean referenced
private WritableSheetImpl sheet
Constructor Detail |
protected CellValue(Type t, int c, int r)
c
- the columnt
- the type indicatorr
- the rowprotected CellValue(Type t, Cell c)
c
- the cell to clonet
- the type of this cellprotected CellValue(Type t, int c, int r, CellFormat st)
c
- the columnt
- the cell typer
- the rowst
- the format to apply to this cellMethod Detail |
public void setCellFormat(CellFormat cf)
setCellFormat
in interface WritableCell
cf
- the format to apply to this cellpublic int getRow()
getRow
in interface Cell
public int getColumn()
getColumn
in interface Cell
public boolean isHidden()
isHidden
in interface Cell
public byte[] getData()
getData
in class WritableRecordData
void setCellDetails(FormattingRecords fr, SharedStrings ss, WritableSheetImpl s)
fr
- the formatting recordsss
- the shared strings used within the workbooks
- the sheet this is being added tofinal boolean isReferenced()
final int getXFIndex()
public CellFormat getCellFormat()
getCellFormat
in interface Cell
void incrementRow()
void decrementRow()
void incrementColumn()
void decrementColumn()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |