Class EnumConverter<E extends Enum<E>>
- Type Parameters:
E
- the enum type
Converter to convert a string representation of an
Enum
to an Enum
.- Since:
- 9
-
Nested Class Summary
Nested classes/interfaces declared in class javafx.css.StyleConverter
StyleConverter.StringStore
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic StyleConverter
<?, ?> getInstance
(String ename) Gets anEnumConverter
instance for a given enum name.static StyleConverter
<?, ?> readBinary
(DataInputStream is, String[] strings) Reads binaryStyleConverter
data from a givenDataInputStream
.Methods declared in class javafx.css.StyleConverter
cacheValue, clearCache, convert, convert, getBooleanConverter, getCachedValue, getColorConverter, getDurationConverter, getEffectConverter, getEnumConverter, getFontConverter, getInsetsConverter, getPaintConverter, getSizeConverter, getStringConverter, getUrlConverter, writeBinary
-
Constructor Details
-
EnumConverter
-
-
Method Details
-
readBinary
public static StyleConverter<?,?> readBinary(DataInputStream is, String[] strings) throws IOException Reads binaryStyleConverter
data from a givenDataInputStream
.- Parameters:
is
-DataInputStream
to readStyleConverter
data fromstrings
- string array containing StyleConverter details- Returns:
- a
StyleConverter
from read binary data - Throws:
IOException
- if reading fromDataInputStream
fails
-
getInstance
Gets anEnumConverter
instance for a given enum name.- Parameters:
ename
- enum name- Returns:
- an
EnumConverter
instance for a given enum name.
-