org.apache.tapestry.contrib.table.model.ognl
Class ExpressionTableColumnModel

java.lang.Object
  extended by org.apache.tapestry.contrib.table.model.simple.SimpleTableColumnModel
      extended by org.apache.tapestry.contrib.table.model.ognl.ExpressionTableColumnModel
All Implemented Interfaces:
Serializable, ITableColumnModel

public class ExpressionTableColumnModel
extends SimpleTableColumnModel

Author:
mindbridge
See Also:
Serialized Form

Constructor Summary
ExpressionTableColumnModel(Object[] arrColumnInfo)
          Constructs a table column model containting OGNL expression columns.
ExpressionTableColumnModel(String[] arrColumnInfo, boolean bSorted)
          Constructs a table column model containting OGNL expression columns.
 
Method Summary
protected static ITableColumn[] convertToColumns(Object[] arrDetailedInfo)
          Method convertToColumns.
protected static Object[] convertToDetailedArray(String[] arrColumnInfo, boolean bSorted)
          Method convertToDetailedArray.
 
Methods inherited from class org.apache.tapestry.contrib.table.model.simple.SimpleTableColumnModel
getColumn, getColumn, getColumnCount, getColumns
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpressionTableColumnModel

public ExpressionTableColumnModel(String[] arrColumnInfo,
                                  boolean bSorted)
Constructs a table column model containting OGNL expression columns.
The data for the columns is provided in the form of a string array, where the info of each column is stored in two consecutive fields in the array, hence its size must be even. The expected info is the following:

Parameters:
arrColumnInfo - The information to construct the columns from
bSorted - Whether all columns are sorted or not

ExpressionTableColumnModel

public ExpressionTableColumnModel(Object[] arrColumnInfo)
Constructs a table column model containting OGNL expression columns.
The data for the columns is provided in the form of a string array, where the info of each column is stored in four consecutive fields in the array, hence its size must be divisible by 4.
The expected info is the following:

Parameters:
arrColumnInfo -
Method Detail

convertToDetailedArray

protected static Object[] convertToDetailedArray(String[] arrColumnInfo,
                                                 boolean bSorted)
Method convertToDetailedArray.

Parameters:
arrColumnInfo -
bSorted -
Returns:
Object[]

convertToColumns

protected static ITableColumn[] convertToColumns(Object[] arrDetailedInfo)
Method convertToColumns.

Parameters:
arrDetailedInfo -
Returns:
ITableColumn[]