| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
DefaultPropertyMap class is a generic-use implementation of a PropertyMap interface.
It provides the minimal functionality of all PropertyMap's methods, but still enough for using it
in many cases. To get a more sophisticated PropertyMap instance, one have to define its own class
implementing PropertyMap interface.
| Inner Class Summary | |
public class | DefaultPropertyMap.DefaultProperty |
| Field Summary | |
private EventMulticaster | myAllKeysMulticaster |
private Vector | myKeys |
private Hashtable | myMap |
private Hashtable | myMulticasterMap |
| Method Summary | |
Property | addProperty(Object propertyKey, Object propertyValue)Adds new property. |
void | addPropertyMapListener(Object propertyKey, PropertyMapListener listener)Adds listener of PropertyMapEvent for certain property. |
protected void | addPropertyToEnd(DefaultProperty property)Adds specified property to the end of property list. |
boolean | canAddProperty(Object propertyKey, Object propertyValue)Checks whether it is possible to add specified property with specified value. |
boolean | canSetPropertyValue(Object propertyKey, Object propertyValue)Checks whether it is possible to set specified value for specified property. |
protected DefaultProperty | createProperty(Object key, Object value)Creates and returns a property with the specified key and value. |
protected void | fireEvent(PropertyMapEvent event)Fires specified PropertyMapEvent. |
Object | getPropertyValue(Object propertyKey)Return value of property with specified key. |
Object | getPropertyValue(Object propertyKey, Class valueClass)Return value of property with specified key and class of value. |
boolean | isPropertyReadable(Object propertyKey)Checks whether it is possible to read value(s) of specified property. |
boolean | isPropertyWritable(Object propertyKey)Checks whether it is possible to write value(s) to specified property. |
Enumeration | properties()Returns Enumeration of properties. |
Enumeration | properties(Object propertyKey)Returns Enumeration of all values of given property. |
void | removePropertyMapListener(Object propertyKey, PropertyMapListener listener)Removes listener of PropertyMapEvent for certain property. |
void | setPropertyValue(Object propertyKey, Object propertyValue)Sets specified value for specified property. |
String | toString()Returns a string containing the pairs key-value for all properties in this PropertyMap. |
| Field Detail |
private EventMulticaster myAllKeysMulticaster
private Vector myKeys
private Hashtable myMap
private Hashtable myMulticasterMap
| Method Detail |
public Property addProperty(Object propertyKey, Object propertyValue)
public void addPropertyMapListener(Object propertyKey, PropertyMapListener listener)
protected void addPropertyToEnd(DefaultProperty property)
public boolean canAddProperty(Object propertyKey, Object propertyValue)
public boolean canSetPropertyValue(Object propertyKey, Object propertyValue)
protected DefaultProperty createProperty(Object key, Object value)
protected void fireEvent(PropertyMapEvent event)
public Object getPropertyValue(Object propertyKey)
public Object getPropertyValue(Object propertyKey, Class valueClass)
throws CastNotSupportedException
public boolean isPropertyReadable(Object propertyKey)
public boolean isPropertyWritable(Object propertyKey)
public Enumeration properties()
public Enumeration properties(Object propertyKey)
public void removePropertyMapListener(Object propertyKey, PropertyMapListener listener)
public void setPropertyValue(Object propertyKey, Object propertyValue)
public String toString()
| Association Links |
to Class java.util.Vector
to Class java.util.Hashtable
to Class com.togethersoft.openapi.util.EventMulticaster
| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||