Package org.apache.wicket.model
Interface IWrapModel<T>
-
- Type Parameters:
T
- The model object type
- All Superinterfaces:
IClusterable
,IDetachable
,IModel<T>
,Serializable
- All Known Implementing Classes:
AbstractWrapModel
,NodeModel
public interface IWrapModel<T> extends IModel<T>
A marker interface that represents a model that serves as a wrapper for another. Typically, these models are produced by the following methods:IComponentAssignedModel.wrapOnAssignment(org.apache.wicket.Component)
andIComponentInheritedModel.wrapOnInheritance(org.apache.wicket.Component)
The wrapped model will be called detach on when the component is detached when the wrap model is created by anIComponentAssignedModel
- Author:
- jcompagner, Igor Vaynberg (ivaynberg)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
detach()
Calls getWrappedModel().detach();default T
getObject()
Gets the model object.IModel<?>
getWrappedModel()
Gets the wrapped model.default void
setObject(T object)
Sets the model object.
-
-
-
Method Detail
-
getWrappedModel
IModel<?> getWrappedModel()
Gets the wrapped model.- Returns:
- The wrapped model
-
detach
default void detach()
Calls getWrappedModel().detach();- Specified by:
detach
in interfaceIDetachable
- Specified by:
detach
in interfaceIModel<T>
- See Also:
IDetachable.detach()
-
setObject
default void setObject(T object)
Description copied from interface:IModel
Sets the model object.
-
-