com.github.dandelion.datatables.core.configuration
Class ColumnConfig

java.lang.Object
  extended by com.github.dandelion.datatables.core.configuration.ColumnConfig

public final class ColumnConfig
extends Object

All possible configurations (or ConfigToken) that can be applied on a ColumnConfiguration object.

Only header columns have a ColumnConfiguration instance attached.

Since:
0.10.0
Author:
Thibault Duchateau

Field Summary
static ConfigToken<StringBuilder> CSSCELLCLASS
           
static ConfigToken<StringBuilder> CSSCELLSTYLE
           
static ConfigToken<StringBuilder> CSSCLASS
           
static ConfigToken<StringBuilder> CSSSTYLE
           
static ConfigToken<String> DEFAULTVALUE
           
static ConfigToken<Boolean> FILTERABLE
           
static ConfigToken<String> FILTERCSSCLASS
           
static ConfigToken<String> FILTERDATEFORMAT
           
static ConfigToken<Integer> FILTERMINLENGTH
           
static ConfigToken<String> FILTERPLACEHOLDER
           
static ConfigToken<FilterType> FILTERTYPE
           
static ConfigToken<String> FILTERVALUES
           
static ConfigToken<String> ID
           
static ConfigToken<String> NAME
           
static ConfigToken<String> PROPERTY
           
static ConfigToken<String> RENDERFUNCTION
           
static ConfigToken<Boolean> SEARCHABLE
           
static ConfigToken<String> SELECTOR
           
static ConfigToken<Boolean> SORTABLE
           
static ConfigToken<List<Direction>> SORTDIRECTION
           
static ConfigToken<String> SORTINITDIRECTION
           
static ConfigToken<Integer> SORTINITORDER
           
static ConfigToken<String> SORTTYPE
           
static ConfigToken<String> TITLE
           
static ConfigToken<String> TITLEKEY
           
static ConfigToken<Boolean> VISIBLE
           
 
Method Summary
static void applyConfiguration(Map<ConfigToken<?>,Object> stagingConf, Map<ConfigToken<?>,Extension> stagingExtensions, HtmlColumn column)
           Overloads the configurations stored in the ColumnConfiguration instance with the one passed as parameter.
static void processConfiguration(HtmlColumn column, HtmlTable table)
           At this point, the configuration stored inside the ColumnConfiguration contains only Strings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static ConfigToken<String> ID

TITLE

public static ConfigToken<String> TITLE

TITLEKEY

public static ConfigToken<String> TITLEKEY

NAME

public static ConfigToken<String> NAME

PROPERTY

public static ConfigToken<String> PROPERTY

DEFAULTVALUE

public static ConfigToken<String> DEFAULTVALUE

CSSSTYLE

public static ConfigToken<StringBuilder> CSSSTYLE

CSSCELLSTYLE

public static ConfigToken<StringBuilder> CSSCELLSTYLE

CSSCLASS

public static ConfigToken<StringBuilder> CSSCLASS

CSSCELLCLASS

public static ConfigToken<StringBuilder> CSSCELLCLASS

SORTABLE

public static ConfigToken<Boolean> SORTABLE

SORTDIRECTION

public static ConfigToken<List<Direction>> SORTDIRECTION

SORTINITDIRECTION

public static ConfigToken<String> SORTINITDIRECTION

SORTINITORDER

public static ConfigToken<Integer> SORTINITORDER

SORTTYPE

public static ConfigToken<String> SORTTYPE

FILTERABLE

public static ConfigToken<Boolean> FILTERABLE

SEARCHABLE

public static ConfigToken<Boolean> SEARCHABLE

VISIBLE

public static ConfigToken<Boolean> VISIBLE

FILTERTYPE

public static ConfigToken<FilterType> FILTERTYPE

FILTERDATEFORMAT

public static ConfigToken<String> FILTERDATEFORMAT

FILTERVALUES

public static ConfigToken<String> FILTERVALUES

FILTERCSSCLASS

public static ConfigToken<String> FILTERCSSCLASS

FILTERPLACEHOLDER

public static ConfigToken<String> FILTERPLACEHOLDER

FILTERMINLENGTH

public static ConfigToken<Integer> FILTERMINLENGTH

RENDERFUNCTION

public static ConfigToken<String> RENDERFUNCTION

SELECTOR

public static ConfigToken<String> SELECTOR
Method Detail

applyConfiguration

public static void applyConfiguration(Map<ConfigToken<?>,Object> stagingConf,
                                      Map<ConfigToken<?>,Extension> stagingExtensions,
                                      HtmlColumn column)

Overloads the configurations stored in the ColumnConfiguration instance with the one passed as parameter.

Only configuration token with not blank values will be merged into the ColumnConfiguration instance.

Parameters:
stagingConf - The staging configurations filled either with the JSP taglib or with the Thymeleaf dialect.
stagingExtensions - The staging extensions filled either with the JSP taglib or with the Thymeleaf dialect.
column - The column which holds the ColumnConfiguration to overload.

processConfiguration

public static void processConfiguration(HtmlColumn column,
                                        HtmlTable table)

At this point, the configuration stored inside the ColumnConfiguration contains only Strings. All these strings will be processed in this method, depending on the ConfigToken they are bound to.

Once processed, all strings will be replaced by the typed value.

Parameters:
column - The column which contains the configurations to process.
table - The table may be used by processor to register extensions.


Copyright © 2013–2014 Dandelion Project. All rights reserved.