Top Description Fields Constructors Methods
javafx.css

public Class SimpleStyleableObjectProperty<T>

extends StyleableObjectProperty<T>
Class Inheritance
Type Parameters
<T>
the property value type
Imports
javafx.beans.NamedArg, javafx.beans.property.SimpleObjectProperty

This class extends 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.
Since
JavaFX 8.0
See Also
javafx.beans.property.SimpleObjectProperty, CssMetaData, StyleableProperty, StyleableObjectProperty

Field Summary

Modifier and TypeField and Description
private final Object
private final CssMetaData<? extends Styleable, T>
private static final Object
private static final String
private final String

Constructor Summary

AccessConstructor and Description
public
SimpleStyleableObjectProperty(CssMetaData<? extends Styleable, T>
the CssMetaData associated with this StyleableProperty
cssMetaData
)

The constructor of the SimpleStyleableObjectProperty.

public
SimpleStyleableObjectProperty(CssMetaData<? extends Styleable, T>
the CssMetaData associated with this StyleableProperty
cssMetaData
,
T
the initial value of the wrapped Object
initialValue
)

The constructor of the SimpleStyleableObjectProperty.

public
SimpleStyleableObjectProperty(CssMetaData<? extends Styleable, T>
the CssMetaData associated with this StyleableProperty
cssMetaData
,
Object
the bean of this ObjectProperty
bean
,
String
the name of this ObjectProperty
name
)

The constructor of the SimpleStyleableObjectProperty.

public
SimpleStyleableObjectProperty(CssMetaData<? extends Styleable, T>
the CssMetaData associated with this StyleableProperty
cssMetaData
,
Object
the bean of this ObjectProperty
bean
,
String
the name of this ObjectProperty
name
,
T
the initial value of the wrapped Object
initialValue
)

The constructor of the SimpleStyleableObjectProperty.

Method Summary

Modifier and TypeMethod and Description
public Object
getBean()

Implements javafx.beans.property.ReadOnlyProperty.getBean.

Returns the Object that contains this property.

public final CssMetaData<? extends Styleable, T>
getCssMetaData()

Implements javafx.css.StyleableProperty.getCssMetaData.

Reflect back the CssMetaData that corresponds to this javafx.beans.property.StyleableProperty

public String
getName()

Implements javafx.beans.property.ReadOnlyProperty.getName.

Returns the name of this property.

Inherited from javafx.css.StyleableObjectProperty:
applyStylebindgetStyleOriginset

Field Detail

beanback to summary
private final Object bean
cssMetaDataback to summary
private final CssMetaData<? extends Styleable, T> cssMetaData
DEFAULT_BEANback to summary
private static final Object DEFAULT_BEAN
DEFAULT_NAMEback to summary
private static final String DEFAULT_NAME
nameback to summary
private final String name

Constructor Detail

SimpleStyleableObjectPropertyback to summary
public SimpleStyleableObjectProperty(CssMetaData<? extends Styleable, T> cssMetaData)

The constructor of the SimpleStyleableObjectProperty.

Parameters
cssMetaData:CssMetaData<? extends Styleable, T>

the CssMetaData associated with this StyleableProperty

SimpleStyleableObjectPropertyback to summary
public SimpleStyleableObjectProperty(CssMetaData<? extends Styleable, T> cssMetaData, T initialValue)

The constructor of the SimpleStyleableObjectProperty.

Parameters
cssMetaData:CssMetaData<? extends Styleable, T>

the CssMetaData associated with this StyleableProperty

initialValue:T

the initial value of the wrapped Object

SimpleStyleableObjectPropertyback to summary
public SimpleStyleableObjectProperty(CssMetaData<? extends Styleable, T> cssMetaData, Object bean, String name)

The constructor of the SimpleStyleableObjectProperty.

Parameters
cssMetaData:CssMetaData<? extends Styleable, T>

the CssMetaData associated with this StyleableProperty

bean:Object

the bean of this ObjectProperty

name:String

the name of this ObjectProperty

SimpleStyleableObjectPropertyback to summary
public SimpleStyleableObjectProperty(CssMetaData<? extends Styleable, T> cssMetaData, Object bean, String name, T initialValue)

The constructor of the SimpleStyleableObjectProperty.

Parameters
cssMetaData:CssMetaData<? extends Styleable, T>

the CssMetaData associated with this StyleableProperty

bean:Object

the bean of this ObjectProperty

name:String

the name of this ObjectProperty

initialValue:T

the initial value of the wrapped Object

Method Detail

getBeanback to summary
public Object getBean()

Implements javafx.beans.property.ReadOnlyProperty.getBean.

Doc from javafx.beans.property.ReadOnlyProperty.getBean.

Returns the Object that contains this property. If this property is not contained in an Object, null is returned.

Returns:Object

the containing Object or null

Annotations
@Override
getCssMetaDataback to summary
public final CssMetaData<? extends Styleable, T> getCssMetaData()

Implements javafx.css.StyleableProperty.getCssMetaData.

Doc from javafx.css.StyleableProperty.getCssMetaData.

Reflect back the CssMetaData that corresponds to this javafx.beans.property.StyleableProperty

Returns:CssMetaData<? extends Styleable, T>

the corresponding CssMetaData

Annotations
@Override
getNameback to summary
public String getName()

Implements javafx.beans.property.ReadOnlyProperty.getName.

Doc from javafx.beans.property.ReadOnlyProperty.getName.

Returns the name of this property. If the property does not have a name, this method returns an empty String.

Returns:String

the name or an empty String

Annotations
@Override