- java.lang.Object
-
- javafx.beans.binding.ObjectExpression<T>
-
- javafx.beans.property.ReadOnlyObjectProperty<T>
-
- javafx.beans.property.ObjectProperty<T>
-
- javafx.beans.property.ObjectPropertyBase<T>
-
- javafx.css.StyleableObjectProperty<T>
-
- All Implemented Interfaces:
-
Observable,Property<T>,ReadOnlyProperty<T>,ObservableObjectValue<T>,ObservableValue<T>,WritableObjectValue<T>,WritableValue<T>,StyleableProperty<T>
- 已知直接子类:
-
SimpleStyleableObjectProperty
public abstract class StyleableObjectProperty<T> extends ObjectPropertyBase<T> implements StyleableProperty<T>
这个类扩展了ObjectPropertyBase并提供了一个StyleableProperty的部分实现。 方法StyleableProperty.getCssMetaData()未被实现。 这个类用于制作一个ObjectProperty,否则将被实现为一个ObjectPropertyBase,由CSS风格化。- 从以下版本开始:
- JavaFX 8.0
- 另请参见:
-
ObjectPropertyBase,CssMetaData,StyleableProperty
-
-
构造方法摘要
构造方法 Constructor 描述 StyleableObjectProperty()StyleableObjectProperty的构造StyleableObjectProperty。StyleableObjectProperty(T initialValue)StyleableObjectProperty的构造StyleableObjectProperty。
-
方法摘要
所有方法 接口方法 具体的方法 Modifier and Type 方法 描述 voidapplyStyle(StyleOrigin origin, T v)这个方法从CSS代码调用来设置属性的值。voidbind(ObservableValue<? extends T> observable)为此创建一个单向绑定Property。StyleOrigingetStyleOrigin()告诉物业的价值的起源。voidset(T v)设置包装的值。-
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, fireValueChangedEvent, get, invalidated, isBound, removeListener, removeListener, toString, unbind
-
Methods inherited from interface javafx.beans.value.ObservableValue
getValue
-
Methods inherited from interface javafx.beans.property.ReadOnlyProperty
getBean, getName
-
Methods inherited from interface javafx.css.StyleableProperty
getCssMetaData
-
Methods inherited from interface javafx.beans.value.WritableValue
getValue, setValue
-
-
-
-
构造方法详细信息
-
StyleableObjectProperty
public StyleableObjectProperty()
StyleableObjectProperty的构造StyleableObjectProperty。
-
StyleableObjectProperty
public StyleableObjectProperty(T initialValue)
StyleableObjectProperty的构造StyleableObjectProperty。- 参数
-
initialValue- 包装的初始值Object
-
-
方法详细信息
-
applyStyle
public void applyStyle(StyleOrigin origin, T v)
这个方法从CSS代码调用来设置属性的值。- Specified by:
-
applyStyle在接口StyleableProperty<T> - 参数
-
origin- 起源 -
v- 值
-
bind
public void bind(ObservableValue<? extends T> observable)
为此创建一个单向绑定Property。请注意,JavaFX具有通过弱侦听器实现的所有绑定调用。 这意味着bound属性可以被垃圾回收并停止更新。
-
set
public void set(T v)
设置包装的值。 应该相当于WritableValue.setValue(java.lang.Object)- Specified by:
-
set在接口WritableObjectValue<T> - 重写:
-
set在ObjectPropertyBase<T> - 参数
-
v- 新的价值 - 另请参见:
-
WritableObjectValue.get()
-
getStyleOrigin
public StyleOrigin getStyleOrigin()
告诉物业的价值的起源。 这是需要确定CSS是否可以覆盖该值。- Specified by:
-
getStyleOrigin在接口StyleableProperty<T> - 结果
- 风格起源
-
-