org.apache.wicket.model
Interface IModel

All Superinterfaces:
IClusterable, IDetachable, java.io.Serializable
All Known Subinterfaces:
IChainingModel, IComponentAssignedModel, IComponentInheritedModel, IObjectClassAwareModel, IWrapModel
All Known Implementing Classes:
AbstractCheckBoxModel, AbstractPropertyModel, AbstractReadOnlyModel, AbstractWrapModel, BoundCompoundPropertyModel, ComponentDetachableModel, ComponentModel, ComponentPropertyModel, CompoundPropertyModel, ContactDetachableModel, DetachableContactModel, DirectModel, FeedbackMessagesModel, ListItemModel, LoadableDetachableModel, Model, PropertyModel, ProxyModel, ProxyModel, ResourceModel, SessionModel, SourcesPage.PackagedResourcesModel, SourcesPage.SourceModel, 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 TODO 3.0: Vote on renaming get/setObject to get/setValue
See Also:
Component.sameInnermostModel(org.apache.wicket.Component), Component.sameInnermostModel(IModel)

Method Summary
 java.lang.Object getObject()
          Gets the model object.
 void setObject(java.lang.Object object)
          Sets the model object.
 
Methods inherited from interface org.apache.wicket.model.IDetachable
detach
 

Method Detail

getObject

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

Returns:
The model object

setObject

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

Parameters:
object - The model object


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.