Class ReadOnlyFloatProperty
- javafx.beans.binding.NumberExpressionBase
-
- javafx.beans.binding.FloatExpression
-
- javafx.beans.property.ReadOnlyFloatProperty
All Implemented Interfaces:
NumberExpression, Observable, ReadOnlyProperty<Number>, ObservableFloatValue, ObservableNumberValue, ObservableValue<Number>
Direct Known Subclasses:
public abstract class ReadOnlyFloatProperty extends FloatExpression implements ReadOnlyProperty<Number>
float.Since:
JavaFX 2.0
See Also:
-
Constructor Summary
Constructors Constructor and Description ReadOnlyFloatProperty()The constructor ofReadOnlyFloatProperty.
-
Method Summary
All MethodsStatic MethodsInstance MethodsConcrete Methods Modifier and Type Method and Description ReadOnlyObjectProperty<Float>asObject()Creates aReadOnlyObjectPropertythat holds the value of thisReadOnlyFloatProperty.static <T extends Number>
ReadOnlyFloatPropertyreadOnlyFloatProperty(ReadOnlyProperty<T> property)Returns aReadOnlyFloatPropertythat wraps aReadOnlyProperty.StringtoString()Returns a string representation of thisReadOnlyFloatPropertyobject.-
Methods inherited from class javafx.beans.binding.FloatExpression
add, add, add, add, divide, divide, divide, divide, doubleValue, floatExpression, floatExpression, floatValue, getValue, intValue, longValue, multiply, multiply, multiply, multiply, negate, subtract, subtract, subtract, subtract
-
Methods inherited from class javafx.beans.binding.NumberExpressionBase
add, asString, asString, asString, divide, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThanOrEqualTo, greaterThanOrEqualTo, greaterThanOrEqualTo, greaterThanOrEqualTo, greaterThanOrEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, lessThan, lessThan, lessThan, lessThan, lessThan, lessThanOrEqualTo, lessThanOrEqualTo, lessThanOrEqualTo, lessThanOrEqualTo, lessThanOrEqualTo, multiply, numberExpression, subtract
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javafx.beans.property.ReadOnlyProperty
getBean, getName
-
Methods inherited from interface javafx.beans.value.ObservableValue
addListener, getValue, removeListener
-
Methods inherited from interface javafx.beans.Observable
addListener, removeListener
-
Methods inherited from interface javafx.beans.value.ObservableFloatValue
get
-
-
Constructor Detail
-
ReadOnlyFloatProperty
public ReadOnlyFloatProperty()
The constructor ofReadOnlyFloatProperty.
-
-
Method Detail
-
toString
public String toString()
Returns a string representation of thisReadOnlyFloatPropertyobject.
-
readOnlyFloatProperty
public static <T extends Number> ReadOnlyFloatProperty readOnlyFloatProperty(ReadOnlyProperty<T> property)
Returns aReadOnlyFloatPropertythat wraps aReadOnlyProperty. If theReadOnlyPropertyis already aReadOnlyFloatProperty, it will be returned. Otherwise a newReadOnlyFloatPropertyis created that is bound to theReadOnlyProperty. Note: null values will be interpreted as 0fParameters:
property- The sourceReadOnlyPropertyReturns:
A
ReadOnlyFloatPropertythat wraps theReadOnlyPropertyif necessaryThrows:
NullPointerException- ifpropertyisnullSince:
JavaFX 8.0
-
asObject
public ReadOnlyObjectProperty<Float> asObject()
Creates aReadOnlyObjectPropertythat holds the value of thisReadOnlyFloatProperty. If the value of thisReadOnlyFloatPropertychanges, the value of theReadOnlyObjectPropertywill be updated automatically.Overrides:
asObjectin classFloatExpressionReturns:
the new
ReadOnlyObjectPropertySince:
JavaFX 8.0
-
© 2008, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from JavaFX API Documentation.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Java, JavaFX and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.