Example usage for javafx.beans.property StringProperty isBound

List of usage examples for javafx.beans.property StringProperty isBound

Introduction

In this page you can find the example usage for javafx.beans.property StringProperty isBound.

Prototype

boolean isBound();

Source Link

Document

Can be used to check, if a Property is bound.

Usage

From source file:Main.java

License:asdf

public static void main(String[] args) {
    StringProperty prop1 = new SimpleStringProperty("");
    StringProperty prop2 = new SimpleStringProperty("");

    prop2.bindBidirectional(prop1);/*from  w ww. j  a  v a 2s .  co m*/

    System.out.println("prop1.isBound() = " + prop1.isBound());
    System.out.println("prop2.isBound() = " + prop2.isBound());

    prop1.set("asdf");
    System.out.println(prop2.get());

    prop2.set(prop2.get());
    System.out.println(prop1.get());
}