org.apache.tapestry.contrib.table.components
Class TableColumnModelSourceImpl

java.lang.Object
  extended by org.apache.tapestry.contrib.table.components.TableColumnModelSourceImpl
All Implemented Interfaces:
TableColumnModelSource

public class TableColumnModelSourceImpl
extends Object
implements TableColumnModelSource

A placeholder for a static methods related to the Table component.

Since:
3.0
Author:
Mindbridge

Constructor Summary
TableColumnModelSourceImpl()
           
 
Method Summary
 ITableColumnModel generateTableColumnModel(IAdvancedTableColumnSource objColumnSource, String strDesc, IComponent objComponent, IComponent objColumnSettingsContainer)
          Generate a table column model out of the description string provided.
 void setExpressionEvaluator(ExpressionEvaluator expressionEvaluator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableColumnModelSourceImpl

public TableColumnModelSourceImpl()
Method Detail

setExpressionEvaluator

public void setExpressionEvaluator(ExpressionEvaluator expressionEvaluator)
Since:
4.0

generateTableColumnModel

public ITableColumnModel generateTableColumnModel(IAdvancedTableColumnSource objColumnSource,
                                                  String strDesc,
                                                  IComponent objComponent,
                                                  IComponent objColumnSettingsContainer)
Generate a table column model out of the description string provided. Entries in the description string are separated by commas. Each column entry is of the format name, name:expression, or name:displayName:expression. An entry prefixed with ! represents a non-sortable column. If the whole description string is prefixed with *, it represents columns to be included in a Form.

Specified by:
generateTableColumnModel in interface TableColumnModelSource
Parameters:
strDesc - the description of the column model to be generated
objComponent - the component ordering the generation
objColumnSettingsContainer - the component containing the column settings
Returns:
a table column model based on the provided parameters


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.