|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.model.util.GenericBaseModel<T>
T - type of model objectpublic abstract class GenericBaseModel<T>
Base class for models that contain instances that do not appear to be serializable and cannot
thus use Model directly. Makes sure that the object set into the model can be
serialized.
| Constructor Summary | |
|---|---|
GenericBaseModel()
|
|
| Method Summary | |
|---|---|
protected abstract T |
createSerializableVersionOf(T object)
Creates a serializable version of the object. |
void |
detach()
Detaches model after use. |
boolean |
equals(Object obj)
|
T |
getObject()
Gets the model object. |
int |
hashCode()
|
void |
setObject(T object)
Set the model object. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GenericBaseModel()
| Method Detail |
|---|
public T getObject()
IModel
getObject in interface IModel<T>IModel.getObject()public void setObject(T object)
setObject in interface IModel<T>object - the model objectIModel.setObject(Object)protected abstract T createSerializableVersionOf(T object)
object -
objectpublic void detach()
IDetachable
detach in interface IDetachableIDetachable.detach()public String toString()
toString in class ObjectObject.toString()public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||