public abstract class ReadOnlyFloatProperty extends FloatExpression implements ReadOnlyProperty<java.lang.Number>
float
.javafx.beans.value.ObservableFloatValue
,
javafx.beans.binding.FloatExpression
,
ReadOnlyProperty
Constructor and Description |
---|
ReadOnlyFloatProperty()
The constructor of
ReadOnlyFloatProperty . |
Modifier and Type | Method and Description |
---|---|
ReadOnlyObjectProperty<java.lang.Float> |
asObject()
Creates a
ReadOnlyObjectProperty that holds the value
of this ReadOnlyFloatProperty . |
static <T extends java.lang.Number> |
readOnlyFloatProperty(ReadOnlyProperty<T> property)
Returns a
ReadOnlyFloatProperty that wraps a
ReadOnlyProperty . |
java.lang.String |
toString()
Returns a string representation of this
ReadOnlyFloatProperty object. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBean, getName
public ReadOnlyFloatProperty()
ReadOnlyFloatProperty
.public java.lang.String toString()
ReadOnlyFloatProperty
object.ReadOnlyFloatProperty
object.public static <T extends java.lang.Number> ReadOnlyFloatProperty readOnlyFloatProperty(ReadOnlyProperty<T> property)
ReadOnlyFloatProperty
that wraps a
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 0fT
- The type of Number to be wrappedproperty
- The source ReadOnlyProperty
ReadOnlyFloatProperty
that wraps the
ReadOnlyProperty
if necessaryjava.lang.NullPointerException
- if property
is null
public ReadOnlyObjectProperty<java.lang.Float> asObject()
ReadOnlyObjectProperty
that holds the value
of this ReadOnlyFloatProperty
. If the
value of this ReadOnlyFloatProperty
changes, the value of the
ReadOnlyObjectProperty
will be updated automatically.ReadOnlyObjectProperty