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:
<%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 Details

    • id

      private final String id
    • property

      private final String property
    • jepExpression

      private final String jepExpression
    • datatype

      private final Type datatype
    • title

      private final String title
    • description

      private final String description
    • sortable

      private final boolean sortable
    • filterable

      private final boolean filterable
    • exportable

      private final boolean exportable
    • show

      private final String show
    • averageMethod

      private final Formula.AverageMethod averageMethod
    • formatter

      private Formatter<?> formatter
  • Constructor Details

  • Method Details

    • getDatatype

      public Type getDatatype()
    • getExportable

      public boolean getExportable()
    • getFilterable

      public boolean getFilterable()
    • getId

      public String getId()
    • getProperty

      public String getProperty()
    • getJepExpression

      public String getJepExpression()
    • getShow

      public String getShow()
    • getSortable

      public boolean getSortable()
    • getTitle

      public String getTitle()
    • getDescription

      public String getDescription()
    • isAveragable

      public boolean isAveragable()
    • getAverageMethod

      public Formula.AverageMethod getAverageMethod()
      Returns:
      This table column's Formula.AverageMethod enum.
      Since:
      2.4
    • getFormatter

      public Formatter<?> getFormatter()
      Returns:
      This column's Formatter object
      Since:
      2.0.2
    • setFormatter

      public void setFormatter​(Formatter<?> formatter)
      Parameters:
      formatter - Formatter to be set.
      Since:
      2.0.2