| |
|
| java.lang.Object org.apache.beehive.netui.databinding.datagrid.api.DataGridStateCodec org.apache.beehive.netui.databinding.datagrid.runtime.config.DefaultDataGridStateCodec
DefaultDataGridStateCodec | class DefaultDataGridStateCodec extends DataGridStateCodec (Code) | |
Derault implementation of the
DataGridStateCodec abstract base class. This class provides support
for obtaining a
DataGridState object which contains "current" state for a data grid and will
be used when rendering a data grid.
|
PARAM_KEY_PAGE_SIZE | final static String PARAM_KEY_PAGE_SIZE(Code) | | |
DefaultDataGridStateCodec | DefaultDataGridStateCodec(DataGridConfig config)(Code) | | Package protected constructor; this class should only be constructed via the
DefaultDataGridConfig class.
Parameters: config - the data grid config object used to manufacture a state object |
buildFilterParamMap | Map buildFilterParamMap(List filters)(Code) | | Build the filter parameter map given this list of
Filter instances. Note, the query parameters
returned here are not URL encoded. The map contains key / value pairs as (String, String[]).
Parameters: filters - the filters a map containing the filter query parameters |
buildPageParamMap | Map buildPageParamMap(Integer row, Integer pageSize)(Code) | | Build the URL parameter map given a current row and page size. Note, the query parameters returned
here are not URL encoded. The map contains key / value pairs as (String, String[]).
Parameters: row - the current row Parameters: pageSize - the current page size a map containing the pager query parameters |
buildSortParamMap | Map buildSortParamMap(List sorts)(Code) | | Build the sort parameter map given this list of
Sort instances. Note, the query parameters returned
here are not URL encoded. The map contains key / value pairs as (String, String[]).
Parameters: sorts - the sorts a map containing the sort query parameters |
getExistingParams | Map getExistingParams()(Code) | | Returns the existing query parameters map. This is a clone that can be augmented by client code but the
existing parameters are not changed.
|
setDataGridState | public void setDataGridState(DataGridState state)(Code) | |
Set the
DataGridState object. This mechanism provides callers a way to explicitly set the
DataGridState . This useful when a grid's state needs to be provided from an outside source
and attached so it is obtainable from the data grid via the usual mechanism.
Parameters: state - the new data grid state |
|
|
|