|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mvc.DerivedModelBase<T>
public abstract class DerivedModelBase<T>
A DerivedModelBase provides a registration, unregistration and execution service for callbacks.
Constructor Summary | |
---|---|
DerivedModelBase()
new DerivedModelBase() returns a new DerivedModelBase. |
Method Summary | |
---|---|
void |
addCallback(Callback cbk)
ce.addCallback(cbk) registers cbk as an callback that is executed by ce when ce.executeCallbacks() is invoked. |
protected void |
addSourceModel(Model<?> m)
|
protected abstract T |
computeValue()
|
T |
getValue()
m.getValue() returns the current value of m. |
void |
removeCallback(Callback cbk)
ce.removeCallback(cbk) unregisters cbk as an callback that is executed by ce when ce.executeCallbacks() is invoked. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DerivedModelBase()
Method Detail |
---|
protected void addSourceModel(Model<?> m)
protected abstract T computeValue()
public final T getValue()
Model
getValue
in interface Model<T>
public void addCallback(Callback cbk)
addCallback
in interface CallbackRegistry
cbk
- the callback to be registeredpublic void removeCallback(Callback cbk)
removeCallback
in interface CallbackRegistry
cbk
- the callback to be unregistered
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |