| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A set of constrained properties. This is basically a hash table with several additional features: constraints on property values, default values, and listeners on state changes. Many applications will use the ModifiablePropertySet subinterface, which adds mutation methods.
This interface itself does not specify thread-safety semantics. The particular implementation or use in a larger interface should specify this. For example, standalone PropertySets may be fully synchronized and thread-safe. PropertySets related to AWT or Swing objects may require that all interaction be done on the AWT event thread.
| Method Summary | |
 void | 
addPropertySetListener(PropertySetListener listener)
Add a PropertySetListener.  | 
 Object | 
getDefaultValue(ConstrainedKey key)
Get the default value for a property.  | 
 Object | 
getValue(ConstrainedKey key)
Get a property.  | 
 void | 
removePropertySetListener(PropertySetListener listener)
Remove a PropertySetListener.  | 
| Method Detail | 
public Object getValue(ConstrainedKey key)
key - key object for the property
public Object getDefaultValue(ConstrainedKey key)
key - key object for the property
public void addPropertySetListener(PropertySetListener listener)
listener - new listenerpublic void removePropertySetListener(PropertySetListener listener)
listener - listener to remove
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||