|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.model.ComponentModel
public class ComponentModel
Quick model that is implements the IComponentAssignedModel and the IModel interfaces. Its a quick replacement for the current setObject(Component,Object) and getObject(Component) methods when the component is needed in the model.
Constructor Summary | |
---|---|
ComponentModel()
|
Method Summary | |
---|---|
void |
detach()
Detaches model after use. |
java.lang.Object |
getObject()
This getObject throws an exception. |
protected java.lang.Object |
getObject(Component component)
Returns the object from the model with the use of the component where it is attached to. |
protected void |
setObject(Component component,
java.lang.Object object)
Sets the model object for this model. |
void |
setObject(java.lang.Object object)
Sets the model object. |
IWrapModel |
wrapOnAssignment(Component comp)
This method is called when the component gets its model assigned. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComponentModel()
Method Detail |
---|
public final java.lang.Object getObject()
getObject
in interface IModel
IModel.getObject()
public final void setObject(java.lang.Object object)
IModel
setObject
in interface IModel
object
- The model objectIModel.setObject(java.lang.Object)
protected java.lang.Object getObject(Component component)
component
- The component which has this model.
protected void setObject(Component component, java.lang.Object object)
component
- The component which has this model.object
- The object that will be set in the model.public void detach()
IDetachable
detach
in interface IDetachable
IDetachable.detach()
public IWrapModel wrapOnAssignment(Component comp)
IComponentAssignedModel
wrapOnAssignment
in interface IComponentAssignedModel
IComponentAssignedModel.wrapOnAssignment(org.apache.wicket.Component)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |