Class ColumnGroup

java.lang.Object
org.gorpipe.querydialogs.factory.ColumnGroup

public class ColumnGroup extends 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 Details

    • name

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

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

      public final 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 Details

    • ColumnGroup

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

      public ColumnGroup(String name, String displayName, 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(String name, String displayName, 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 Details

    • contains

      public boolean contains(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 String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object