- java.lang.Object
-
- javafx.beans.binding.NumberExpressionBase
-
- javafx.beans.binding.DoubleExpression
-
- javafx.beans.property.ReadOnlyDoubleProperty
-
- All Implemented Interfaces:
-
NumberExpression
,Observable
,ReadOnlyProperty<Number>
,ObservableDoubleValue
,ObservableNumberValue
,ObservableValue<Number>
- 已知直接子类:
-
DoubleProperty
,ReadOnlyDoublePropertyBase
public abstract class ReadOnlyDoubleProperty extends DoubleExpression implements ReadOnlyProperty<Number>
超类为所有只读属性包装一个double
。- 从以下版本开始:
- JavaFX 2.0
- 另请参见:
-
ObservableDoubleValue
,DoubleExpression
,ReadOnlyProperty
-
-
构造方法摘要
构造方法 Constructor 描述 ReadOnlyDoubleProperty()
构造函数为ReadOnlyDoubleProperty
。
-
方法摘要
所有方法 静态方法 接口方法 具体的方法 Modifier and Type 方法 描述 ReadOnlyObjectProperty<Double>
asObject()
创建一个ReadOnlyObjectProperty
,其值为ReadOnlyDoubleProperty
。static <T extends Number>
ReadOnlyDoublePropertyreadOnlyDoubleProperty(ReadOnlyProperty<T> property)
返回一个ReadOnlyDoubleProperty
,其中包含一个ReadOnlyProperty
。String
toString()
返回此ReadOnlyDoubleProperty
对象的字符串表示形式。-
Methods inherited from class javafx.beans.binding.DoubleExpression
add, add, add, add, add, divide, divide, divide, divide, divide, doubleExpression, doubleExpression, doubleValue, floatValue, getValue, intValue, longValue, multiply, multiply, multiply, multiply, multiply, negate, subtract, subtract, subtract, subtract, subtract
-
Methods inherited from class javafx.beans.binding.NumberExpressionBase
asString, asString, asString, 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, numberExpression
-
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.ObservableDoubleValue
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()
返回此ReadOnlyDoubleProperty
对象的字符串表示形式。
-
readOnlyDoubleProperty
public static <T extends Number> ReadOnlyDoubleProperty readOnlyDoubleProperty(ReadOnlyProperty<T> property)
返回一个ReadOnlyDoubleProperty
,其中包含一个ReadOnlyProperty
。 如果ReadOnlyProperty
已经是ReadOnlyDoubleProperty
,它将被退回。 否则,将创建一个新的ReadOnlyDoubleProperty
,绑定到ReadOnlyProperty
。 注意:空值将被解释为0.0- 参数类型
-
T
- 要包装的号码的类型 - 参数
-
property
- 来源ReadOnlyProperty
- 结果
-
一个
ReadOnlyDoubleProperty
包装了ReadOnlyProperty
如果有必要 - 异常
-
NullPointerException
- 如果property
是null
- 从以下版本开始:
- JavaFX 8.0
-
asObject
public ReadOnlyObjectProperty<Double> asObject()
创建一个ReadOnlyObjectProperty
,其值为ReadOnlyDoubleProperty
。 如果这个值ReadOnlyDoubleProperty
的变化,价值ReadOnlyObjectProperty
将自动更新。- 重写:
-
asObject
在DoubleExpression
- 结果
-
新的
ReadOnlyObjectProperty
- 从以下版本开始:
- JavaFX 8.0
-
-