T - type of model objectpublic class ComponentModel<T> extends Object implements IModel<T>, IComponentAssignedModel<T>
| Constructor and Description |
|---|
ComponentModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
detach()
Detaches model after use.
|
T |
getObject()
This getObject throws an exception.
|
protected T |
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,
T object)
Sets the model object for this model.
|
void |
setObject(T object)
Sets the model object.
|
IWrapModel<T> |
wrapOnAssignment(Component comp)
This method is called when the component gets its model assigned.
|
public final T getObject()
getObject in interface IModel<T>IModel.getObject()public final void setObject(T object)
IModelsetObject in interface IModel<T>object - The model objectIModel.setObject(java.lang.Object)protected T getObject(Component component)
component - The component which has this model.protected void setObject(Component component, T object)
component - The component which has this model.object - The object that will be set in the model.public void detach()
IDetachabledetach in interface IDetachableIDetachable.detach()public IWrapModel<T> wrapOnAssignment(Component comp)
IComponentAssignedModelwrapOnAssignment in interface IComponentAssignedModel<T>IComponentAssignedModel.wrapOnAssignment(org.apache.wicket.Component)Copyright © 2006–2021 Apache Software Foundation. All rights reserved.