public final class ConfigUtils extends Object
Set of utilities to help dealing with DatatableOptions
.
Modifier and Type | Field and Description |
---|---|
static String |
DDL_DT_REQUESTATTR_TABLES |
protected static org.slf4j.Logger |
logger |
Modifier and Type | Method and Description |
---|---|
static void |
applyStagingOptions(Map<Option<?>,Object> stagingConf,
HtmlTable table)
Overloads the configurations stored in the
TableConfiguration
instance with the one passed as parameter. |
static void |
applyStagingOptionsAndExtensions(Map<Option<?>,Object> stagingConf,
Map<Option<?>,Extension> stagingExtensions,
HtmlColumn column)
Overloads the configurations stored in the
ColumnConfiguration
instance with the one passed as parameter. |
static void |
processOptions(HtmlColumn column,
HtmlTable table)
At this point, the configuration stored inside the
ColumnConfiguration contains only Strings. |
static void |
processOptions(HtmlTable table)
At this point, the configuration stored inside the
TableConfiguration contains only Strings. |
static void |
storeTableInRequest(javax.servlet.http.HttpServletRequest request,
HtmlTable table)
Stores the provided
HtmlTable in a particular request attribute so
that it can be used by the debugger. |
protected static org.slf4j.Logger logger
public static final String DDL_DT_REQUESTATTR_TABLES
public static void applyStagingOptions(Map<Option<?>,Object> stagingConf, HtmlTable table)
Overloads the configurations stored in the TableConfiguration
instance with the one passed as parameter.
stagingConf
- The staging configurations filled either with the JSP taglib or
with the Thymeleaf dialect.table
- The table which holds the TableConfiguration
to
overload.public static void processOptions(HtmlTable table)
At this point, the configuration stored inside the
TableConfiguration
contains only Strings. All these strings will
be processed in this method, depending on the DatatableOptions
they are bound to.
Once processed, all strings will be replaced by the typed value.
Only configuration token with not blank values will be merged into the
TableConfiguration
instance.
table
- The table which holds the configuration to process.public static void applyStagingOptionsAndExtensions(Map<Option<?>,Object> stagingConf, Map<Option<?>,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.
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.public static void processOptions(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 DatatableOptions
they are bound to.
Once processed, all strings will be replaced by the typed value.
column
- The column which contains the configurations to process.table
- The table may be used by processor to register extensions.public static void storeTableInRequest(javax.servlet.http.HttpServletRequest request, HtmlTable table)
Stores the provided HtmlTable
in a particular request attribute so
that it can be used by the debugger.
request
- The request in which the provided table is stored.table
- The table to store.Copyright © 2013–2015 Dandelion Project. All rights reserved.