|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.data.spreadsheet.cellfinder.CellLocation
public class CellLocation
Container object for a cell location (row and column).
| Field Summary | |
|---|---|
protected int |
m_Column
the 0-based column. |
protected int |
m_Row
the 0-based row. |
| Constructor Summary | |
|---|---|
CellLocation(int row,
int col)
Initializes the position. |
|
CellLocation(String position)
Initializes the position with a cell string, like "A1". |
|
| Method Summary | |
|---|---|
int |
getColumn()
Returns the stored column. |
int |
getRow()
Returns the stored row. |
String |
toPosition()
Returns the cell location as position string, like "A1". |
String |
toString()
Returns a short description of the location. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int m_Row
protected int m_Column
| Constructor Detail |
|---|
public CellLocation(int row,
int col)
row - the 0-based rowcol - the 0-based column
public CellLocation(String position)
throws Exception
position - the cell position
Exception - if position is invalid| Method Detail |
|---|
public int getRow()
public int getColumn()
public String toPosition()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||