Class ColumnGroup


  • public class ColumnGroup
    extends java.lang.Object
    Holds a definition of columns that should be grouped together. Columns can either be listed with their full name or defined by their common prefix (prefix mode)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String columnNames
      Names (and order) of the columns in this group.
      java.lang.String displayName
      The name to use in graphical representations of the group
      boolean isPredefined
      True if the group is predefined and should precede other groups in the view
      java.lang.String name
      Name of this group.
      int order
      For groups that are predefined, this is the ranking between them.
    • Constructor Summary

      Constructors 
      Constructor Description
      ColumnGroup​(java.lang.String displayName)  
      ColumnGroup​(java.lang.String name, java.lang.String displayName, java.lang.String columnNames)  
      ColumnGroup​(java.lang.String name, java.lang.String displayName, java.lang.String columnNames, boolean isPredefined, int order)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean contains​(java.lang.String column)  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • name

        public final java.lang.String name
        Name of this group. To be used in meta-data lookup
      • displayName

        public final java.lang.String displayName
        The name to use in graphical representations of the group
      • columnNames

        public final java.lang.String columnNames
        Names (and order) of the columns in this group. This should either be a comma-separated string or a single name ending with a '*' (prefix mode)
      • isPredefined

        public final boolean isPredefined
        True if the group is predefined and should precede other groups in the view
      • order

        public final int order
        For groups that are predefined, this is the ranking between them. The group with the highest number will be rendered first
    • Constructor Detail

      • ColumnGroup

        public ColumnGroup​(java.lang.String displayName)
        Parameters:
        displayName - The name to use in graphical representations of the group
      • ColumnGroup

        public ColumnGroup​(java.lang.String name,
                           java.lang.String displayName,
                           java.lang.String columnNames)
        Parameters:
        name - Name of this group. To be used in meta-data lookup
        displayName - The name to use in graphical representations of the group
        columnNames - Names (and order) of the columns in this group. This should either be a comma-separated string or a single name ending with a '*' (prefix mode)
      • ColumnGroup

        public ColumnGroup​(java.lang.String name,
                           java.lang.String displayName,
                           java.lang.String columnNames,
                           boolean isPredefined,
                           int order)
        Parameters:
        name - Name of this group. To be used in meta-data lookup
        displayName - The name to use in graphical representations of the group
        columnNames - Names (and order) of the columns in this group. This should either be a comma-separated string or a single name ending with a '*' (prefix mode)
        isPredefined - True if the group is predefined and should precede other groups in the view
        order - For groups that are predefined, this is the ranking between them. The group with the highest number will be rendered first
    • Method Detail

      • contains

        public boolean contains​(java.lang.String column)
        Parameters:
        column -
        Returns:
        True if the provided column name exists in the column list for this group. Note! name comparison is case-insensitive.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object