@groovy.transform.CompileStatic final class TableSpec extends java.lang.Object
UiTableSpecifier.ui delegated class
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. |
|
void |
paginate(java.lang.Number max, java.lang.Number offset, java.lang.Number count) Root element, must appear only once or zero time in the table closure |
|
void |
row(java.lang.Object currentObject, taack.ui.base.common.Style style, groovy.lang.Closure closure) Row container |
|
void |
rowGroupFooter(java.lang.String content) Display a row that has the width of the table. |
|
void |
rowGroupHeader(java.lang.Object label, org.codehaus.groovy.runtime.MethodClosure show, java.lang.Long id) Display a row that has the width of the table and contains group as label. |
|
void |
rowIndent(groovy.lang.Closure closure) Indent rows inside the closure |
|
void |
rowTree(boolean hasChildren, groovy.lang.Closure closure) Row container that can be expended as a tree. |
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.fieldHeader, ColumnHeaderFieldSpec.sortableFieldHeader or ColumnHeaderSpec.column
Closure
- header contentRoot element, must appear only once or zero time in the table closure
max
- Max number of row to displayoffset
- Record offsetcount
- Number of object after a query, see TaackSimpleFilterService.listRow container
currentObject
- Mandatory if table is selectableclosure
- Contains columnsDisplay a row that has the width of the table.
Display a row that has the width of the table and contains group as label.
label
- Label to displayshow
- Action that point to a showid
- The ID to pass to the show actionIndent rows inside the closure
Closure
- contain the list of TableSpec.rowRow container that can be expended as a tree. Can be nested.
hasChildren
- If true, the subsequent rows will be collapsed under the current rowclosure
- Contains columnsGroovy Documentation