|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.model.AbstractWrapModel<T>
T
- The Model object typepublic abstract class AbstractWrapModel<T>
Simple base class for IWrapModel objects see IComponentAssignedModel
or
IComponentInheritedModel
so 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.
Constructor Summary | |
---|---|
AbstractWrapModel()
|
Method Summary | |
---|---|
void |
detach()
Calls getWrappedModel().detach(); |
T |
getObject()
Gets the model object. |
void |
setObject(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.IWrapModel |
---|
getWrappedModel |
Constructor Detail |
---|
public AbstractWrapModel()
Method Detail |
---|
public T getObject()
IModel
getObject
in interface IModel<T>
IModel.getObject()
public void setObject(T object)
IModel
setObject
in interface IModel<T>
object
- The model objectIModel.setObject(java.lang.Object)
public void detach()
detach
in interface IDetachable
IDetachable.detach()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |