Package org.apache.wicket.model
Class AbstractWrapModel<T>
- java.lang.Object
-
- org.apache.wicket.model.AbstractWrapModel<T>
-
- Type Parameters:
T- The Model object type
- All Implemented Interfaces:
Serializable,IDetachable,IModel<T>,IWrapModel<T>,org.apache.wicket.util.io.IClusterable
public abstract class AbstractWrapModel<T> extends Object implements IWrapModel<T>
Simple base class for IWrapModel objects seeIComponentAssignedModelorIComponentInheritedModelso that you don't have to have empty methods like detach or setObject() when not used in the wrapper. The detach method calls the wrapped models detach.- Author:
- jcompagner
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractWrapModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddetach()Calls getWrappedModel().detach();TgetObject()Gets the model object.voidsetObject(T object)Sets the model object.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.wicket.model.IModel
combineWith, filter, flatMap, isPresent, map, orElse, orElseGet
-
Methods inherited from interface org.apache.wicket.model.IWrapModel
getWrappedModel
-
-
-
-
Method Detail
-
setObject
public void setObject(T object)
Description copied from interface:IModelSets the model object.
-
detach
public void detach()
Calls getWrappedModel().detach();- Specified by:
detachin interfaceIDetachable- Specified by:
detachin interfaceIModel<T>- See Also:
IDetachable.detach()
-
-