|
Sharkysoft home | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--lava.mv.MvModel
|
+--lava.mv.MvModelExtra
Abstract base class for models with arbitrary property set.
Details: I am an MvModel that supports arbitrary properties. Many views of minimal models need to cache away information related to their particular renderings of the model. I provide a safe and easy mechanism for doing so. Views can extend the data elements represented by my model without polluting the model from the perspective of other views.
MvModel,
IMvView| Constructor Summary | |
protected |
MvModelExtra()
Same as superclass. |
protected |
MvModelExtra(java.lang.Object id)
Same as superclass. |
| Method Summary | |
java.lang.Object |
getProperty(java.lang.Object key)
Removes property. |
void |
setProperty(java.lang.Object key,
java.lang.Object value)
Adds property. |
| Methods inherited from class lava.mv.MvModel |
getEventDispatcher, notifyViews, notifyViews, registerView, setEventDispatcher, unregisterView |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected MvModelExtra(java.lang.Object id)
Details: This constructor does the same thing as the superclass' constructor.
id - parameter passed to superconstructorprotected MvModelExtra()
Details: This constructor does the same thing as the superclass' constructor.
| Method Detail |
public void setProperty(java.lang.Object key,
java.lang.Object value)
Details: setProperty adds the given (key, value) combination to properties.
key - the keyvalue - the valueNullPointerException - if key is nullpublic java.lang.Object getProperty(java.lang.Object key)
Details: getProperty retrieves the property associated with the given key.
key - the keyNullPointerException - if key is null
|
Sharkysoft home | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||