com.eteks.jeks
Class JeksCell
java.lang.Object
|
+--com.eteks.jeks.JeksCell
- All Implemented Interfaces:
- java.io.Serializable
- public class JeksCell
- extends java.lang.Object
- implements java.io.Serializable
Cell of a table. This class stores the row and the column of a cell.
- Since:
- Jeks 1.0
- Version:
- 1.0
- Author:
- Emmanuel Puybaret
- See Also:
- Serialized Form
Constructor Summary |
JeksCell(int row,
int column)
Constructs a cell at coordinates (row ,column ). |
Method Summary |
boolean |
equals(java.lang.Object object)
Returns true if object represents the same cell as this cell. |
int |
getColumn()
Returns the column index of this table cell. |
int |
getRow()
Returns the row index of this table cell. |
int |
hashCode()
Returns a hash code for this cell. |
java.lang.String |
toString()
Returns a string representation of this cell (row column). |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
JeksCell
public JeksCell(int row,
int column)
- Constructs a cell at coordinates (
row
,column
).
- Parameters:
row
- column
-
getRow
public final int getRow()
- Returns the row index of this table cell.
- Returns:
- The row index.
getColumn
public final int getColumn()
- Returns the column index of this table cell.
- Returns:
- The column index.
equals
public boolean equals(java.lang.Object object)
- Returns
true
if object
represents the same cell as this cell.
- Overrides:
equals
in class java.lang.Object
- Parameters:
object
- an object.- Returns:
true
if this cell and object
are equal.
hashCode
public int hashCode()
- Returns a hash code for this cell.
- Overrides:
hashCode
in class java.lang.Object
- Returns:
- An integer using the column and row of the cell.
toString
public java.lang.String toString()
- Returns a string representation of this cell (row column).
- Overrides:
toString
in class java.lang.Object