List of usage examples for javafx.scene.control Spinner disableProperty
public final BooleanProperty disableProperty()
From source file:ninja.javafx.smartcsv.fx.validation.ValidationEditorController.java
private void initSpinner(Spinner rule, CheckBox ruleEnabled) { rule.disableProperty().bind(ruleEnabled.selectedProperty().not()); ruleEnabled.selectedProperty().addListener((observable, oldValue, newValue) -> { if (!newValue) { rule.getValueFactory().setValue(0); }//ww w . j av a 2 s .c om }); }