Top Description Fields Constructors Methods
org.fxmisc.richtext

public Class CustomCssMetaData<S extends Styleable, V>

extends CssMetaData<S extends Styleable, V>
Class Inheritance
Imports
javafx.css.CssMetaData, .StyleConverter, .Styleable, .StyleableObjectProperty, .StyleableProperty, java.util.function.Function

Reduces boilerplate when creating a custom CssMetaData object

Field Summary

Modifier and TypeField and Description
private final Function<S, StyleableObjectProperty<V>>

Constructor Summary

AccessConstructor and Description
pack-priv
CustomCssMetaData(String property, StyleConverter<?, V> converter, V initialValue, Function<S, StyleableObjectProperty<V>> getStyleableProperty)

Method Summary

Modifier and TypeMethod and Description
public StyleableProperty<V>
getStyleableProperty(S styleable)

Implements abstract javafx.css.CssMetaData.getStyleableProperty.

Return the corresponding StyleableProperty for the given Node.

public boolean
isSettable(S styleable)

Implements abstract javafx.css.CssMetaData.isSettable.

Check to see if the corresponding property on the given Node is settable.

Inherited from javafx.css.CssMetaData:
equalsgetConvertergetInitialValuegetPropertygetSubPropertieshashCodeisInheritssettoString

Field Detail

propertyback to summary
private final Function<S, StyleableObjectProperty<V>> property

Hides javafx.css.CssMetaData.property.

Constructor Detail

CustomCssMetaDataback to summary
pack-priv CustomCssMetaData(String property, StyleConverter<?, V> converter, V initialValue, Function<S, StyleableObjectProperty<V>> getStyleableProperty)

Method Detail

getStyleablePropertyback to summary
public StyleableProperty<V> getStyleableProperty(S styleable)

Implements abstract javafx.css.CssMetaData.getStyleableProperty.

Doc from javafx.css.CssMetaData.getStyleableProperty.

Return the corresponding StyleableProperty for the given Node. Note that calling this method will cause the property to be expanded.

Annotations
@Override
isSettableback to summary
public boolean isSettable(S styleable)

Implements abstract javafx.css.CssMetaData.isSettable.

Doc from javafx.css.CssMetaData.isSettable.

Check to see if the corresponding property on the given Node is settable. This method is called before any styles are looked up for the given property. It is abstract so that the code can check if the property is settable without expanding the property. Generally, the property is settable if it is not null or is not bound.

Annotations
@Override