- java.lang.Object
-
- 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:
FloatProperty,ReadOnlyFloatPropertyBase
public abstract class ReadOnlyFloatProperty extends FloatExpression implements ReadOnlyProperty<Number>
Superclass for all readonly properties wrapping afloat.- Since:
- JavaFX 2.0
- See Also:
ObservableFloatValue,FloatExpression,ReadOnlyProperty
-
-
Constructor Summary
Constructors Constructor Description ReadOnlyFloatProperty()The constructor ofReadOnlyFloatProperty.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 declared in class javafx.beans.binding.FloatExpression
floatExpression, floatExpression
-
Methods declared in class javafx.beans.binding.NumberExpressionBase
numberExpression
-
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods declared in interface javafx.beans.binding.NumberExpression
add, add, add, add, add, asString, asString, asString, divide, divide, divide, divide, 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, multiply, multiply, multiply, multiply, negate, subtract, subtract, subtract, subtract, subtract
-
Methods declared in interface javafx.beans.Observable
addListener, removeListener
-
Methods declared in interface javafx.beans.value.ObservableFloatValue
get
-
Methods declared in interface javafx.beans.value.ObservableNumberValue
doubleValue, floatValue, intValue, longValue
-
Methods declared in interface javafx.beans.value.ObservableValue
addListener, getValue, removeListener
-
Methods declared in interface javafx.beans.property.ReadOnlyProperty
getBean, getName
-
-
-
-
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 0f- Type Parameters:
T- The type of Number to be wrapped- Parameters:
property- The sourceReadOnlyProperty- Returns:
- A
ReadOnlyFloatPropertythat wraps theReadOnlyPropertyif necessary - Throws:
NullPointerException- ifpropertyisnull- Since:
- 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 classFloatExpression- Returns:
- the new
ReadOnlyObjectProperty - Since:
- JavaFX 8.0
-
-