ColumnHeaderFieldSpec (taack-ui 0.4.0-SNAPSHOT API)
Package: taack.ui.base.table

[Groovy] Class ColumnHeaderFieldSpec

    • taack.ui.base.table.ColumnHeaderFieldSpec


    • @groovy.transform.CompileStatic
      class ColumnHeaderFieldSpec
      extends java.lang.Object

      Base class to define fields in a table header, that will be optionally disposed in columns.

      The header columns can contain simple fieldHeader, not sortable or a sortableFieldHeader which provide a bidirectional sortable field.

      • Methods Summary

          Methods 
          Type Params Return Type Name and description
          void fieldHeader(java.lang.String i18n)
          Simple header with a label
          void fieldHeader(FieldInfo[] fields)
          Simple header with a label
          void groupFieldHeader(java.lang.String i18n, FieldInfo[] fields)
          Add a checkbox, if clicked, the table will group lines.
          void groupFieldHeader(FieldInfo[] fields)
          Add a checkbox, if clicked, the table will group lines.
          void sortableFieldHeader(FieldInfo[] fields)
          Parameters:
          defaultDirection - Default direction when the table is displayed for the first time
          void sortableFieldHeader(java.lang.String i18n, FieldInfo[] fields)
          Parameters:
          i18n
          void sortableFieldHeader(java.lang.String i18n, java.lang.String controller, java.lang.String action, java.util.Map<java.lang.String, ? extends java.lang.Object> params, java.util.Map<java.lang.String, ? extends java.lang.Object> additionalParams)
          Parameters:
          i18n
      • Inherited Methods Summary

          Inherited Methods 
          Methods inherited from class Name
          class java.lang.Object java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
      • Method Detail

        • void fieldHeader(java.lang.String i18n)

          Simple header with a label

          Parameters:
          i18n - The label

        • void fieldHeader(FieldInfo[] fields)

          Simple header with a label

          Parameters:
          i18n - The label

        • void groupFieldHeader(java.lang.String i18n, FieldInfo[] fields)

          Add a checkbox, if clicked, the table will group lines.

          Parameters:
          i18n - Label of the column field
          field - Target field (has to be a direct field of the object)

        • void groupFieldHeader(FieldInfo[] fields)

          Add a checkbox, if clicked, the table will group lines.

          Parameters:
          i18n - Label of the column field
          field - Target field (has to be a direct field of the object)

        • void sortableFieldHeader(FieldInfo[] fields)

          Parameters:
          defaultDirection - Default direction when the table is displayed for the first time
          fields - Target field pointing to the data to sort

        • void sortableFieldHeader(java.lang.String i18n, FieldInfo[] fields)

          @return

          Parameters:
          i18n
          fields
          defaultDirection

        • void sortableFieldHeader(java.lang.String i18n, java.lang.String controller, java.lang.String action, java.util.Map<java.lang.String, ? extends java.lang.Object> params, java.util.Map<java.lang.String, ? extends java.lang.Object> additionalParams)

          Parameters:
          i18n
          controller
          action
          params
          additionalParams