Example usage for javafx.scene.control TextInputControl disableProperty

List of usage examples for javafx.scene.control TextInputControl disableProperty

Introduction

In this page you can find the example usage for javafx.scene.control TextInputControl disableProperty.

Prototype

public final BooleanProperty disableProperty() 

Source Link

Document

Defines the individual disabled state of this Node .

Usage

From source file:ninja.javafx.smartcsv.fx.validation.ValidationEditorController.java

private void initTextInputControl(TextInputControl rule, CheckBox ruleEnabled) {
    rule.disableProperty().bind(ruleEnabled.selectedProperty().not());
    ruleEnabled.selectedProperty().addListener((observable, oldValue, newValue) -> {
        if (!newValue) {
            rule.setText("");
        }//  w  w w .  j ava2s  .c  o m
    });
}