- java.lang.Object
-
- javafx.beans.binding.ObjectExpression<T>
-
- javafx.beans.property.ReadOnlyObjectProperty<T>
-
- javafx.beans.property.ObjectProperty<T>
-
- javafx.beans.property.ObjectPropertyBase<T>
-
- javafx.beans.property.SimpleObjectProperty<T>
-
- 参数类型
-
T
- 包装的类型Object
- All Implemented Interfaces:
-
Observable
,Property<T>
,ReadOnlyProperty<T>
,ObservableObjectValue<T>
,ObservableValue<T>
,WritableObjectValue<T>
,WritableValue<T>
- 已知直接子类:
-
ReadOnlyObjectWrapper
public class SimpleObjectProperty<T> extends ObjectPropertyBase<T>
这个类提供了一个Property
的全面实现,包装任意的Object
。- 从以下版本开始:
- JavaFX 2.0
- 另请参见:
-
ObjectPropertyBase
-
-
构造方法摘要
构造方法 Constructor 描述 SimpleObjectProperty()
构造函数为ObjectProperty
SimpleObjectProperty(Object bean, String name)
构造函数为ObjectProperty
SimpleObjectProperty(Object bean, String name, T initialValue)
构造函数为ObjectProperty
SimpleObjectProperty(T initialValue)
构造函数为ObjectProperty
-
方法摘要
所有方法 接口方法 具体的方法 Modifier and Type 方法 描述 Object
getBean()
返回包含此属性的Object
。String
getName()
返回此属性的名称。-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from class javafx.beans.binding.ObjectExpression
asString, asString, asString, getValue, isEqualTo, isEqualTo, isNotEqualTo, isNotEqualTo, isNotNull, isNull, objectExpression
-
Methods inherited from class javafx.beans.property.ObjectProperty
bindBidirectional, setValue, unbindBidirectional
-
Methods inherited from class javafx.beans.property.ObjectPropertyBase
addListener, addListener, bind, fireValueChangedEvent, get, invalidated, isBound, removeListener, removeListener, set, toString, unbind
-
Methods inherited from interface javafx.beans.value.ObservableValue
getValue
-
Methods inherited from interface javafx.beans.value.WritableValue
getValue
-
-
-
-
构造方法详细信息
-
SimpleObjectProperty
public SimpleObjectProperty()
构造函数为ObjectProperty
-
SimpleObjectProperty
public SimpleObjectProperty(T initialValue)
构造函数为ObjectProperty
- 参数
-
initialValue
- 包装值的初始值
-
SimpleObjectProperty
public SimpleObjectProperty(Object bean, String name)
构造函数为ObjectProperty
- 参数
-
bean
- 这个ObjectProperty
的豆 -
name
- 这个名字ObjectProperty
-
-