Top Description Fields Constructors Methods
org.fxmisc.richtext

public Class CustomStyleableProperty<T>

extends StyleableObjectProperty<T>
Class Inheritance
Imports
javafx.css.CssMetaData, .Styleable, .StyleableObjectProperty

Reduces the boilerplate when creating a custom CSS property (i.e. javafx.css.StyleableProperty).

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
CustomStyleableProperty(T initialValue, String name, Object bean, CssMetaData<? extends Styleable, T> cssMetaData)

Method Summary

Modifier and TypeMethod and Description
public Object
getBean()

Implements javafx.beans.property.ReadOnlyProperty.getBean.

Returns the Object that contains this property.

public 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
nameback to summary
private final String name

Constructor Detail

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

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.

Annotations
@Override
getCssMetaDataback to summary
public 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

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.

Annotations
@Override