List of usage examples for javafx.beans.value ObservableBooleanValue getValue
T getValue();
From source file:com.eviware.loadui.ui.fx.util.NodeUtils.java
public static void bindStyleClass(@Nonnull final Node nodeToStyle, @Nonnull final String styleClass, ObservableBooleanValue value) { updateStyleClasses(nodeToStyle, styleClass, value.getValue()); value.addListener(new ChangeListener<Boolean>() { @Override// www .j a v a 2s . c o m public void changed(ObservableValue<? extends Boolean> arg0, Boolean oldValue, Boolean newValue) { updateStyleClasses(nodeToStyle, styleClass, newValue); } }); }