| java.lang.Object org.jaffa.presentation.portlet.session.WidgetCache
WidgetCache | public class WidgetCache (Code) | | An instance of this class is used by components to cache the various widget models, across all the FormBeans.
|
Method Summary | |
public void | addModel(String fieldName, WidgetModel model) Adds a widget model to the cache. | public void | clear() Removes all widget models from the cache. | public WidgetModel | getModel(String fieldName) Returns a widget model for the input fieldName from the cache.
Parameters: fieldName - the field for which the model is to be retrieved. | public WidgetModel | removeModel(String fieldName) Removes the widget model for the input fieldName from the cache.
Parameters: fieldName - the field for which the model is to be removed. |
addModel | public void addModel(String fieldName, WidgetModel model)(Code) | | Adds a widget model to the cache.
Parameters: fieldName - the field for which the model is to be cached. Parameters: model - the model to be cached. |
clear | public void clear()(Code) | | Removes all widget models from the cache.
|
getModel | public WidgetModel getModel(String fieldName)(Code) | | Returns a widget model for the input fieldName from the cache.
Parameters: fieldName - the field for which the model is to be retrieved. a widget model for the input fieldName from the cache. |
removeModel | public WidgetModel removeModel(String fieldName)(Code) | | Removes the widget model for the input fieldName from the cache.
Parameters: fieldName - the field for which the model is to be removed. previous widget model associated with specified fieldName, or null if there was no widget model for fieldName. |
|
|