Example usage for javafx.beans.property BooleanProperty not

List of usage examples for javafx.beans.property BooleanProperty not

Introduction

In this page you can find the example usage for javafx.beans.property BooleanProperty not.

Prototype

public BooleanBinding not() 

Source Link

Document

Creates a new BooleanExpression that calculates the negation of this BooleanExpression .

Usage

From source file:de.pixida.logtest.designer.MainWindow.java

private void bindEditorDependentProperties() {
    StringExpression titlePropertyBinding;
    BooleanProperty fileHandlingEnabled;
    final Editor currentEditor = this.getCurrentEditor();
    if (currentEditor == null) {
        titlePropertyBinding = Bindings.concat(APP_TITLE);
        fileHandlingEnabled = new SimpleBooleanProperty(false);
    } else {/* w w  w.  j a va 2  s.c  o m*/
        titlePropertyBinding = Bindings.concat(currentEditor.getTypeName() + " - ")
                .concat(currentEditor.getTitleLong()).concat(" - " + APP_TITLE);
        fileHandlingEnabled = currentEditor.supportsFilesProperty();
    }
    this.primaryStage.titleProperty().bind(titlePropertyBinding);
    this.menuItemSave.disableProperty().bind(fileHandlingEnabled.not());
    this.menuItemSaveAs.disableProperty().bind(fileHandlingEnabled.not());
}