ColumnHeaderFieldSpec (taack-ui 0.5.2-SNAPSHOT API)
Package: taack.ui.dsl.table

[Groovy] Class ColumnHeaderFieldSpec

    • taack.ui.dsl.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 label(java.lang.String i18n)
          Simple header with a label
          void label(FieldInfo[] fields)
          Simple header with a label
          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
      • 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 label(java.lang.String i18n)

          Simple header with a label

          Parameters:
          i18n - The label

        • void label(FieldInfo[] fields)

          Simple header with a label

          Parameters:
          i18n - The label

        • 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