@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.
Type | Name and description |
---|---|
IUiTableVisitor |
tableVisitor |
Constructor and description |
---|
TableSpec
(IUiTableVisitor tableVisitor) |
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 |
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() |
Draw the header of the table. Should only contains ColumnHeaderFieldSpec.label, ColumnHeaderFieldSpec.sortableFieldHeader or ColumnHeaderSpec.column
Closure
- header contentRow container
currentObject
- Mandatory if table is selectableclosure
- Contains columnsIndent rows inside the closure
Closure
- contain the list of TableSpec.rowGroovy Documentation