Abstract class used by the data grid to create model objects used for state
management and rendering. This abstraction exists in order to allow the data grid's
implementation to be configurable. Various data grid implementation classes are exposed
here including sorting, filtering, and paging. In addition, classes such as the
PagerRenderer and
StyleModel are created by subclasses in order to provide
a data grid specific implementation of pager UI or style support.
By default, DataGridConfig implementations are not thread safe, but custom implementations are
free to store instance state as long as the DataGridConfig object lifetimes are managed
in user code.
Create a
DataGridState instance that will be used to store the state for a data grid. This
method will be called only when a DataGridState object needs to be manufactured by a data grid tag.
Create the default
DataGridResourceProvider . A resource provider is an implementation of
the
DataGridResourceProvider which is used during data grid rendering to obtain strings
for messages, paths, etc. The default resource provider simply exposes the default data grid
messages stored in the properties file located at:
Create a DataGridConfig-specific implementation of a
DataGridResourceProvider . The DataGridConfig
instance should use the provided resource bundle path to create a
DataGridResourceProvider which
will expose those messages into the data grid for rendering.
Parameters: resourceBundle - the resource bundle to use for grid messages a DataGridResourceProvider
Create a
StyleModel used by a data grid to render styles onto various HTML markup elements
generated by a data grid.
Parameters: name - the name of a style type to support. This name can vary by DataGridConfig implementationsubclasses may use this value to configure the type of StyleModel returned to the caller. Parameters: classPrefix - an optional prefix to use when generating style class names the StyleModel