|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.iisc.jwc.jsheet.Cell
Cell contains a reference to a row, column, and sheet that represents a cell in a sheet.
| Field Summary | |
int |
col
The column reference. |
static short |
CURRENT_SHEET
The current sheet has been specified for the cell. |
static short |
NO_SHEET
No sheet has been specified for the cell. |
int |
row
The row reference. |
short |
sheetIdx
The sheet index reference, default to CURRENT_SHEET or -2. |
| Constructor Summary | |
Cell()
Constructs a Cell. |
|
Cell(int row,
int col)
Constructs a Cell with a specified row and column. |
|
Cell(int row,
int col,
short sheetIdx)
Constructs a Cell with a specified row, col and sheet index. |
|
Cell(java.lang.String cellRef)
Parses the string and constructs a Cell. |
|
| Method Summary | |
java.lang.Object |
clone()
Performs a cloning operation for a Cell. |
boolean |
equals(java.lang.Object cell)
Returns true if the object values are equal. |
short |
getSheetIndex()
Returns the sheet index for the cell. |
int |
hashCode()
Returns the hashcode for this Cell. |
boolean |
isValid()
Returns true if the row and column are in a valid range. |
void |
setSheetIndex(short index)
Sets a new sheet index for this cell. |
void |
setValue(int row,
int col)
Sets a new row and col value for this cell. |
void |
setValueUsingString(java.lang.String cellRef)
Parses the string and creates a Cell object. |
java.lang.String |
toString()
Returns a String representation of this object. |
short |
validate(short curSheet,
int totalSheets)
Returns the sheet index if this cell is valid. |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public int col
public static final short CURRENT_SHEET
public static final short NO_SHEET
public int row
public short sheetIdx
| Constructor Detail |
public Cell()
public Cell(int row,
int col)
row - the row reference.col - the column reference.
public Cell(int row,
int col,
short sheetIdx)
row - the row reference.col - the column reference.sheetIdx - index of sheet in this book; zero based.
public Cell(java.lang.String cellRef)
throws JSException
cellRef - The string to parse.
JSException - Invalid reference.| Method Detail |
public java.lang.Object clone()
public final boolean equals(java.lang.Object cell)
true if the object values are equal.
cell - the cell to test against.
true if the object values are equal.public short getSheetIndex()
public int hashCode()
public boolean isValid()
true if the row and column are in a valid range.
true if the row and column are in a valid range.public void setSheetIndex(short index)
index - a valid sheet index for the book; zero based.
public void setValue(int row,
int col)
row - the row reference.col - the column reference.
public void setValueUsingString(java.lang.String cellRef)
throws JSException
cellRef - The string to use in setting the cell value.
JSException - Invalid referencepublic java.lang.String toString()
public short validate(short curSheet,
int totalSheets)
throws JSException
curSheet - the current sheet index.totalSheets - the total number of sheets in this book.
JSException - Invalid cell or sheet reference.
|
Email JSheet Support | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||