Skip navigation links
GxColumns

Class GxColumn

Inheritance:
  • Field Detail

    • Field!

      public BBjString Field!

      The field of the row to get the cells data from
      Note: Once the field name is set, it becomes immutable

  • Constructor Detail

    • GxColumn

      public GxColumn(BBjString field!)

      Create a new column definition

      Parameters:
      BBjString field! The field of the row to get the cells data from
    • GxColumn

      public GxColumn(BBjString field!, BBjString label!)

      Create a new column definition

      Parameters:
      BBjString field! The field of the row to get the cells data from
      BBjString label! The name to render in the column header
    • GxColumn

      public GxColumn(BBjString field!, BBjNumber type!)

      Create a new column definition

      Parameters:
      BBjString field! The field of the row to get the cells data from
      BBjNumber type! The field's type
    • GxColumn

      public GxColumn(BBjString field!, BBjString label! , BBjNumber type!)

      Create a new column definition

      Parameters:
      BBjString field! The field of the row to get the cells data from
      BBjString label! The name to render in the column header
      BBjNumber type! The field's type
    • Method Detail

      • getAsJsonObject

        public JsonObject getAsJsonObject()

        Convert the definition to Json Object

      • MENU_TAB_COLUMNS

        public static BBjString MENU_TAB_COLUMNS()
        Returns:
        filterMenuTab
      • MENU_TAB_FILTER

        public static BBjString MENU_TAB_FILTER()
        Returns:
        filterMenuTab
      • MENU_TAB_GENERAL

        public static BBjString MENU_TAB_GENERAL()
        Returns:
        generalMenuTab
      • setField

        public void setField(BBjString field!)

        Throw an error when called because the field becomes immutable after the column's definition creation

      • update

        public void update(HashMap meta!, GxDefaultColumnDefinition defaultDefinition!)

        Update the column definition from a meta map

        Parameters:
        HashMap meta! The meta map
        GxDefaultColumnDefinition defaultDefinition! The default column definition in the grid