public class PropertyDescriptor.Listener<T> extends ReadOnlyPropertyDescriptor.ReadOnlyListener<T> implements ChangeListener<T>, VetoableChangeListener
bean| Constructor and Description |
|---|
Listener(Object bean,
ReadOnlyJavaBeanProperty<T> property) |
| Modifier and Type | Method and Description |
|---|---|
void |
changed(ObservableValue<? extends T> observable,
T oldValue,
T newValue)
This method needs to be provided by an implementation of
ChangeListener. |
void |
vetoableChange(PropertyChangeEvent propertyChangeEvent) |
checkRef, getBean, propertyChange, wasGarbageCollectedpublic Listener(Object bean, ReadOnlyJavaBeanProperty<T> property)
public void changed(ObservableValue<? extends T> observable, T oldValue, T newValue)
ChangeListenerChangeListener. It is called if the value of an
ObservableValue changes.
In general is is considered bad practice to modify the observed value in this method.
changed in interface ChangeListener<T>observable - The ObservableValue which value changedoldValue - The old valuenewValue - The new valuepublic void vetoableChange(PropertyChangeEvent propertyChangeEvent) throws PropertyVetoException
vetoableChange in interface VetoableChangeListenerPropertyVetoExceptionCopyright © 2025. All rights reserved.