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

[Groovy] Class TableSpec

    • taack.ui.dsl.table.TableSpec


    • @groovy.transform.CompileStatic
      final class TableSpec
      extends java.lang.Object

      This class allows to draw a table. A table is composed of a header and rows.

      • Methods Summary

          Methods 
          Type Params Return Type Name and description
          void header(groovy.lang.Closure closure)
          Draw the header of the table.
          <T extends GormEntity> final java.lang.Long iterate(TaackFilter<T> taackFilter, groovy.lang.Closure c)
          void row(taack.ui.dsl.common.Style style, groovy.lang.Closure closure)
          Row container
          void rowIndent(groovy.lang.Closure closure)
          Indent rows inside the closure
      • 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

        • <T extends GormEntity> final java.lang.Long iterate(TaackFilter<T> taackFilter, @groovy.lang.DelegatesTo(strategy: Closure.DELEGATE_ONLY, value: RowColumnSpec) groovy.lang.Closure c)

        • void row(taack.ui.dsl.common.Style style, @groovy.lang.DelegatesTo(strategy: Closure.DELEGATE_ONLY, value: RowColumnSpec) groovy.lang.Closure closure)

          Row container

          Parameters:
          currentObject - Mandatory if table is selectable
          style
          closure - Contains columns

        • void rowIndent(@groovy.lang.DelegatesTo(strategy: Closure.DELEGATE_ONLY, value: RowIndentTreeSpec) groovy.lang.Closure closure)

          Indent rows inside the closure

          Parameters:
          Closure - contain the list of TableSpec.row