wicket.model
Interface IModel

All Superinterfaces:
IDetachable, java.io.Serializable
All Known Subinterfaces:
ICompoundModel
All Known Implementing Classes:
AbstractDetachableModel, AbstractModel, AbstractPropertyModel, AbstractReadOnlyDetachableModel, AbstractReadOnlyModel, BoundCompoundPropertyModel, CompoundPropertyModel, FeedbackMessagesModel, ListItemModel, LoadableDetachableModel, Model, PropertyModel, ResourceModel, SelectedPathReplacementModel, StringResourceModel

public interface IModel
extends IDetachable

A IModel wraps the actual model Object used by a Component. IModel implementations are used as a facade for the real model so that users have control over the actual persistence strategy. Note that objects implementing this interface will be stored in the Session. Hence, you should use (non-transient) instance variables sparingly.

Author:
Chris Turner, Eelco Hillenius, Jonathan Locke
See Also:
Component.sameRootModel(wicket.Component), Component.sameRootModel(IModel)

Method Summary
 IModel getNestedModel()
          Gets the nested model.
 java.lang.Object getObject(Component component)
          Gets the model object.
 void setObject(Component component, java.lang.Object object)
          Sets the model object.
 
Methods inherited from interface wicket.model.IDetachable
detach
 

Method Detail

getNestedModel

IModel getNestedModel()
Gets the nested model.

Returns:
The nested model object.

getObject

java.lang.Object getObject(Component component)
Gets the model object.

Parameters:
component - The component which wants to get a model Object
Returns:
The model object

setObject

void setObject(Component component,
               java.lang.Object object)
Sets the model object.

Parameters:
component - The component which wants to set a new model Object
object - The model object


Copyright © 2004-2007 Wicket developers. All Rights Reserved.