wicket.model |
wicket.markup.model package
Core model support for Wicket components.
|
Java Source File Name | Type | Comment |
AbstractDetachableModel.java | Class | This provide a base class to work with detachable
wicket.model.IModel s.
It encapsulates the logic for attaching and detaching models. |
AbstractModel.java | Class | AbstractModel is an adapter base class for implementing models which have no
detach logic. |
AbstractPropertyModel.java | Class | Serves as a base class for different kinds of property models. |
AbstractReadOnlyDetachableModel.java | Class | Adds a default implementation of onSetObject() which throws an
UnsupportedOperationException to indicate that the subclass is a read-only
model. |
AbstractReadOnlyModel.java | Class | AbstractReadOnlyModel is an adapter base class for implementing models which have no
detach logic and are read-only. |
BoundCompoundPropertyModel.java | Class | A compound property model that supports type conversions and property
expression bindings. |
CompoundPropertyModel.java | Class | A simple compound model which uses the component's name as the property
expression to retrieve properties on the nested model object. |
ICompoundModel.java | Interface | This is a marker interface for models that can be used as a shared/compound
model for multiply components. |
IDetachable.java | Interface | Interface to logic for detaching transient information from a detachable
model. |
IModel.java | Interface | A IModel wraps the actual model Object used by a Component. |
IModelComparator.java | Interface | Implementations of this interface compare model object.
The component is given so that a developer can choose what the previous object is
The default implementation for form components is just component.getModelObject();
But developers can choose to keep the last rendered value for that component and compare
this value with the newObject. |
LoadableDetachableModel.java | Class | Model that makes working with detachable models a breeze.
LoadableDetachableModel holds a temporary, transient model object, that is
set when
LoadableDetachableModel.getObject(Component) is called by calling abstract method
'load', and that will be reset/ set to null on
LoadableDetachableModel.detach() .
A usage example:
LoadableDetachableModel venueListModel = new LoadableDetachableModel()
{
protected Object load()
{
return getVenueDao().findVenues();
}
};
Though you can override methods
LoadableDetachableModel.onAttach() and
LoadableDetachableModel.onDetach() for
additional attach/ detach behavior, the point of this class is to hide as
much of the attaching/ detaching as possible. |
Model.java | Class | Model is the basic implementation of an AbstractModel. |
ModelToStringTest.java | Class | Tests the toString() method on the models in the wicket.model package. |
PropertyModel.java | Class | A PropertyModel is used to dynamically access a model using a "property
expression". |
ResourceModel.java | Class | A model that represents a localized resource string. |
StringResourceModel.java | Class | This model class encapsulates the full power of localization support within
the Wicket framework. |
StringResourceModelTest.java | Class | Test cases for the StringResourceModel class. |