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

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

public class SqlTableColumn
extends SimpleTableColumn

Version:
$Id: SqlTableColumn.java 243791 2004-02-19 17:38:13Z hlship $
Author:
mindbridge
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.tapestry.contrib.table.model.simple.SimpleTableColumn
SimpleTableColumn.DefaultTableComparator
 
Field Summary
 
Fields inherited from class org.apache.tapestry.contrib.table.model.simple.SimpleTableColumn
DEFAULT_COLUMN_RENDERER_SOURCE, DEFAULT_VALUE_RENDERER_SOURCE, FORM_COLUMN_RENDERER_SOURCE
 
Fields inherited from class org.apache.tapestry.contrib.table.model.common.AbstractTableColumn
COLUMN_RENDERER_BLOCK_SUFFIX, VALUE_RENDERER_BLOCK_SUFFIX
 
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, loadSettings, setColumnComparator, 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
Parameters:
objRow - the row object
Returns:
Object the column value
See Also:
SimpleTableColumn.getColumnValue(Object)