|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.model.AbstractReadOnlyModel<T>
T
- The model objectpublic abstract class AbstractReadOnlyModel<T>
AbstractReadOnlyModel is an adapter base class for implementing models which have no detach logic and are read-only.
Constructor Summary | |
---|---|
AbstractReadOnlyModel()
|
Method Summary | |
---|---|
void |
detach()
Detaches model after use. |
abstract T |
getObject()
Gets the model object. |
void |
setObject(T object)
This default implementation of setObject unconditionally throws an UnsupportedOperationException. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractReadOnlyModel()
Method Detail |
---|
public abstract T getObject()
IModel
getObject
in interface IModel<T>
IModel.getObject()
public final void setObject(T object)
setObject
in interface IModel<T>
object
- The object to set into the model
UnsupportedOperationException
public String toString()
toString
in class Object
public void detach()
detach
in interface IDetachable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |