|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.usc.cse.desi.model.AbstractDESIModel
edu.usc.cse.desi.model.view.AbstractViewModel
This is the super class of all view model objects. It contains a AbstractDataModel object that it refers to and many methods that are delegated to that AbstractDataModel.
| Field Summary | |
protected AbstractDataModel |
myDataModel
|
| Fields inherited from class edu.usc.cse.desi.model.AbstractDESIModel |
listeners |
| Constructor Summary | |
AbstractViewModel()
|
|
| Method Summary | |
AbstractDataModel |
getMyDataModel()
|
PropertyInitializer |
getMyPropetyInitializer()
Gets the property initializer from the data object. |
java.util.Collection |
getProperties()
Returns the properties of the data model. |
java.lang.String |
getPropertyDisplayName(java.lang.String prop_name)
Returns the display name for a property as returned by the data model. |
java.lang.Object |
getPropertyValue(java.lang.String prop_name)
Returns the property value from the data model. |
boolean |
hasProperty(java.lang.String prop_name)
Returns true if the data model has a given property. |
void |
reinitialize()
I overrode this method: |
void |
setPropertyValue(java.lang.String prop_name,
java.lang.Object value)
Sets a given property value of the data model. |
| Methods inherited from class edu.usc.cse.desi.model.AbstractDESIModel |
addPropertyChangeListener, firePropertyChange, propertyChange, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected AbstractDataModel myDataModel
| Constructor Detail |
public AbstractViewModel()
| Method Detail |
public AbstractDataModel getMyDataModel()
public void reinitialize()
reinitialize in class AbstractDESIModelAbstractDESIModel.reinitialize()public PropertyInitializer getMyPropetyInitializer()
public java.util.Collection getProperties()
public java.lang.String getPropertyDisplayName(java.lang.String prop_name)
throws PropertyNotFoundException
prop_name -
PropertyNotFoundException
public java.lang.Object getPropertyValue(java.lang.String prop_name)
throws PropertyNotFoundException
prop_name -
PropertyNotFoundExceptionpublic boolean hasProperty(java.lang.String prop_name)
prop_name -
public void setPropertyValue(java.lang.String prop_name,
java.lang.Object value)
throws PropertyNotFoundException,
java.lang.ClassCastException
prop_name - value -
PropertyNotFoundException
java.lang.ClassCastException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||