org.apache.tapestry.contrib.table.model.simple
Class SimpleTableColumnModel
java.lang.Object
|
+--org.apache.tapestry.contrib.table.model.simple.SimpleTableColumnModel
- All Implemented Interfaces:
- ITableColumnModel, Serializable
- Direct Known Subclasses:
- ExpressionTableColumnModel, SqlTableColumnModel
- public class SimpleTableColumnModel
- extends Object
- implements ITableColumnModel, Serializable
A minimal implementation of the
ITableColumnModel
interface
that stores columns as an array.
- Version:
- $Id: SimpleTableColumnModel.java,v 1.1 2003/03/05 23:03:04 hlship Exp $
- Author:
- mindbridge
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleTableColumnModel
public SimpleTableColumnModel(ITableColumn[] arrColumns)
SimpleTableColumnModel
public SimpleTableColumnModel(List arrColumns)
getColumnCount
public int getColumnCount()
- Description copied from interface:
ITableColumnModel
- Method getColumnCount.
- Specified by:
getColumnCount
in interface ITableColumnModel
- Following copied from interface:
org.apache.tapestry.contrib.table.model.ITableColumnModel
- Returns:
- int the number of columns in the model
getColumn
public ITableColumn getColumn(int nColumn)
getColumn
public ITableColumn getColumn(String strColumn)
- Description copied from interface:
ITableColumnModel
- Method getColumn.
- Specified by:
getColumn
in interface ITableColumnModel
- Following copied from interface:
org.apache.tapestry.contrib.table.model.ITableColumnModel
- Parameters:
strName
- the name of the requested column- Returns:
- ITableColumn the column with the given name. null if no such column exists.
getColumns
public Iterator getColumns()
- Description copied from interface:
ITableColumnModel
- Method getColumns.
- Specified by:
getColumns
in interface ITableColumnModel
- Following copied from interface:
org.apache.tapestry.contrib.table.model.ITableColumnModel
- Returns:
- Iterator an iterator of all columns in the model