- java.lang.Object
-
- javafx.css.StyleConverter<String,E>
-
- javafx.css.converter.EnumConverter<E>
-
public final class EnumConverter<E extends Enum<E>> extends StyleConverter<String,E>
Converter to convert a string representation of anEnumto anEnum.- Since:
- 9
-
-
Nested Class Summary
-
Nested classes/interfaces declared in class javafx.css.StyleConverter
StyleConverter.StringStore
-
-
Constructor Summary
Constructors Constructor Description EnumConverter(Class<E> enumClass)Creates anEnumConvertorobject.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StyleConverter<?,?>getInstance(String ename)Gets anEnumConverterinstance for a given enum name.static StyleConverter<?,?>readBinary(DataInputStream is, String[] strings)Reads binaryStyleConverterdata 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
-
-
-
-
Method Detail
-
readBinary
public static StyleConverter<?,?> readBinary(DataInputStream is, String[] strings) throws IOException
Reads binaryStyleConverterdata from a givenDataInputStream.- Parameters:
is-DataInputStreamto readStyleConverterdata fromstrings- string array containing StyleConverter details- Returns:
- a
StyleConverterfrom read binary data - Throws:
IOException- if reading fromDataInputStreamfails
-
getInstance
public static StyleConverter<?,?> getInstance(String ename)
Gets anEnumConverterinstance for a given enum name.- Parameters:
ename- enum name- Returns:
- an
EnumConverterinstance for a given enum name.
-
-