|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A part of the model that holds properties.
Property
Method Summary | |
void |
addProperty(Property property)
Adds a property to the holder. |
void |
addPropertyListener(PropertyListener listener)
Adds a PropertyListener (Observer pattern). |
void |
changeProperty(Property property)
Changes a property of the holder - i.e., replaces the property with the name of the parameter property with the parameter. |
void |
firePropertyChanged(Property property)
Informs the listeners that a property has been changed. |
Iterator |
getProperties()
Returns an Iterator over the properties of the holder. |
Property |
getProperty(String name)
Returns a property of the holder. |
void |
removeProperty(Property property)
Removes a property from the holder. |
void |
removePropertyListener(PropertyListener listener)
Removes a PropertyListener (Observer pattern). |
Method Detail |
public Iterator getProperties()
public Property getProperty(String name)
name
- the name of the property
public void addProperty(Property property)
public void removeProperty(Property property)
property
- the property to be removed, must not be nullpublic void changeProperty(Property property)
property
- the new property, must not be nullpublic void addPropertyListener(PropertyListener listener)
listener
- the listener to be addedEventListenerList
public void removePropertyListener(PropertyListener listener)
listener
- the listener to be removedEventListenerList
public void firePropertyChanged(Property property)
property
- the property that was changed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |