Class TableColumn
java.lang.Object
net.sf.basedb.clients.web.taglib.table.TableColumn
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
FieldsModifier and TypeFieldDescriptionprivate final Formula.AverageMethod
private final Type
private final String
private final boolean
private final boolean
private Formatter<?>
private final String
private final String
private final String
private final String
private final boolean
private final String
-
Constructor Summary
ConstructorsConstructorDescriptionTableColumn
(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
-
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
-