1 15 package org.apache.tapestry.contrib.table.model.ognl; 16 17 import org.apache.tapestry.contrib.table.model.simple.SimpleTableColumn; 18 import org.apache.tapestry.services.ExpressionEvaluator; 19 20 23 public class ExpressionTableColumn extends SimpleTableColumn 24 { 25 private static final long serialVersionUID = 1L; 26 27 28 29 public ExpressionTableColumn(String strColumnName, String strExpression, 30 ExpressionEvaluator expressionEvaluator) 31 { 32 this(strColumnName, strExpression, false, expressionEvaluator); 33 } 34 35 public ExpressionTableColumn(String strColumnName, String strExpression, boolean bSortable, 36 ExpressionEvaluator expressionEvaluator) 37 { 38 this(strColumnName, strColumnName, strExpression, bSortable, expressionEvaluator); 39 } 40 41 public ExpressionTableColumn(String strColumnName, String strDisplayName, String strExpression, 42 ExpressionEvaluator expressionEvaluator) 43 { 44 this(strColumnName, strDisplayName, strExpression, false, expressionEvaluator); 45 } 46 47 public ExpressionTableColumn(String strColumnName, String strDisplayName, String strExpression, 48 boolean bSortable, ExpressionEvaluator expressionEvaluator 49 50 ) 51 { 52 super(strColumnName, strDisplayName, bSortable); 53 54 setEvaluator(new OgnlTableColumnEvaluator(strExpression, expressionEvaluator)); 55 } 56 } | Popular Tags |