List of usage examples for javafx.beans.property ObjectProperty getValue
T getValue();
From source file:cz.lbenda.dataman.db.handler.ExportTableWithTemplateHandler.java
public ExportTableWithTemplateHandler(ObjectProperty<SQLQueryRows> sqlQueryRowsObjectProperty) { this.sqlQueryRowsObjectProperty = sqlQueryRowsObjectProperty; setEnable(sqlQueryRowsObjectProperty.getValue() != null); this.sqlQueryRowsObjectProperty.addListener(observable -> { setEnable(sqlQueryRowsObjectProperty.getValue() != null); });//from w ww.j a v a2 s. com }
From source file:cz.lbenda.dataman.rc.DatamanApp.java
/** Add node to center pane */ public Tab addToCenter(ObjectProperty<String> title, Node node, boolean closable) { Tab tab = addToCenter(title.getValue(), node, closable); title.addListener((observable, oldValue, newValue) -> tab.setText(newValue)); return tab;//from w ww . ja v a 2s . c o m }