java.lang.Object | |
↳ | java.beans.PropertyChangeSupport |
This utility class
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new instance that uses the source bean as source for any event.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a listener to a specific property.
| |||||||||||
Registers a listener with all properties.
| |||||||||||
Fires a property change of an integer property with the given name.
| |||||||||||
Fires a property change of a boolean property with the given name.
| |||||||||||
Fires an
IndexedPropertyChangeEvent with the given name, old
value, new value and index. | |||||||||||
Fires a property change of an integer property with the given name.
| |||||||||||
Fires a property change of a boolean property with the given name.
| |||||||||||
Fires a property change event to all listeners of that property.
| |||||||||||
Fires a
PropertyChangeEvent with the given name, old value and
new value. | |||||||||||
Returns an array with the listeners that registered to all properties.
| |||||||||||
Returns an array of listeners that registered to the property with the
given name.
| |||||||||||
Returns true if there are listeners registered to the property with the
given name.
| |||||||||||
removes a property change listener that was registered to all properties.
| |||||||||||
Removes the listener from the specific property.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
|
Creates a new instance that uses the source bean as source for any event.
sourceBean | the bean used as source for all events. |
---|
Adds a listener to a specific property. Nothing happens if the property name or the listener is null.
propertyName | the name of the property |
---|---|
listener | the listener to register for the property with the given name |
Registers a listener with all properties.
listener | the listener to register |
---|
Fires a property change of an integer property with the given name. If the old value and the new value are not null and equal the event will not be fired.
propertyName | the property name |
---|---|
index | the index of the changed property |
oldValue | the old value |
newValue | the new value |
Fires a property change of a boolean property with the given name. If the old value and the new value are not null and equal the event will not be fired.
propertyName | the property name |
---|---|
index | the index of the changed property |
oldValue | the old value |
newValue | the new value |
Fires an IndexedPropertyChangeEvent
with the given name, old
value, new value and index. As source the bean used to initialize this
instance is used. If the old value and the new value are not null and
equal the event will not be fired.
propertyName | the name of the property |
---|---|
index | the index |
oldValue | the old value of the property |
newValue | the new value of the property |
Fires a property change of an integer property with the given name. If the old value and the new value are not null and equal the event will not be fired.
propertyName | the property name |
---|---|
oldValue | the old value |
newValue | the new value |
Fires a property change of a boolean property with the given name. If the old value and the new value are not null and equal the event will not be fired.
propertyName | the property name |
---|---|
oldValue | the old value |
newValue | the new value |
Fires a property change event to all listeners of that property.
event | the event to fire |
---|
Fires a PropertyChangeEvent
with the given name, old value and
new value. As source the bean used to initialize this instance is used.
If the old value and the new value are not null and equal the event will
not be fired.
propertyName | the name of the property |
---|---|
oldValue | the old value of the property |
newValue | the new value of the property |
Returns an array with the listeners that registered to all properties.
Returns an array of listeners that registered to the property with the given name. If the property name is null an empty array is returned.
propertyName | the name of the property whose listeners should be returned |
---|
Returns true if there are listeners registered to the property with the given name.
propertyName | the name of the property |
---|
removes a property change listener that was registered to all properties.
listener | the listener to remove |
---|
Removes the listener from the specific property. This only happens if it was registered to this property. Nothing happens if it was not registered with this property or if the property name or the listener is null.
propertyName | the property name the listener is listening to |
---|---|
listener | the listener to remove |