Top Description Inners Constructors Methods
javafx.css.converter

public final Class URLConverter

extends StyleConverter<ParsedValue<V, T>[], String>
Class Inheritance
Imports
javafx.css.ParsedValue, .StyleConverter, javafx.scene.text.Font, com.sun.javafx.logging.PlatformLogger, com.sun.javafx.util.DataURI, java.net.MalformedURLException, .URI, .URISyntaxException, .URL

Converter to convert a parsed value representing URL to a URL string that is resolved relative to the location of the stylesheet. The input value is in the form: url("<path>").
Since
9

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
public static class
URLConverter.SequenceConverter

Converter to convert a sequence of URLs to an array of Strings.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public String
convert(ParsedValue<ParsedValue<V, T>[], String> value, Font font)

Overrides javafx.css.StyleConverter.convert.

Convert from the parsed CSS value to the target property type.

public static StyleConverter<ParsedValue<V, T>[], String>

Returns:

the URLConverter instance
getInstance
()

Gets the URLConverter instance.

private URL
resolve(String stylesheetUrl, String resource)

private URL
resolveRuntimeImport(final URI resourceUri)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from javafx.css.StyleConverter:
cacheValueclearCacheconvertgetBooleanConvertergetCachedValuegetColorConvertergetDurationConvertergetEffectConvertergetEnumConvertergetFontConvertergetInsetsConvertergetPaintConvertergetSizeConvertergetStringConvertergetUrlConverterreadBinarywriteBinary

Constructor Detail

URLConverterback to summary
private URLConverter()

Method Detail

convertback to summary
public String convert(ParsedValue<ParsedValue<V, T>[], String> value, Font font)

Overrides javafx.css.StyleConverter.convert.

Doc from javafx.css.StyleConverter.convert.

Convert from the parsed CSS value to the target property type.

Annotations
@Override
getInstanceback to summary
public static StyleConverter<ParsedValue<V, T>[], String> getInstance()

Gets the URLConverter instance.

Returns:StyleConverter<ParsedValue<V, T>[], String>

the URLConverter instance

resolveback to summary
private URL resolve(String stylesheetUrl, String resource)
resolveRuntimeImportback to summary
private URL resolveRuntimeImport(final URI resourceUri)
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.

Annotations
@Override
javafx.css.converter back to summary

private Class URLConverter.Holder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv static final URLConverter
pack-priv static final URLConverter.SequenceConverter

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
pack-priv static final URLConverter INSTANCE
SEQUENCE_INSTANCEback to summary
pack-priv static final URLConverter.SequenceConverter SEQUENCE_INSTANCE

Constructor Detail

Holderback to summary
private Holder()
javafx.css.converter back to summary

public final Class URLConverter.SequenceConverter

extends StyleConverter<ParsedValue<ParsedValue<V, T>[], String>[], String[]>
Class Inheritance

Converter to convert a sequence of URLs to an array of Strings.
Since
9

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public String[]
convert(ParsedValue<ParsedValue<ParsedValue<V, T>[], String>[], String[]> value, Font font)

Overrides javafx.css.StyleConverter.convert.

Convert from the parsed CSS value to the target property type.

public static URLConverter.SequenceConverter

Returns:

the SequenceConverter instance
getInstance
()

Gets the SequenceConverter instance.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from javafx.css.StyleConverter:
cacheValueclearCacheconvertgetBooleanConvertergetCachedValuegetColorConvertergetDurationConvertergetEffectConvertergetEnumConvertergetFontConvertergetInsetsConvertergetPaintConvertergetSizeConvertergetStringConvertergetUrlConverterreadBinarywriteBinary

Constructor Detail

SequenceConverterback to summary
private SequenceConverter()

Method Detail

convertback to summary
public String[] convert(ParsedValue<ParsedValue<ParsedValue<V, T>[], String>[], String[]> value, Font font)

Overrides javafx.css.StyleConverter.convert.

Doc from javafx.css.StyleConverter.convert.

Convert from the parsed CSS value to the target property type.

Annotations
@Override
getInstanceback to summary
public static URLConverter.SequenceConverter getInstance()

Gets the SequenceConverter instance.

Returns:URLConverter.SequenceConverter

the SequenceConverter instance

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.

Annotations
@Override