Example usage for javafx.beans.property ReadOnlyProperty getName

List of usage examples for javafx.beans.property ReadOnlyProperty getName

Introduction

In this page you can find the example usage for javafx.beans.property ReadOnlyProperty getName.

Prototype

String getName();

Source Link

Document

Returns the name of this property.

Usage

From source file:Book.java

public static void printDetails(ReadOnlyProperty<?> p) {
    String name = p.getName();
    Object value = p.getValue();//from   www .j a v a  2 s . c  o m
    Object bean = p.getBean();
    String beanClassName = (bean == null) ? "null" : bean.getClass().getSimpleName();
    String propClassName = p.getClass().getSimpleName();

    System.out.print(propClassName);
    System.out.print("[Name:" + name);
    System.out.print(", Bean Class:" + beanClassName);
    System.out.println(", Value:" + value + "]");
}