ontopoly.models
Class MutableLoadableDetachableModel<T>

java.lang.Object
  extended by ontopoly.models.MutableLoadableDetachableModel<T>
All Implemented Interfaces:
java.io.Serializable, org.apache.wicket.IClusterable, org.apache.wicket.model.IDetachable, org.apache.wicket.model.IModel<T>
Direct Known Subclasses:
TopicMapSourceModel, TopicModel

public abstract class MutableLoadableDetachableModel<T>
extends java.lang.Object
implements org.apache.wicket.model.IModel<T>

See Also:
Serialized Form

Constructor Summary
MutableLoadableDetachableModel()
           
MutableLoadableDetachableModel(T object)
           
 
Method Summary
 void detach()
           
 T getObject()
           
 boolean isAttached()
           
protected abstract  T load()
           
protected  void onAttach()
           
protected  void onDetach()
           
 void setObject(T object)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MutableLoadableDetachableModel

public MutableLoadableDetachableModel()

MutableLoadableDetachableModel

public MutableLoadableDetachableModel(T object)
Method Detail

detach

public void detach()
Specified by:
detach in interface org.apache.wicket.model.IDetachable

getObject

public T getObject()
Specified by:
getObject in interface org.apache.wicket.model.IModel<T>

setObject

public void setObject(T object)
Specified by:
setObject in interface org.apache.wicket.model.IModel<T>

isAttached

public final boolean isAttached()

toString

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

load

protected abstract T load()

onAttach

protected void onAttach()

onDetach

protected void onDetach()


Copyright © 2000-2012 Ontopia.