Predefined Converters

Below you find an overview describing the predefined converters from the Calyxo Forms component. All of them implement the de.odysseus.calyxo.forms.Converter interface and can be found in the de.odysseus.calyxo.forms.convert package.

Name Class Description
bigDecimal BigDecimalConverter Parses and formats objects of type BigDecimal. It has no properties.
bigInteger BigIntegerConverter Parses and formats objects of type BigInteger. Property:
  • radix - The radix of the representation (from 2 to 36). (Default value is 10.)
boolean BooleanConverter Parses and formats objects of type Boolean. Properties:
  • trueString - The string which represents a boolean value of true. (Default value is "true".)
  • falseString - The string which represents a boolean value of false. (Default value is "false".)
  • default - Default value (in case of empty input, defaults to null.)
byte ByteConverter Parses and formats objects of type Byte. Properties:
  • default - Default value (in case of empty input, defaults to null.)
  • groupingUsed - Boolean value determining whether grouping is turned on when formatting the value. (Default value is true.)
calendar CalendarConverter Parses and formats objects of type Calendar. It has no properties.
checkbox BooleanConverter Convenience converter to be used with checkbox inputs. Parses and formats objects of type Boolean. Empty inputs are parsed to false. Properties:
  • trueString - The string which represents a boolean value of true. (The checkbox value, default is "true".)
date DateConverter Parses and formats objects of type Date using a 'short date format'. It has no properties.
double DoubleConverter Parses and formats objects of type Double. Properties:
  • default - Default value (in case of empty input, defaults to null.)
  • groupingUsed - Boolean value determining whether grouping is turned on when formatting the value. (Default value is true.)
  • minimumFractionDigits - Passed through to java.text.NumberFormat.
  • maximumFractionDigits - Passed through to java.text.NumberFormat.
float FloatConverter Parses and formats objects of type Float. Properties:
  • default - Default value (in case of empty input, defaults to null.)
  • groupingUsed - Boolean value determining whether grouping is turned on when formatting the value. (Default value is true.)
  • minimumFractionDigits - Passed through to java.text.NumberFormat.
  • maximumFractionDigits - Passed through to java.text.NumberFormat.
integer IntegerConverter Parses and formats objects of type Integer. Properties:
  • default - Default value (in case of empty input, defaults to null.)
  • groupingUsed - Boolean value determining whether grouping is turned on when formatting the value. (Default value is true.)
list ListModelConverter Parses and formats objects contained in a ListModel. The list model is located via the scope, attribute and property properties. Properties:
  • scope - Attribute scope (Default value is module.)
  • attribute - Attribute name
  • property - Property of the object located by scope and attribute containing the list model (optional).
long LongConverter Parses and formats objects of type Long. Properties:
  • default - Default value (in case of empty input, defaults to null.)
  • groupingUsed - Boolean value determining whether grouping is turned on when formatting the value. (Default value is true.)
short ShortConverter Parses and formats objects of type Short. Properties:
  • default - Default value (in case of empty input, defaults to null.)
  • groupingUsed - Boolean value determining whether grouping is turned on when formatting the value. (Default value is true.)
string StringConverter Parses and formats objects of type String. It can not fail and has one property:
  • default - Default value (in case of empty input, defaults to null.)
time TimeConverter Parses and formats objects of type Date using a 'short time format'. It has no properties.