public abstract class SynchronizedPropertyObject extends TypedPropertyObject
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
monitor
The monitor.
|
pcs, properties
Constructor and Description |
---|
SynchronizedPropertyObject(IPropertyMetaDataSet propertiesMeta,
java.lang.Object monitor)
Initializes the PropertyHolder, should be called by subclasses.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list.
|
java.lang.Object |
getMonitor()
Returns the monitor.
|
java.lang.Object |
getProperty(java.lang.String name)
Returns a property.
|
java.util.Set |
getPropertyNames()
Returns all of the properties.
|
boolean |
hasProperty(java.lang.String name)
Test if has a property.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove a PropertyChangeListener from the listener list.
|
void |
setProperty(java.lang.String name,
java.lang.Object value)
Sets a property
|
getMetaData, getMetaDatas
getProperties, setProperties, toString
public SynchronizedPropertyObject(IPropertyMetaDataSet propertiesMeta, java.lang.Object monitor)
monitor
- the monitorpublic java.lang.Object getProperty(java.lang.String name)
getProperty
in interface IPropertyObject
getProperty
in class SimplePropertyObject
name
- name of the propertypublic java.util.Set getPropertyNames()
getPropertyNames
in interface IPropertyObject
getPropertyNames
in class SimplePropertyObject
public void setProperty(java.lang.String name, java.lang.Object value)
setProperty
in interface IPropertyObject
setProperty
in class SimplePropertyObject
name
- name of the propertyvalue
- value of the propertypublic boolean hasProperty(java.lang.String name)
hasProperty
in interface IPropertyObject
hasProperty
in class SimplePropertyObject
name
- the name of the property to testtrue
if and only if the property existspublic java.lang.Object getMonitor()
public void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener
in class SimplePropertyObject
listener
- The PropertyChangeListener to be added.public void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener
in class SimplePropertyObject
listener
- The PropertyChangeListener to be removed.