List of usage examples for javafx.scene.control MenuItem disableProperty
public final BooleanProperty disableProperty()
From source file:ninja.javafx.smartcsv.fx.SmartCSVController.java
private void bindMenuItemsToContentExistence(FileStorage file, MenuItem... items) { for (MenuItem item : items) { item.disableProperty().bind(isNull(file.contentProperty())); }/*from ww w .j av a 2s . c o m*/ }
From source file:ninja.javafx.smartcsv.fx.SmartCSVController.java
private void bindMenuItemsToTableSelection(MenuItem... items) { for (MenuItem item : items) { item.disableProperty().bind(lessThan(tableView.getSelectionModel().selectedIndexProperty(), 0)); }/*from w w w . j a v a2 s .com*/ }