Top Description Fields Constructors Methods
javafx.scene.layout

pack-priv Class BackgroundConverter

extends StyleConverter<ParsedValue<V, T>[], Background>
implements SubPropertyConverter<Background>
Class Inheritance
All Implemented Interfaces
com.sun.javafx.css.SubPropertyConverter
Imports
com.sun.javafx.css.StyleManager, .SubPropertyConverter, com.sun.javafx.scene.layout.region.RepeatStruct, java.util.List, .Map, javafx.css.CssMetaData, .ParsedValue, .StyleConverter, .Styleable, javafx.geometry.Insets, javafx.scene.image.Image, javafx.scene.paint.Paint

Converts the CSS for -fx-background items into a Background.

Field Summary

Modifier and TypeField and Description
pack-priv static final StyleConverter<ParsedValue<V, T>[], Background>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Background
convert(Map<CssMetaData<? extends Styleable, ?>, Object>
the constituent values
convertedValues
)

Overrides javafx.css.StyleConverter.convert.

Implements com.sun.javafx.css.SubPropertyConverter.convert.

Converts a map of CSS values to the target type.

public Map<CssMetaData<? extends Styleable, ?>, Object>
convertBack(Background
the object
value
)

Implements com.sun.javafx.css.SubPropertyConverter.convertBack.

Converts an object back to a map of its constituent values (deconstruction).

Inherited from javafx.css.StyleConverter:
cacheValueclearCacheconvertgetBooleanConvertergetCachedValuegetColorConvertergetDurationConvertergetEffectConvertergetEnumConvertergetFontConvertergetInsetsConvertergetPaintConvertergetSizeConvertergetStringConvertergetUrlConverterreadBinarywriteBinary

Field Detail

INSTANCEback to summary
pack-priv static final StyleConverter<ParsedValue<V, T>[], Background> INSTANCE

Constructor Detail

BackgroundConverterback to summary
pack-priv BackgroundConverter()

Method Detail

convertback to summary
public Background convert(Map<CssMetaData<? extends Styleable, ?>, Object> convertedValues)

Overrides javafx.css.StyleConverter.convert.

Implements com.sun.javafx.css.SubPropertyConverter.convert.

Doc from com.sun.javafx.css.SubPropertyConverter.convert.

Converts a map of CSS values to the target type.

Parameters
convertedValues:Map<CssMetaData<? extends Styleable, ?>, Object>

the constituent values

Returns:Background

the converted object

Annotations
@Override
Exceptions
NullPointerException:
if convertedValues is null
convertBackback to summary
public Map<CssMetaData<? extends Styleable, ?>, Object> convertBack(Background value)

Implements com.sun.javafx.css.SubPropertyConverter.convertBack.

Doc from com.sun.javafx.css.SubPropertyConverter.convertBack.

Converts an object back to a map of its constituent values (deconstruction). The returned map can be passed into convert(Map) to reconstruct the object.

Parameters
value:Background

the object

Returns:Map<CssMetaData<? extends Styleable, ?>, Object>

a Map of the constituent values

Annotations
@Override
Exceptions
NullPointerException:
if value is null