org.apache.tapestry.contrib.table.model.ognl
Class ExpressionTableColumnModel
java.lang.Object
org.apache.tapestry.contrib.table.model.simple.SimpleTableColumnModel
org.apache.tapestry.contrib.table.model.ognl.ExpressionTableColumnModel
- All Implemented Interfaces:
- Serializable, ITableColumnModel
public class ExpressionTableColumnModel
- extends SimpleTableColumnModel
- Author:
- mindbridge
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExpressionTableColumnModel
public ExpressionTableColumnModel(String[] arrColumnInfo,
boolean bSorted,
ExpressionEvaluator expressionEvaluator)
- 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:
- Column Name
- OGNL expression
- Parameters:
arrColumnInfo
- The information to construct the columns frombSorted
- Whether all columns are sorted or not
ExpressionTableColumnModel
public ExpressionTableColumnModel(Object[] arrColumnInfo,
ExpressionEvaluator expressionEvaluator)
- 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:
- Column Name
- Display Name
- OGNL expression
- Sorting of the column. This is either a Boolean, or a String
representation of a boolean.
- Parameters:
arrColumnInfo
-
convertToDetailedArray
protected static Object[] convertToDetailedArray(String[] arrColumnInfo,
boolean bSorted)
- Method convertToDetailedArray.
- Parameters:
arrColumnInfo
- bSorted
-
- Returns:
- Object[]
convertToColumns
protected static ITableColumn[] convertToColumns(Object[] arrDetailedInfo,
ExpressionEvaluator expressionEvaluator)
- Method convertToColumns.
- Parameters:
arrDetailedInfo
-
- Returns:
- ITableColumn[]
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.