public class SimpleStyleableObjectProperty<T> extends StyleableObjectProperty<T>
SimpleObjectProperty
and provides a full
implementation of a StyleableProperty
.
This class is used to make a ObjectProperty
,
that would otherwise be implemented as a SimpleObjectProperty
,
style‑able by CSS.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()
Returns the
Object that contains this property. |
CssMetaData<? extends Styleable,T> |
getCssMetaData()
Reflect back the CssMetaData that corresponds to this
javafx.beans.property.StyleableProperty |
java.lang.String |
getName()
Returns the name of this property.
|
applyStyle, bind, getStyleOrigin, set
addListener, addListener, fireValueChangedEvent, get, invalidated, isBound, removeListener, removeListener, toString, unbind
bindBidirectional, setValue, unbindBidirectional
asString, asString, asString, getValue, isEqualTo, isEqualTo, isNotEqualTo, isNotEqualTo, isNotNull, isNull, objectExpression
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getValue, setValue
getValue
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()
Object
that contains this property. If this property
is not contained in an Object
, null
is returned.Object
or null
public java.lang.String getName()
String
.String
public final CssMetaData<? extends Styleable,T> getCssMetaData()
javafx.beans.property.StyleableProperty