|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mvc.CallbackExecutor mvc.CompositeModel<T,S>
public class CompositeModel<T,S extends NamedModel<? extends T>>
A CompositeModel gets its value from its currently selected submodel.
Constructor Summary | |
---|---|
CompositeModel(java.lang.String nm,
Choice.Model<S> smm)
new CompositeModel(nm, smm) returns a new CompositeModel named nm. |
|
CompositeModel(java.lang.String nm,
Choice<S> mc)
new CompositeModel(nm, mc) returns a new CompositeModel named nm. |
Method Summary | |
---|---|
java.lang.String |
getName()
m.getName() returns the name of m. |
S |
getSelectedSubmodel()
m.getSelectedModel() returns the current selected submodel of m. |
Choice.Model<S> |
getSubmodelModel()
m.getSelectedModel() returns the current selected submodel of m. |
T |
getValue()
m.getValue() returns the current value of m. |
Methods inherited from class mvc.CallbackExecutor |
---|
addCallback, executeCallbacks, removeCallback |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface mvc.CallbackRegistry |
---|
addCallback, removeCallback |
Constructor Detail |
---|
public CompositeModel(java.lang.String nm, Choice<S> mc)
public CompositeModel(java.lang.String nm, Choice.Model<S> smm)
Method Detail |
---|
public java.lang.String getName()
getName
in interface Named
public T getValue()
getValue
in interface Model<T>
public S getSelectedSubmodel()
public Choice.Model<S> getSubmodelModel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |