net.sf.doolin.tabular.support
Class AbstractTabularModel<T>
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractTabularModel
public AbstractTabularModel()
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.