Top Description Methods
com.sun.javafx.css

public Interface SubPropertyConverter<T>

Known Direct Implementers
javafx.scene.layout.BackgroundConverter, javafx.scene.layout.BorderConverter
Type Parameters
<T>
the target type
Imports
javafx.css.CssMetaData, .Styleable, java.util.Map

Defines the convert and convertBack operations that enable object decomposition and reconstruction. Note that the following invariant must always be satisfied: convert(convertBack(value)).equals(value)

Method Summary

Modifier and TypeMethod and Description
public T

Returns:

the converted object
convert
(Map<CssMetaData<? extends Styleable, ?>, Object>
the constituent values
values
)

Converts a map of CSS values to the target type.

public Map<CssMetaData<? extends Styleable, ?>, Object>

Returns:

a Map of the constituent values
convertBack
(T
the object
value
)

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

Method Detail

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

Converts a map of CSS values to the target type.

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

the constituent values

Returns:T

the converted object

Exceptions
NullPointerException:
if values is null
convertBackback to summary
public Map<CssMetaData<? extends Styleable, ?>, Object> convertBack(T value)

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:T

the object

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

a Map of the constituent values

Exceptions
NullPointerException:
if value is null