Package com.mendix.webui.reporting
Class ColumnType
java.lang.Object
com.mendix.webui.reporting.ColumnType
Defines the type of a column in a report.
-
Constructor Summary
ConstructorDescriptionColumnType
(IMetaPrimitive metaPrimitive) Creates a report column type based on a meta-primitive.ColumnType
(IMetaPrimitive.PrimitiveType primitiveType) Creates a report column type for a primitive type-primitive.ColumnType
(DateTimeFormat dateTimeFormat) Creates a report column type for a date/time type with the specified format.ColumnType
(EnumType enumType) Creates a report column type for an enumeration.ColumnType
(Class<?> typeClass) Creates a report column type based on a Java type. -
Method Summary
Modifier and TypeMethodDescriptionReturns the date/time format of this column type, if it is defined.Returns the enumeration type of this column type, if it is an enumeraiuon.Returns the meta-primitive of the column type, if defined.Returns the primitive type of the column type.
-
Constructor Details
-
ColumnType
Creates a report column type based on a meta-primitive.- Parameters:
metaPrimitive
- the meta-primitive to get the column type from
-
ColumnType
Creates a report column type for a primitive type-primitive.- Parameters:
primitiveType
- the type to use
-
ColumnType
Creates a report column type for an enumeration.- Parameters:
enumType
- the enumeration type to use
-
ColumnType
Creates a report column type for a date/time type with the specified format.- Parameters:
dateTimeFormat
- the date/time format to use
-
ColumnType
Creates a report column type based on a Java type.- Parameters:
typeClass
- the Java type to analyze
-
-
Method Details
-
getMetaPrimitive
Returns the meta-primitive of the column type, if defined.- Returns:
- the meta-primitive if it is defined; null otherwise
-
getPrimitiveType
Returns the primitive type of the column type.- Returns:
- the primitive type
-
getEnumType
Returns the enumeration type of this column type, if it is an enumeraiuon.- Returns:
- the enumeration type if it is an enumeration; null otherwise
-
getColumnFormat
Returns the date/time format of this column type, if it is defined.- Returns:
- the date/time format if it is defined; null otherwise
-