S
- the type of the styleableT
- the type of the property to be styledpublic class SimpleCssMetaData<S extends javafx.css.Styleable,T>
extends javafx.css.CssMetaData<S,T>
Constructor and Description |
---|
SimpleCssMetaData(java.lang.String property,
javafx.css.StyleConverter<?,T> converter,
java.util.function.Function<? super S,javafx.beans.property.Property<T>> propertyExtractor)
Creates a new simple CSS metadata object.
|
Modifier and Type | Method and Description |
---|---|
javafx.css.StyleableProperty<T> |
getStyleableProperty(S styleable) |
boolean |
isSettable(S styleable) |
public SimpleCssMetaData(java.lang.String property, javafx.css.StyleConverter<?,T> converter, java.util.function.Function<? super S,javafx.beans.property.Property<T>> propertyExtractor)
property
- the CSS property descriptor, eg "-fx-background-color"
converter
- the style converterpropertyExtractor
- the function to use to get the property this metadata should describepublic boolean isSettable(S styleable)