de.jaret.util.ui.table.model.simple
Class SimpleRow

java.lang.Object
  extended by de.jaret.util.ui.table.model.simple.SimpleRow
All Implemented Interfaces:
IRow

public class SimpleRow
extends java.lang.Object
implements IRow

Simple row implementation based on it's index, used as a marker in the SimpleJaretTableModel.

Version:
$Id: SimpleRow.java 180 2007-01-07 18:44:01Z olk $
Author:
kliem

Constructor Summary
SimpleRow(int idx)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object obj)
           Equals based on the index of the row.
 java.lang.String getId()
          Used for storing the row height (identification purposes).
 int getIndex()
          Retrieve the index of the row.
 int hashCode()
           hashcode based on the index of the column.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleRow

public SimpleRow(int idx)
Constructor.

Parameters:
idx - index
Method Detail

getId

public java.lang.String getId()
Used for storing the row height (identification purposes).

Specified by:
getId in interface IRow
Returns:
a unique id

getIndex

public int getIndex()
Retrieve the index of the row.

Returns:
index of the row

equals

public boolean equals(java.lang.Object obj)
Equals based on the index of the row.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
hashcode based on the index of the column.

Overrides:
hashCode in class java.lang.Object


Copyright © 2012. All Rights Reserved.