public class SimpleStyleableObjectProperty<T> extends StyleableObjectProperty<T>
SimpleObjectProperty
and provides a full
implementation of a StyleableProperty
.
This class is used to make a javafx.beans.property.ObjectProperty
,
that would otherwise be implemented as a SimpleObjectProperty
,
styleable by CSS.javafx.beans.property.SimpleObjectProperty
,
CssMetaData
,
StyleableProperty
,
StyleableObjectProperty
Modifier and Type | Field and Description |
---|---|
private java.lang.Object |
bean |
private CssMetaData<? extends Styleable,T> |
cssMetaData |
private static java.lang.Object |
DEFAULT_BEAN |
private static java.lang.String |
DEFAULT_NAME |
private java.lang.String |
name |
Constructor and Description |
---|
SimpleStyleableObjectProperty(CssMetaData<? extends Styleable,T> cssMetaData)
The constructor of the
SimpleStyleableObjectProperty . |
SimpleStyleableObjectProperty(CssMetaData<? extends Styleable,T> cssMetaData,
java.lang.Object bean,
java.lang.String name)
The constructor of the
SimpleStyleableObjectProperty . |
SimpleStyleableObjectProperty(CssMetaData<? extends Styleable,T> cssMetaData,
java.lang.Object bean,
java.lang.String name,
T initialValue)
The constructor of the
SimpleStyleableObjectProperty . |
SimpleStyleableObjectProperty(CssMetaData<? extends Styleable,T> cssMetaData,
T initialValue)
The constructor of the
SimpleStyleableObjectProperty . |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getBean() |
CssMetaData<? extends Styleable,T> |
getCssMetaData()
Reflect back the CssMetaData that corresponds to this
javafx.beans.property.StyleableProperty |
java.lang.String |
getName() |
applyStyle, bind, getStyleOrigin, set
private static final java.lang.Object DEFAULT_BEAN
private static final java.lang.String DEFAULT_NAME
private final java.lang.Object bean
private final java.lang.String name
private final CssMetaData<? extends Styleable,T> cssMetaData
public SimpleStyleableObjectProperty(CssMetaData<? extends Styleable,T> cssMetaData)
SimpleStyleableObjectProperty
.cssMetaData
- the CssMetaData associated with this StyleableProperty
public SimpleStyleableObjectProperty(CssMetaData<? extends Styleable,T> cssMetaData, T initialValue)
SimpleStyleableObjectProperty
.cssMetaData
- the CssMetaData associated with this StyleableProperty
initialValue
- the initial value of the wrapped Object
public SimpleStyleableObjectProperty(CssMetaData<? extends Styleable,T> cssMetaData, java.lang.Object bean, java.lang.String name)
SimpleStyleableObjectProperty
.cssMetaData
- the CssMetaData associated with this StyleableProperty
bean
- the bean of this ObjectProperty
name
- the name of this ObjectProperty
public SimpleStyleableObjectProperty(CssMetaData<? extends Styleable,T> cssMetaData, java.lang.Object bean, java.lang.String name, T initialValue)
SimpleStyleableObjectProperty
.cssMetaData
- the CssMetaData associated with this StyleableProperty
bean
- the bean of this ObjectProperty
name
- the name of this ObjectProperty
initialValue
- the initial value of the wrapped Object
public java.lang.Object getBean()
public java.lang.String getName()
public final CssMetaData<? extends Styleable,T> getCssMetaData()
javafx.beans.property.StyleableProperty