- java.lang.Object
-
- javafx.beans.binding.BooleanExpression
-
- javafx.beans.property.ReadOnlyBooleanProperty
-
- All Implemented Interfaces:
-
Observable,ReadOnlyProperty<Boolean>,ObservableBooleanValue,ObservableValue<Boolean>
- 已知直接子类:
-
BooleanProperty,ReadOnlyBooleanPropertyBase
public abstract class ReadOnlyBooleanProperty extends BooleanExpression implements ReadOnlyProperty<Boolean>
超类为所有只读属性包装一个boolean。- 从以下版本开始:
- JavaFX 2.0
- 另请参见:
-
ObservableBooleanValue,BooleanExpression,ReadOnlyProperty
-
-
构造方法摘要
构造方法 Constructor 描述 ReadOnlyBooleanProperty()构造函数为ReadOnlyBooleanProperty。
-
方法摘要
所有方法 静态方法 接口方法 具体的方法 Modifier and Type 方法 描述 ReadOnlyObjectProperty<Boolean>asObject()创建一个ReadOnlyObjectProperty,其值为ReadOnlyBooleanProperty。static ReadOnlyBooleanPropertyreadOnlyBooleanProperty(ReadOnlyProperty<Boolean> property)返回一个ReadOnlyBooleanProperty的ReadOnlyBooleanProperty 。StringtoString()返回此ReadOnlyBooleanProperty对象的字符串表示形式。-
Methods inherited from class javafx.beans.binding.BooleanExpression
and, asString, booleanExpression, booleanExpression, getValue, isEqualTo, isNotEqualTo, not, or
-
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.ObservableBooleanValue
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()
返回此ReadOnlyBooleanProperty对象的字符串表示形式。
-
readOnlyBooleanProperty
public static ReadOnlyBooleanProperty readOnlyBooleanProperty(ReadOnlyProperty<Boolean> property)
返回一个ReadOnlyBooleanProperty的ReadOnlyBooleanProperty 。 如果ReadOnlyProperty已经是ReadOnlyBooleanProperty,它将被返回。 否则,创建一个新的ReadOnlyBooleanProperty绑定到ReadOnlyProperty。 注意:空值将被解释为“false”- 参数
-
property- 来源ReadOnlyProperty - 结果
-
一个
ReadOnlyBooleanProperty包装了ReadOnlyProperty如果有必要 - 异常
-
NullPointerException- 如果property是null - 从以下版本开始:
- JavaFX 8.0
-
asObject
public ReadOnlyObjectProperty<Boolean> asObject()
创建一个ReadOnlyObjectProperty,其值为ReadOnlyBooleanProperty。 如果这个值ReadOnlyBooleanProperty的变化,价值ReadOnlyObjectProperty将自动更新。- 重写:
-
asObject在BooleanExpression - 结果
-
新的
ReadOnlyObjectProperty - 从以下版本开始:
- JavaFX 8.0
-
-