public class IlvJavaBeanPropertyConnector extends Object implements IlvPropertyConnector
Constructor and Description |
---|
IlvJavaBeanPropertyConnector()
Creates an
IlvPropertyConnector that handles JavaBean objects. |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(Object object,
PropertyChangeListener listener)
Adds a property change listener that watches property changes in a
given object.
|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener that watches property changes for all
objects at once.
|
Object |
getObjectProperty(Object object,
String property)
Returns the value of the given property or attribute in the given object.
|
void |
removePropertyChangeListener(Object object,
PropertyChangeListener listener)
Removes a property change listener registered with
addPropertyChangeListener . |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener registered with
addPropertyChangeListener . |
void |
setObjectProperty(Object object,
String property,
Object value)
Sets the value of the given property or attribute in the given object.
|
boolean |
supportsGlobalPropertyChangeListener()
Returns
false . |
boolean |
supportsPerObjectPropertyChangeListener()
Returns
true . |
public IlvJavaBeanPropertyConnector()
IlvPropertyConnector
that handles JavaBean objects.public Object getObjectProperty(Object object, String property)
getObjectProperty
in interface IlvPropertyConnector
object
- An object that has the notion of properties.property
- A property name.public void setObjectProperty(Object object, String property, Object value)
setObjectProperty
in interface IlvPropertyConnector
object
- An object that has the notion of properties.property
- A property name.value
- The new value of the property.public boolean supportsPerObjectPropertyChangeListener()
true
.
Note that per-object property change listeners are only supported on
objects which have an addPropertyChangeListener
and a
removePropertyChangeListener
method.
supportsPerObjectPropertyChangeListener
in interface IlvPropertyConnector
public void addPropertyChangeListener(Object object, PropertyChangeListener listener)
Note: The getOldValue()
and getNewValue()
fields of the event sent to the listener are not required to be filled.
Implementations of this interface for which
supportsPerObjectPropertyChangeListener() == false
do nothing here.
addPropertyChangeListener
in interface IlvPropertyConnector
listener
- A listener to be notified for property changes in the
given object.public void removePropertyChangeListener(Object object, PropertyChangeListener listener)
addPropertyChangeListener
.removePropertyChangeListener
in interface IlvPropertyConnector
public boolean supportsGlobalPropertyChangeListener()
false
.supportsGlobalPropertyChangeListener
in interface IlvPropertyConnector
public void addPropertyChangeListener(PropertyChangeListener listener)
IlvPropertyConnector
Note: The getOldValue()
and getNewValue()
fields of the event sent to the listener are not required to be filled.
Implementations of this interface for which
supportsGlobalPropertyChangeListener() == false
do nothing here.
addPropertyChangeListener
in interface IlvPropertyConnector
listener
- A listener to be notified for property changes in any
object.public void removePropertyChangeListener(PropertyChangeListener listener)
IlvPropertyConnector
addPropertyChangeListener
.removePropertyChangeListener
in interface IlvPropertyConnector
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.