org.displaytag.model
Class RowIterator

java.lang.Object
  extended byorg.displaytag.model.RowIterator

public class RowIterator
extends java.lang.Object

Iterator on table rows.

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

Constructor Summary
protected RowIterator(java.util.List rowList, java.util.List columnList, TableDecorator tableDecorator, int offset)
          Constructor for RowIterator.
 
Method Summary
 boolean hasNext()
          Check if a next row exist.
 Row next()
          Returns the next row object.
 void setId(java.lang.String tableId)
          Setter for the tablemodel id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RowIterator

protected RowIterator(java.util.List rowList,
                      java.util.List columnList,
                      TableDecorator tableDecorator,
                      int offset)
Constructor for RowIterator.

Parameters:
rowList - List containing Row objects
columnList - List containing CellHeader objects
tableDecorator - TableDecorator
offset - Starting offset for items n the current page
Method Detail

setId

public void setId(java.lang.String tableId)
Setter for the tablemodel id.

Parameters:
tableId - same id of table tag, needed for logging

hasNext

public boolean hasNext()
Check if a next row exist.

Returns:
boolean true if a new row

next

public Row next()
Returns the next row object.

Returns:
Row


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