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 |
---|---|
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)
IModel
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 IWrapModel<T> wrapOnAssignment(Component comp)
IComponentAssignedModel
wrapOnAssignment
in interface IComponentAssignedModel<T>
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.