net.sf.doolin.tabular.support
Class AbstractTabularModel<T>

java.lang.Object
  extended by net.sf.doolin.tabular.support.AbstractTabularModel<T>
Type Parameters:
T - Type of data for the rows.
All Implemented Interfaces:
TabularModel<T>

public abstract class AbstractTabularModel<T>
extends Object
implements TabularModel<T>

This class defines an abstract common implementation for a tabular model.

Author:
Damien Coraboeuf

Constructor Summary
AbstractTabularModel()
           
 
Method Summary
 void addColumn(TabularColumn<T> column)
          Adds a column to the model
 TabularColumn<T> getColumn(int index)
          Gets the column at a specified index
 int getColumnCount()
          Returns the column count
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.doolin.tabular.model.TabularModel
next, reset
 

Constructor Detail

AbstractTabularModel

public AbstractTabularModel()
Method Detail

addColumn

public void addColumn(TabularColumn<T> column)
Adds a column to the model

Parameters:
column - Column to add

getColumn

public TabularColumn<T> getColumn(int index)
Description copied from interface: TabularModel
Gets the column at a specified index

Specified by:
getColumn in interface TabularModel<T>
Parameters:
index - Column index
Returns:
Column at the index

getColumnCount

public int getColumnCount()
Description copied from interface: TabularModel
Returns the column count

Specified by:
getColumnCount in interface TabularModel<T>
Returns:
Count


Copyright © 2011. All Rights Reserved.