Example usage for javafx.beans.property ObjectProperty getValue

List of usage examples for javafx.beans.property ObjectProperty getValue

Introduction

In this page you can find the example usage for javafx.beans.property ObjectProperty getValue.

Prototype

T getValue();

Source Link

Document

Returns the current value of this ObservableValue

Usage

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
}