public abstract class SynchronizedPropertyObject extends TypedPropertyObject
Constructor and Description |
---|
SynchronizedPropertyObject(IPropertyMetaDataSet propertiesMeta,
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.
|
Object |
getMonitor()
Returns the monitor.
|
Object |
getProperty(String name)
Returns a property.
|
Set |
getPropertyNames()
Returns all of the properties.
|
boolean |
hasProperty(String name)
Tests if the given property name exists
If an property is
null it exists |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove a PropertyChangeListener from the listener list.
|
void |
setProperty(String name,
Object value)
Sets a property
|
getMetaData, getMetaDatas
getProperties, setProperties, toString
public SynchronizedPropertyObject(IPropertyMetaDataSet propertiesMeta, Object monitor)
monitor
- the monitorpublic Object getProperty(String name)
getProperty
in interface IPropertyObject
getProperty
in class SimplePropertyObject
name
- name of the propertypublic Set getPropertyNames()
getPropertyNames
in interface IPropertyObject
getPropertyNames
in class SimplePropertyObject
public void setProperty(String name, Object value)
setProperty
in interface IPropertyObject
setProperty
in class SimplePropertyObject
name
- name of the propertyvalue
- value of the propertypublic boolean hasProperty(String name)
IPropertyObject
null
it existshasProperty
in interface IPropertyObject
hasProperty
in class SimplePropertyObject
name
- the name of the property to testtrue
if and only if the property existspublic 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.Copyright © 2013. All Rights Reserved.