Spec-Zone .ru
спецификации, руководства, описания, API
|
private static class FXMLLoader.PropertyChangeAdapter extends java.lang.Object implements ChangeListener<java.lang.Object>
Modifier and Type | Field and Description |
---|---|
EventHandler<com.sun.javafx.fxml.PropertyChangeEvent<?>> |
handler |
java.lang.Object |
source |
Constructor and Description |
---|
FXMLLoader.PropertyChangeAdapter(java.lang.Object source,
EventHandler<com.sun.javafx.fxml.PropertyChangeEvent<?>> handler) |
Modifier and Type | Method and Description |
---|---|
void |
changed(ObservableValue<? extends java.lang.Object> observable,
java.lang.Object oldValue,
java.lang.Object newValue)
This method needs to be provided by an implementation of
ChangeListener . |
public final java.lang.Object source
public final EventHandler<com.sun.javafx.fxml.PropertyChangeEvent<?>> handler
public FXMLLoader.PropertyChangeAdapter(java.lang.Object source, EventHandler<com.sun.javafx.fxml.PropertyChangeEvent<?>> handler)
public void changed(ObservableValue<? extends java.lang.Object> observable, java.lang.Object oldValue, java.lang.Object 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<java.lang.Object>
observable
- The ObservableValue
which value changedoldValue
- The old valuenewValue
- The new valueCopyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to