org.displaytag.model
Class Row

java.lang.Object
  extended by org.displaytag.model.Row

public class Row
extends java.lang.Object

Holds informations for a table row.

Version:
$Revision: 1081 $ ($Author: fgiust $)
Author:
Fabrizio Giustina

Constructor Summary
Row(java.lang.Object object, int number)
          Constructor for Row.
 
Method Summary
 void addCell(Cell cell)
          Adds a cell to the row.
 java.util.List getCellList()
          getter for the list of Cell object.
 java.lang.String getCloseTag()
          writes the </tr> tag.
 ColumnIterator getColumnIterator(java.util.List columns)
          Iterates on columns.
 java.lang.Object getObject()
          getter for the object holding values for the current row.
 java.lang.String getOpenTag()
          Writes the open <tr> tag.
protected  TableModel getParentTable()
          Getter for the table model the row belongs to.
 int getRowNumber()
          Getter for the row number.
protected  void setParentTable(TableModel table)
          Setter for the table model the row belongs to.
 void setRowNumber(int number)
          Setter for the row number.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Row

public Row(java.lang.Object object,
           int number)
Constructor for Row.

Parameters:
object - Object
number - int
Method Detail

setRowNumber

public void setRowNumber(int number)
Setter for the row number.

Parameters:
number - row number

getRowNumber

public int getRowNumber()
Getter for the row number.

Returns:
row number

addCell

public void addCell(Cell cell)
Adds a cell to the row.

Parameters:
cell - Cell

getCellList

public java.util.List getCellList()
getter for the list of Cell object.

Returns:
List containing Cell objects

getObject

public java.lang.Object getObject()
getter for the object holding values for the current row.

Returns:
Object object holding values for the current row

getColumnIterator

public ColumnIterator getColumnIterator(java.util.List columns)
Iterates on columns.

Parameters:
columns - List
Returns:
ColumnIterator

setParentTable

protected void setParentTable(TableModel table)
Setter for the table model the row belongs to.

Parameters:
table - TableModel

getParentTable

protected TableModel getParentTable()
Getter for the table model the row belongs to.

Returns:
TableModel

getOpenTag

public java.lang.String getOpenTag()
Writes the open <tr> tag.

Returns:
String <tr> tag with the appropriate css class attribute

getCloseTag

public java.lang.String getCloseTag()
writes the </tr> tag.

Returns:
String </tr> tag

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2002-2010 the Displaytag team. All Rights Reserved.