Package com.bc.ceres.binding.converters
Class FontConverter
- java.lang.Object
-
- com.bc.ceres.binding.converters.FontConverter
-
-
Field Summary
Fields Modifier and Type Field Description static FontConverterINSTANCE
-
Constructor Summary
Constructors Constructor Description FontConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringformat(Font font)Converts a value of the type returned byConverter.getValueType()to its plain text representation.Class<Font>getValueType()Gets the value type.Fontparse(String text)Converts a value from its plain text representation to a Java object instance of the type returned byConverter.getValueType().
-
-
-
Field Detail
-
INSTANCE
public static final FontConverter INSTANCE
-
-
Method Detail
-
getValueType
public Class<Font> getValueType()
Description copied from interface:ConverterGets the value type.- Specified by:
getValueTypein interfaceConverter<Font>- Returns:
- The value type.
-
parse
public Font parse(String text) throws ConversionException
Description copied from interface:ConverterConverts a value from its plain text representation to a Java object instance of the type returned byConverter.getValueType().- Specified by:
parsein interfaceConverter<Font>- Parameters:
text- The textual representation of the value.- Returns:
- The converted value.
- Throws:
ConversionException- If the conversion fails.
-
format
public String format(Font font)
Description copied from interface:ConverterConverts a value of the type returned byConverter.getValueType()to its plain text representation.
-
-