wicket.spring.common.web
Class ContactDetachableModel

java.lang.Object
  extended bywicket.model.AbstractDetachableModel
      extended bywicket.spring.common.web.ContactDetachableModel
All Implemented Interfaces:
wicket.model.IDetachable, wicket.model.IModel, java.io.Serializable
Direct Known Subclasses:
DirectModel, ProxyModel

public abstract class ContactDetachableModel
extends wicket.model.AbstractDetachableModel

Base class for contact detachable models. This class implements all necessary logic except retrieval of the dao object, this way we can isolate that logic in our example implementations.

Author:
Igor Vaynberg (ivaynberg)
See Also:
Serialized Form

Constructor Summary
ContactDetachableModel(Contact contact)
           
 
Method Summary
protected abstract  ContactDao getContactDao()
           
 wicket.model.IModel getNestedModel()
           
protected  void onAttach()
           
protected  void onDetach()
           
protected  java.lang.Object onGetObject(wicket.Component component)
           
protected  void onSetObject(wicket.Component component, java.lang.Object object)
           
 
Methods inherited from class wicket.model.AbstractDetachableModel
attach, detach, getObject, isAttached, setObject, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContactDetachableModel

public ContactDetachableModel(Contact contact)
Method Detail

getNestedModel

public wicket.model.IModel getNestedModel()

onAttach

protected final void onAttach()

onDetach

protected void onDetach()

onGetObject

protected java.lang.Object onGetObject(wicket.Component component)

onSetObject

protected void onSetObject(wicket.Component component,
                           java.lang.Object object)

getContactDao

protected abstract ContactDao getContactDao()


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