wicket.model
Class AbstractModel

java.lang.Object
  extended by wicket.model.AbstractModel
All Implemented Interfaces:
java.io.Serializable, IDetachable, IModel
Direct Known Subclasses:
AbstractReadOnlyModel, Model

public abstract class AbstractModel
extends java.lang.Object
implements IModel

AbstractModel is an adapter base class for implementing models which have no detach logic.

Author:
Jonathan Locke
See Also:
Serialized Form

Constructor Summary
AbstractModel()
           
 
Method Summary
 void detach()
          Detaches model after use.
 IModel getNestedModel()
          This default implementation of getNestedModel unconditionally returns null.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface wicket.model.IModel
getObject, setObject
 

Constructor Detail

AbstractModel

public AbstractModel()
Method Detail

detach

public void detach()
Description copied from interface: IDetachable
Detaches model after use. This is generally used to null out transient references that can be re-attached later.

Specified by:
detach in interface IDetachable
See Also:
IDetachable.detach()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

getNestedModel

public IModel getNestedModel()
This default implementation of getNestedModel unconditionally returns null.

Specified by:
getNestedModel in interface IModel
Returns:
null
See Also:
IModel.getNestedModel()


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