spreadsheet
Class Cell
java.lang.Object
|
+--spreadsheet.Cell
- public class Cell
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
Constructor Summary |
Cell(Cell cell)
|
Cell(int c,
int r)
Constructs a Cell |
Cell(java.lang.String info)
Constructs a Cell from a String |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Cell
public Cell(int c,
int r)
throws java.lang.IllegalArgumentException
- Constructs a Cell
Cell
public Cell(Cell cell)
Cell
public Cell(java.lang.String info)
throws java.lang.IllegalArgumentException
- Constructs a Cell from a String
isCell
public static boolean isCell(java.lang.String s)
getColumn
public int getColumn()
getRow
public int getRow()
setColumn
public void setColumn(int c)
setRow
public void setRow(int r)
getRowLabel
public java.lang.String getRowLabel()
getColumnLabel
public static java.lang.String getColumnLabel(int colNumber)
- Column is A-Z, AA-ZZ, AAA-ZZZ, etc...
starts counting from 1, thus subtract 1
getColumnLabel
public java.lang.String getColumnLabel()
isSame
public boolean isSame(Cell c)
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object