The CellModel is the base class for JavaBean objects that are used to configure the rendering of a CellDecorator.
A CellModel exposes primitive services and state that can be used by
CellDecorator s during rendering.
Method Summary
public void
addFormatter(Formatter formatter) Add a
Formatter which can be used to format an Object for rendering.
public void addFormatter(Formatter formatter)(Code)
Add a
Formatter which can be used to format an Object for rendering. Many
Formatter instances can be registered and will be executed in the order in
which they were added. This method is provided as a service to CellModel subclasses;
the use of formatters can vary based on the implementation of a
CellDecorator .
Parameters: formatter - the Formatter to add
Format an
Object value. This method is used to apply a chain of formatters to some
value. It will return null if the provided value is null; in this case, it
is up to the caller to provide an appropriate default value.
Parameters: value - the Object to format If the value is null, return null. If there are no registeredFormatter instances, return Object.toString for the value parameter.Otherwisee, return the formatted value.
Get the
DataGridTagModel which is associated with the data grid tag that contains this
cell.
the DataGridTagModel for this cell. Inside a valid data grid, this method shouldnot return null.