org.wamblee.wicket.model
Class DetachableEntity<T>

java.lang.Object
  extended by org.apache.wicket.model.LoadableDetachableModel<T>
      extended by org.wamblee.wicket.model.DetachableEntity<T>
All Implemented Interfaces:
java.io.Serializable, org.apache.wicket.IClusterable, org.apache.wicket.model.IDetachable, org.apache.wicket.model.IModel<T>

public class DetachableEntity<T>
extends org.apache.wicket.model.LoadableDetachableModel<T>

A detachable model that wraps a domain object.

See Also:
Serialized Form

Constructor Summary
DetachableEntity(org.wamblee.persistence.Detachable<T> aObject)
          Constructs the model.
 
Method Summary
protected  T load()
           
protected  void onDetach()
           
 void setObject(T aObject)
           
 
Methods inherited from class org.apache.wicket.model.LoadableDetachableModel
detach, getObject, isAttached, onAttach, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DetachableEntity

public DetachableEntity(org.wamblee.persistence.Detachable<T> aObject)
Constructs the model.

Parameters:
aObject - Object to construct the model with.
Method Detail

onDetach

protected void onDetach()
Overrides:
onDetach in class org.apache.wicket.model.LoadableDetachableModel<T>

load

protected T load()
Specified by:
load in class org.apache.wicket.model.LoadableDetachableModel<T>

setObject

public void setObject(T aObject)
Specified by:
setObject in interface org.apache.wicket.model.IModel<T>
Overrides:
setObject in class org.apache.wicket.model.LoadableDetachableModel<T>


Copyright © 2022. All Rights Reserved.