org.apache.tapestry.contrib.table.model.simple
Class SimpleTableColumnModel

java.lang.Object
  extended by org.apache.tapestry.contrib.table.model.simple.SimpleTableColumnModel
All Implemented Interfaces:
Serializable, ITableColumnModel
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 243791 2004-02-19 17:38:13Z hlship $
Author:
mindbridge
See Also:
Serialized Form

Constructor Summary
SimpleTableColumnModel(ITableColumn[] arrColumns)
           
SimpleTableColumnModel(List arrColumns)
           
 
Method Summary
 ITableColumn getColumn(int nColumn)
           
 ITableColumn getColumn(String strColumn)
          Method getColumn.
 int getColumnCount()
          Method getColumnCount.
 Iterator getColumns()
          Method getColumns.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTableColumnModel

public SimpleTableColumnModel(ITableColumn[] arrColumns)

SimpleTableColumnModel

public SimpleTableColumnModel(List arrColumns)
Method Detail

getColumnCount

public int getColumnCount()
Description copied from interface: ITableColumnModel
Method getColumnCount.

Specified by:
getColumnCount in interface 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
Parameters:
strColumn - 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
Returns:
Iterator an iterator of all columns in the model