public abstract class StyleableObjectProperty<T> extends <any> implements StyleableProperty<T>
ObjectPropertyBase
and provides a partial
implementation of a StyleableProperty
. The method
StyleableProperty.getCssMetaData()
is not implemented.
This class is used to make a javafx.beans.property.ObjectProperty
,
that would otherwise be implemented as a ObjectPropertyBase
,
styleable by CSS.javafx.beans.property.ObjectPropertyBase
,
CssMetaData
,
StyleableProperty
Modifier and Type | Field and Description |
---|---|
private StyleOrigin |
origin |
Constructor and Description |
---|
StyleableObjectProperty()
The constructor of the
StyleableObjectProperty . |
StyleableObjectProperty(T initialValue)
The constructor of the
StyleableObjectProperty . |
Modifier and Type | Method and Description |
---|---|
void |
applyStyle(StyleOrigin origin,
T v)
This method is called from CSS code to set the value of the property.
|
void |
bind(<any> observable) |
StyleOrigin |
getStyleOrigin()
Tells the origin of the value of the property.
|
void |
set(T v) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCssMetaData
private StyleOrigin origin
public StyleableObjectProperty()
StyleableObjectProperty
.public StyleableObjectProperty(T initialValue)
StyleableObjectProperty
.initialValue
- the initial value of the wrapped Object
public void applyStyle(StyleOrigin origin, T v)
applyStyle
in interface StyleableProperty<T>
origin
- the originv
- the valuepublic void bind(<any> observable)
public void set(T v)
public StyleOrigin getStyleOrigin()
getStyleOrigin
in interface StyleableProperty<T>