Class TableColumn
java.lang.Object
net.sf.basedb.clients.web.taglib.table.TableColumn
public class TableColumn extends Object
Column properties class used to define table columns.
Example use in a jsp page:
Example use in a jsp page:
<%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()%>" /> <%}%>
- Version:
- 2.0
- Author:
- gregory, nicklas
- Last modified
- $Date: 2015-04-21 09:59:42 +0200 (ti, 21 apr 2015) $
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor 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)
-
Method Summary
Modifier and Type Method 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)
-
Field Details
-
id
-
property
-
jepExpression
-
datatype
-
title
-
description
-
sortable
private final boolean sortable -
filterable
private final boolean filterable -
exportable
private final boolean exportable -
show
-
averageMethod
-
formatter
-
-
Constructor Details
-
TableColumn
-
-
Method Details
-
getDatatype
-
getExportable
public boolean getExportable() -
getFilterable
public boolean getFilterable() -
getId
-
getProperty
-
getJepExpression
-
getShow
-
getSortable
public boolean getSortable() -
getTitle
-
getDescription
-
isAveragable
public boolean isAveragable() -
getAverageMethod
- Returns:
- This table column's
Formula.AverageMethod
enum. - Since:
- 2.4
-
getFormatter
- Returns:
- This column's
Formatter
object - Since:
- 2.0.2
-
setFormatter
- Parameters:
formatter
- Formatter to be set.- Since:
- 2.0.2
-