Example usage for javafx.beans.value ObservableBooleanValue getValue

List of usage examples for javafx.beans.value ObservableBooleanValue getValue

Introduction

In this page you can find the example usage for javafx.beans.value ObservableBooleanValue getValue.

Prototype

T getValue();

Source Link

Document

Returns the current value of this ObservableValue

Usage

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);
        }

    });
}