|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A model is an abstraction of a value source. Models generally provide the source for values that are displayed by value-based views. Models can be backed by any number of implementations; however, users of a model need not be concerned about the implementation of the model as long as it supports this interface. This is the main power behind the model-view architecture presented in this package, that views can be bound to arbitrary models without specific knowledge of their implementation.
Method Summary | |
java.lang.String |
getName()
Returns the logical instance name of this model. |
java.lang.Object |
getValue(java.lang.String name)
Returns a named value from this model |
java.lang.Object[] |
getValues(java.lang.String name)
Returns a named set of values from this model |
void |
setName(java.lang.String name)
Sets the logical name of this model |
void |
setValue(java.lang.String name,
java.lang.Object value)
Sets a named value in this model. |
void |
setValues(java.lang.String name,
java.lang.Object[] values)
Sets a named set of values in this model |
Method Detail |
public java.lang.String getName()
ModelManager
may assign a name to a model based
on user request.public void setName(java.lang.String name)
name
- The new name of this modelpublic java.lang.Object getValue(java.lang.String name)
name
- The name of the value to returnpublic void setValue(java.lang.String name, java.lang.Object value) throws ValidationException
name
- The name of the value to setvalue
- The value to set in this modelpublic java.lang.Object[] getValues(java.lang.String name)
name
- The name of the value set to returnpublic void setValues(java.lang.String name, java.lang.Object[] values) throws ValidationException
name
- The name of the value set to set in the modelvalues
- The set of values to set in this model
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |