List of usage examples for javafx.beans.property BooleanProperty not
public BooleanBinding not()
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()); }