Class ColumnType

java.lang.Object
com.mendix.webui.reporting.ColumnType

public class ColumnType extends Object
Defines the type of a column in a report.
  • Constructor Details

    • ColumnType

      public ColumnType(IMetaPrimitive metaPrimitive)
      Creates a report column type based on a meta-primitive.
      Parameters:
      metaPrimitive - the meta-primitive to get the column type from
    • ColumnType

      public ColumnType(IMetaPrimitive.PrimitiveType primitiveType)
      Creates a report column type for a primitive type-primitive.
      Parameters:
      primitiveType - the type to use
    • ColumnType

      public ColumnType(EnumType enumType)
      Creates a report column type for an enumeration.
      Parameters:
      enumType - the enumeration type to use
    • ColumnType

      public ColumnType(DateTimeFormat dateTimeFormat)
      Creates a report column type for a date/time type with the specified format.
      Parameters:
      dateTimeFormat - the date/time format to use
    • ColumnType

      public ColumnType(Class<?> typeClass)
      Creates a report column type based on a Java type.
      Parameters:
      typeClass - the Java type to analyze
  • Method Details

    • getMetaPrimitive

      public IMetaPrimitive getMetaPrimitive()
      Returns the meta-primitive of the column type, if defined.
      Returns:
      the meta-primitive if it is defined; null otherwise
    • getPrimitiveType

      public IMetaPrimitive.PrimitiveType getPrimitiveType()
      Returns the primitive type of the column type.
      Returns:
      the primitive type
    • getEnumType

      public EnumType 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

      public DateTimeFormat 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