Top Description Fields Constructors Methods
javafx.scene.layout

pack-priv Class BorderConverter

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

Converts -fx-border components into a Border.

Field Summary

Modifier and TypeField and Description
private static final BorderConverter

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Border
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(Border
the object
border
)

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

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

private BackgroundRepeat
private BorderRepeat
public static BorderConverter
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from javafx.css.StyleConverter:
cacheValueclearCacheconvertgetBooleanConvertergetCachedValuegetColorConvertergetDurationConvertergetEffectConvertergetEnumConvertergetFontConvertergetInsetsConvertergetPaintConvertergetSizeConvertergetStringConvertergetUrlConverterreadBinarywriteBinary

Field Detail

BORDER_IMAGE_CONVERTERback to summary
private static final BorderConverter BORDER_IMAGE_CONVERTER

Constructor Detail

BorderConverterback to summary
private BorderConverter()

Method Detail

convertback to summary
public Border 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:Border

the converted object

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

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
border:Border

the object

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

a Map of the constituent values

Annotations
@Override
Exceptions
NullPointerException:
if border is null
convertToBackgroundRepeatback to summary
private BackgroundRepeat convertToBackgroundRepeat(BorderRepeat repeat)
convertToBorderRepeatback to summary
private BorderRepeat convertToBorderRepeat(BackgroundRepeat repeat)
getInstanceback to summary
public static BorderConverter getInstance()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override