wicket.spring.common.web
Class ContactDetachableModel

java.lang.Object
  extended by wicket.model.AbstractDetachableModel
      extended by wicket.spring.common.web.ContactDetachableModel
All Implemented Interfaces:
java.io.Serializable, wicket.model.IDetachable, wicket.model.IModel
Direct Known Subclasses:
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()
Specified by:
getNestedModel in interface wicket.model.IModel
Specified by:
getNestedModel in class wicket.model.AbstractDetachableModel

onAttach

protected final void onAttach()
Specified by:
onAttach in class wicket.model.AbstractDetachableModel

onDetach

protected void onDetach()
Specified by:
onDetach in class wicket.model.AbstractDetachableModel

onGetObject

protected java.lang.Object onGetObject(wicket.Component component)
Specified by:
onGetObject in class wicket.model.AbstractDetachableModel

onSetObject

protected void onSetObject(wicket.Component component,
                           java.lang.Object object)
Specified by:
onSetObject in class wicket.model.AbstractDetachableModel

getContactDao

protected abstract ContactDao getContactDao()


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