|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--com.jrefinery.workbook.Cell
Represents one cell in a worksheet.
| Field Summary | |
protected int |
column
The column number (0 to Worksheet.MAX_COLUMNS-1). |
protected java.lang.String |
content
The cell contents. |
static int |
DATE
Constant for date cell. |
static int |
EXPRESSION
Constant for formula cell. |
static int |
LABEL
Constant for label cell. |
protected int |
row
The row number (0 to Worksheet.MAX_ROWS-1). |
static int |
VALUE
Constant for value cell. |
protected java.lang.String |
valueFormat
The value format (if required). |
protected int |
valueType
The type of data in the cell. |
| Constructor Summary | |
Cell(int column,
int row,
int valueType,
java.lang.String content)
Standard constructor. |
|
| Method Summary | |
int |
compareTo(java.lang.Object other)
Implements the Comparable interface so that cells can easily be sorted. |
int |
getSerialNumber()
Returns an integer that increases across columns and down rows. |
void |
writeCell(java.io.PrintStream out,
java.lang.String indent)
Write the cell element. |
protected void |
writeContent(java.io.PrintStream out,
java.lang.String indent)
Write the cell contents. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int EXPRESSION
public static final int DATE
public static final int VALUE
public static final int LABEL
protected int column
protected int row
protected int valueType
protected java.lang.String content
protected java.lang.String valueFormat
| Constructor Detail |
public Cell(int column,
int row,
int valueType,
java.lang.String content)
column - The column.row - The row.valueType - The cell type.content - The cell contents.| Method Detail |
public int compareTo(java.lang.Object other)
compareTo in interface java.lang.Comparableother - The object being compared to.public int getSerialNumber()
public void writeCell(java.io.PrintStream out,
java.lang.String indent)
out - The output stream.indent - The indentation.
protected void writeContent(java.io.PrintStream out,
java.lang.String indent)
out - The output stream.indent - The indentation.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||