public static <T extends Number> ReadOnlyFloatProperty readOnlyFloatProperty (ReadOnlyProperty<T> property)

Returns a ReadOnlyFloatProperty that wraps a javafx.beans.property.ReadOnlyProperty. If the ReadOnlyProperty is already a ReadOnlyFloatProperty, it will be returned. Otherwise a new ReadOnlyFloatProperty is created that is bound to the ReadOnlyProperty. Note: null values will be interpreted as 0f

Parameters:
<T>    The type of Number to be wrapped
property     The source ReadOnlyProperty

Returns:  A ReadOnlyFloatProperty that wraps the ReadOnlyProperty if necessary

Exceptions:
NullPointerException     if property is null

Since:  JavaFX 8.0