|
|||||||||
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.RowRecord
Contains all the cells for a given row in a sheet
Field Summary | |
private CellValue[] |
cells
The cells which comprise this row |
private boolean |
collapsed
Flag to indicate whether this row is outline collapsed or not |
private byte[] |
data
The binary data |
private static int |
defaultHeightIndicator
Indicates that the row is default height |
private static int |
growSize
The amount to grow the cells array by |
private static int |
maxRKValue
The maximum integer value that can be squeezed into 30 bits |
private static int |
minRKValue
The minimum integer value that can be squeezed into 30 bits |
private int |
numColumns
The number of columns in this row. |
private int |
rowHeight
The height of this row |
private int |
rowNumber
The number of this row within the worksheet |
Fields inherited from class jxl.biff.WritableRecordData |
maxRecordLength |
Fields inherited from class jxl.biff.RecordData |
code, record |
Constructor Summary | |
RowRecord(int rn)
Constructs an empty row which has the specified row number |
Method Summary | |
void |
addCell(CellValue cv)
Adds a cell to this row, growing the array of cells as required |
(package private) void |
decrementRow()
Decrements the row of this cell by one. |
CellValue |
getCell(int col)
Gets the cell which occurs at the specified column value |
byte[] |
getData()
Gets the row data to output to file |
int |
getMaxColumn()
Gets the maximum column value which occurs in this row |
int |
getRowHeight()
Gets the height of the row |
int |
getRowNumber()
Gets the row number of this row |
(package private) void |
incrementRow()
Increments the row of this cell by one. |
(package private) void |
insertColumn(int col)
Inserts a new column at the position specified |
boolean |
isCollapsed()
Queries whether the row is collapsed |
boolean |
isDefaultHeight()
Interrogates whether this row is of default height |
void |
removeCell(int col)
Removes a cell from this row |
(package private) void |
removeColumn(int col)
Remove the new column at the position specified |
void |
setCollapsed(boolean c)
Sets the collapsed status of this row |
(package private) void |
setRowDetails(int height,
boolean col)
Sets the row details based upon the readable row record passed in Called when copying spreadsheets |
void |
setRowHeight(int h)
Sets the height of this row |
void |
write(File outputFile)
Writes out the row information data (but not the individual cells) |
void |
writeCells(File outputFile)
Writes out all the cells in this row. |
private void |
writeIntegerValues(java.util.ArrayList integerValues,
File outputFile)
Writes out the list of integer values. |
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 |
|
Field Detail |
private byte[] data
private CellValue[] cells
private int rowHeight
private boolean collapsed
private int rowNumber
private int numColumns
private static final int growSize
private static final int maxRKValue
private static final int minRKValue
private static int defaultHeightIndicator
Constructor Detail |
public RowRecord(int rn)
rn
- the row number of this rowMethod Detail |
public void setRowHeight(int h)
h
- the row heightvoid setRowDetails(int height, boolean col)
height
- the height of the row record in 1/20ths of a pointthe
- collapsed status of the rowpublic void setCollapsed(boolean c)
c
- the collapsed flagpublic int getRowNumber()
public void addCell(CellValue cv)
cv
- the cell to addpublic void removeCell(int col)
col
- the column at which to remove the cellpublic void write(File outputFile) throws java.io.IOException
outputFile
- the output filejava.io.IOException
- public void writeCells(File outputFile) throws java.io.IOException
outputFile
- the output filejava.io.IOException
- private void writeIntegerValues(java.util.ArrayList integerValues, File outputFile) throws java.io.IOException
outputFile
- the output fileintegerValues
- the array of integer valuesjava.io.IOException
- public byte[] getData()
getData
in class WritableRecordData
public int getMaxColumn()
public CellValue getCell(int col)
col
- the colun for which to return the cellvoid incrementRow()
void decrementRow()
void insertColumn(int col)
col
- the column to insertvoid removeColumn(int col)
col
- the column to removepublic boolean isDefaultHeight()
public int getRowHeight()
public boolean isCollapsed()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |