Top Description Inners Constructors Methods
javafx.css.converter

public final Class BooleanConverter

extends StyleConverter<String, Boolean>
Class Inheritance
Imports
javafx.css.ParsedValue, .StyleConverter, javafx.scene.text.Font

Converter to convert a String to a Boolean.
Since
9

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Boolean
convert(ParsedValue<String, Boolean>
The ParsedValue to convert
value
,
Font
The Font to use when converting a relative value.
not_used
)

Overrides javafx.css.StyleConverter.convert.

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

public static StyleConverter<String, Boolean>

Returns:

the BooleanConverter instance
getInstance
()

Get the BooleanConverter instance.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from javafx.css.StyleConverter:
cacheValueclearCacheconvertgetBooleanConvertergetCachedValuegetColorConvertergetDurationConvertergetEffectConvertergetEnumConvertergetFontConvertergetInsetsConvertergetPaintConvertergetSizeConvertergetStringConvertergetUrlConverterreadBinarywriteBinary

Constructor Detail

BooleanConverterback to summary
private BooleanConverter()

Method Detail

convertback to summary
public Boolean convert(ParsedValue<String, Boolean> value, Font not_used)

Overrides javafx.css.StyleConverter.convert.

Doc from javafx.css.StyleConverter.convert.

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

Parameters
value:ParsedValue<String, Boolean>

The ParsedValue to convert

not_used:Font

The Font to use when converting a relative value.

Returns:Boolean

the converted target property type

Annotations
@Override
getInstanceback to summary
public static StyleConverter<String, Boolean> getInstance()

Get the BooleanConverter instance.

Returns:StyleConverter<String, Boolean>

the BooleanConverter 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.

Returns:String

a string representation of the object

Annotations
@Override
javafx.css.converter back to summary

private Class BooleanConverter.Holder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv static final BooleanConverter

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
pack-priv static final BooleanConverter INSTANCE

Constructor Detail

Holderback to summary
private Holder()