org.apache.tapestry.contrib.table.model.sql
Class SqlTableColumn

java.lang.Object
  |
  +--org.apache.tapestry.contrib.table.model.common.AbstractTableColumn
        |
        +--org.apache.tapestry.contrib.table.model.simple.SimpleTableColumn
              |
              +--org.apache.tapestry.contrib.table.model.sql.SqlTableColumn
All Implemented Interfaces:
ITableColumn, Serializable

public class SqlTableColumn
extends SimpleTableColumn

Version:
$Id: SqlTableColumn.java,v 1.1 2003/03/05 23:03:20 hlship Exp $
Author:
mindbridge
See Also:
Serialized Form

Inner classes inherited from class org.apache.tapestry.contrib.table.model.simple.SimpleTableColumn
SimpleTableColumn.DefaultTableComparator
 
Constructor Summary
SqlTableColumn(String strSqlField, String strDisplayName)
          Creates an SqlTableColumn
SqlTableColumn(String strSqlField, String strDisplayName, boolean bSortable)
          Creates an SqlTableColumn
 
Method Summary
 Object getColumnValue(Object objRow)
          Extracts the value of the column from the row object
 
Methods inherited from class org.apache.tapestry.contrib.table.model.simple.SimpleTableColumn
getDisplayName, getEvaluator, setDisplayName, setEvaluator
 
Methods inherited from class org.apache.tapestry.contrib.table.model.common.AbstractTableColumn
getColumnName, getColumnRenderer, getColumnRendererSource, getComparator, getSortable, getValueRenderer, getValueRendererSource, setColumnName, setColumnRendererSource, setComparator, setSortable, setValueRendererSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlTableColumn

public SqlTableColumn(String strSqlField,
                      String strDisplayName)
Creates an SqlTableColumn
Parameters:
strSqlField - the identifying name of the column and the SQL field it refers to
strDisplayName - the display name of the column

SqlTableColumn

public SqlTableColumn(String strSqlField,
                      String strDisplayName,
                      boolean bSortable)
Creates an SqlTableColumn
Parameters:
strSqlField - the identifying name of the column and the SQL field it refers to
strDisplayName - the display name of the column
bSortable - whether the column is sortable
Method Detail

getColumnValue

public Object getColumnValue(Object objRow)
Description copied from class: SimpleTableColumn
Extracts the value of the column from the row object
Overrides:
getColumnValue in class SimpleTableColumn
See Also:
SimpleTableColumn.getColumnValue(Object)