net.sf.doolin.tabular.model
Interface TabularModel<T>

Type Parameters:
T - Type of object per row
All Known Implementing Classes:
AbstractTabularModel

public interface TabularModel<T>

Defines the structure of some tabular data.

Author:
Damien Coraboeuf

Method Summary
 TabularColumn<T> getColumn(int index)
          Gets the column at a specified index
 int getColumnCount()
          Returns the column count
 T next()
          Switches to the next item in the list or returns null if no object is available any longer.
 void reset()
          Resets to the start of rows
 

Method Detail

getColumn

TabularColumn<T> getColumn(int index)
Gets the column at a specified index

Parameters:
index - Column index
Returns:
Column at the index

getColumnCount

int getColumnCount()
Returns the column count

Returns:
Count

next

T next()
Switches to the next item in the list or returns null if no object is available any longer.

Returns:
Next object or null

reset

void reset()
Resets to the start of rows



Copyright © 2011. All Rights Reserved.