Enum ColumnType

    • Enum Constant Detail

      • STRING

        public static final ColumnType STRING
        Value is a String
      • NUMBER

        public static final ColumnType NUMBER
        Value is a number
      • INT

        public static final ColumnType INT
        Value is an integer number
      • DATE

        public static final ColumnType DATE
        Value is a date (= Calendar)
      • DIFF

        public static final ColumnType DIFF
        Value is a diff of two values
      • TIMESLOT

        public static final ColumnType TIMESLOT
        Value is the timeslot of a date property
      • SORTABLE

        public static final ColumnType SORTABLE
        Value is labeled with a different property
    • Method Detail

      • values

        public static ColumnType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ColumnType c : ColumnType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ColumnType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getTransferStr

        public String getTransferStr()
        Gets the string representation used for data transfer.
        Returns:
        The string representation used for data transfer
      • getDisplayType

        public DisplayDataType getDisplayType()
        Gets the display type for the column type.
        Returns:
        The display type
      • fromTransferString

        public static ColumnType fromTransferString​(String transferStr)
        Gets a suitable ColumnType for the specified transfer representation.
        Parameters:
        transferStr - The transfer string
        Returns:
        the matching ColumnType for the specified transfer representation