Example usage for javafx.beans.binding BooleanBinding invalidate

List of usage examples for javafx.beans.binding BooleanBinding invalidate

Introduction

In this page you can find the example usage for javafx.beans.binding BooleanBinding invalidate.

Prototype

@Override
    public final void invalidate() 

Source Link

Usage

From source file:com.adobe.ags.curly.test.ErrorBehaviorTest.java

private boolean isBindingTrue(BooleanBinding binding) {
    binding.invalidate();
    sync();//from w  w w.  j a v a2  s .c o  m
    return binding != null && binding.getValue() != null && binding.get();
}

From source file:com.rvantwisk.cnctools.controls.ToolParametersControl.java

@FXML
void initialize() {
    assert iDiameter != null : "fx:id=\"iDiameter\" was not injected: check your FXML file 'ToolParameters.fxml'.";
    assert iName != null : "fx:id=\"iName\" was not injected: check your FXML file 'ToolParameters.fxml'.";

    final InputMaskChecker listener1 = new InputMaskChecker(InputMaskChecker.NOTEMPTY, iName);
    // final InputMaskChecker listener2 = new InputMaskChecker(InputMaskChecker.NOTEMPTY, iDiameter);

    iName.textProperty().addListener(listener1);
    //iDiameter.textProperty().addListener(listener2);

    cbToolType.setItems(tools);/*from  www.  j  a v  a  2s.c o  m*/

    final BooleanBinding binding = new BooleanBinding() {
        {
            //      super.bind(listener1.erroneous, listener2.erroneous);
        }

        @Override
        protected boolean computeValue() {
            return true; // (listener1.erroneous.get() || listener2.erroneous.get());
        }
    };

    binding.invalidate();

}