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