- 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>
- 已知直接子类:
-
FloatProperty
,ReadOnlyFloatPropertyBase
public abstract class ReadOnlyFloatProperty extends FloatExpression implements ReadOnlyProperty<Number>
超类为所有只读属性包装一个float
。- 从以下版本开始:
- JavaFX 2.0
- 另请参见:
-
ObservableFloatValue
,FloatExpression
,ReadOnlyProperty
-
-
构造方法摘要
构造方法 Constructor 描述 ReadOnlyFloatProperty()
构造函数为ReadOnlyFloatProperty
。
-
方法摘要
所有方法 静态方法 接口方法 具体的方法 Modifier and Type 方法 描述 ReadOnlyObjectProperty<Float>
asObject()
创建一个持有ReadOnlyFloatProperty的值的ReadOnlyFloatProperty
。static <T extends Number>
ReadOnlyFloatPropertyreadOnlyFloatProperty(ReadOnlyProperty<T> property)
返回一个ReadOnlyFloatProperty
的ReadOnlyFloatProperty 。String
toString()
返回此ReadOnlyFloatProperty
对象的字符串表示形式。-
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.Observable
addListener, removeListener
-
Methods inherited from interface javafx.beans.value.ObservableFloatValue
get
-
Methods inherited from interface javafx.beans.value.ObservableValue
addListener, getValue, removeListener
-
Methods inherited from interface javafx.beans.property.ReadOnlyProperty
getBean, getName
-
-
-
-
方法详细信息
-
toString
public String toString()
返回此ReadOnlyFloatProperty
对象的字符串表示形式。
-
readOnlyFloatProperty
public static <T extends Number> ReadOnlyFloatProperty readOnlyFloatProperty(ReadOnlyProperty<T> property)
返回一个ReadOnlyFloatProperty
的ReadOnlyFloatProperty 。 如果ReadOnlyProperty
已经是一个ReadOnlyFloatProperty
,它将被返回。 否则创建一个新的ReadOnlyFloatProperty
绑定到ReadOnlyProperty
。 注意:空值将被解释为0f- 参数类型
-
T
- 要包装的号码的类型 - 参数
-
property
- 来源ReadOnlyProperty
- 结果
-
一个
ReadOnlyFloatProperty
包装了ReadOnlyProperty
如果有必要 - 异常
-
NullPointerException
- 如果property
是null
- 从以下版本开始:
- JavaFX 8.0
-
asObject
public ReadOnlyObjectProperty<Float> asObject()
创建一个ReadOnlyObjectProperty
保留此值ReadOnlyFloatProperty
。 如果这个值ReadOnlyFloatProperty
的变化,价值ReadOnlyObjectProperty
将自动更新。- 重写:
-
asObject
在FloatExpression
- 结果
-
新的
ReadOnlyObjectProperty
- 从以下版本开始:
- JavaFX 8.0
-
-