public class TableColumn extends Object
<%List<TableColumn> cols = new LinkedList<TableColumn>(); cols.add( new TableColumn("position", "POSITION", "int", "Position") ); cols.add( new TableColumn("ch1", "%1", "float", "Ch 1") ); cols.add( new TableColumn("ch2", "%2", "float", "Ch 2") ); cols.add( new TableColumn("externalId", "@externalId", "string", "External Id") ); for(TableColumn c : cols) {%> <tbl:columndef id="<%=c.getId()%>" property="<%=c.getProperty()%>" datatype="<%=c.getDatatype()%>" title="<%=c.getTitle()%>" sortable="<%=c.getSortable()%>" filterable="<%=c.getFilterable()%>" exportable="<%=c.getExportable()%>" show="<%=c.getShow()%>" formatter="<%=c.getFormatter()%>" /> <%}%>
Modifier and Type | Field and Description |
---|---|
private Formula.AverageMethod |
averageMethod |
private Type |
datatype |
private String |
description |
private boolean |
exportable |
private boolean |
filterable |
private Formatter<?> |
formatter |
private String |
id |
private String |
jepExpression |
private String |
property |
private String |
show |
private boolean |
sortable |
private String |
title |
Constructor and Description |
---|
TableColumn(String id,
String property,
String jepExpression,
Type datatype,
String title,
String description,
String show,
boolean sortable,
boolean filterable,
boolean exportable,
Formula.AverageMethod averageMethod,
Formatter<?> formatter) |
Modifier and Type | Method and Description |
---|---|
Formula.AverageMethod |
getAverageMethod() |
Type |
getDatatype() |
String |
getDescription() |
boolean |
getExportable() |
boolean |
getFilterable() |
Formatter<?> |
getFormatter() |
String |
getId() |
String |
getJepExpression() |
String |
getProperty() |
String |
getShow() |
boolean |
getSortable() |
String |
getTitle() |
boolean |
isAveragable() |
void |
setFormatter(Formatter<?> formatter) |
private final String id
private final String property
private final String jepExpression
private final Type datatype
private final String title
private final String description
private final boolean sortable
private final boolean filterable
private final boolean exportable
private final String show
private final Formula.AverageMethod averageMethod
private Formatter<?> formatter
public Type getDatatype()
public boolean getExportable()
public boolean getFilterable()
public String getId()
public String getProperty()
public String getJepExpression()
public String getShow()
public boolean getSortable()
public String getTitle()
public String getDescription()
public boolean isAveragable()
public Formula.AverageMethod getAverageMethod()
Formula.AverageMethod
enum.public Formatter<?> getFormatter()
Formatter
objectpublic void setFormatter(Formatter<?> formatter)
formatter
- Formatter to be set.