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, wasGarbageCollected
public Listener(Object bean, ReadOnlyJavaBeanProperty<T> property)
public void changed(ObservableValue<? extends T> observable, T oldValue, T newValue)
ChangeListener
ChangeListener
. 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 VetoableChangeListener
PropertyVetoException
Copyright © 2020. All rights reserved.