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:
- ITableColumnModel, java.io.Serializable
- public class ExpressionTableColumnModel
- extends SimpleTableColumnModel
- Author:
- mindbridge
- See Also:
- Serialized Form
Constructor Summary |
ExpressionTableColumnModel(java.lang.Object[] arrColumnInfo,
org.apache.tapestry.services.ExpressionEvaluator expressionEvaluator)
Constructs a table column model containting OGNL expression columns. |
ExpressionTableColumnModel(java.lang.String[] arrColumnInfo,
boolean bSorted,
org.apache.tapestry.services.ExpressionEvaluator expressionEvaluator)
Constructs a table column model containting OGNL expression columns. |
Method Summary |
protected static ITableColumn[] |
convertToColumns(java.lang.Object[] arrDetailedInfo,
org.apache.tapestry.services.ExpressionEvaluator expressionEvaluator)
Method convertToColumns. |
protected static java.lang.Object[] |
convertToDetailedArray(java.lang.String[] arrColumnInfo,
boolean bSorted)
Method convertToDetailedArray. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExpressionTableColumnModel
public ExpressionTableColumnModel(java.lang.String[] arrColumnInfo,
boolean bSorted,
org.apache.tapestry.services.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(java.lang.Object[] arrColumnInfo,
org.apache.tapestry.services.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 java.lang.Object[] convertToDetailedArray(java.lang.String[] arrColumnInfo,
boolean bSorted)
- Method convertToDetailedArray.
- Parameters:
arrColumnInfo
- bSorted
-
- Returns:
- Object[]
convertToColumns
protected static ITableColumn[] convertToColumns(java.lang.Object[] arrDetailedInfo,
org.apache.tapestry.services.ExpressionEvaluator expressionEvaluator)
- Method convertToColumns.
- Parameters:
arrDetailedInfo
-
- Returns:
- ITableColumn[]