T
- The model object typepublic class ComponentDetachableModel<T> extends Object implements IComponentAssignedModel<T>
Constructor and Description |
---|
ComponentDetachableModel() |
Modifier and Type | Method and Description |
---|---|
protected void |
attach()
Attaches to the current request.
|
T |
getObject()
This getObject throws an exception.
|
protected T |
getObject(Component component)
Called when getObject is called in order to retrieve the detachable object.
|
boolean |
isAttached()
Gets whether this model has been attached to the current session.
|
protected void |
setAttached()
Set this model in an attached state.
|
protected void |
setObject(Component component,
T object)
Called when setObject is called in order to change the detachable object.
|
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)
IModel
public final boolean isAttached()
protected final void setAttached()
protected void attach()
protected T getObject(Component component)
component
- The component asking for the objectprotected void setObject(Component component, T object)
component
- The component asking for replacement of the model objectobject
- The new model objectpublic IWrapModel<T> wrapOnAssignment(Component comp)
IComponentAssignedModel
wrapOnAssignment
in interface IComponentAssignedModel<T>
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.