@groovy.transform.CompileStatic final class UiTableSpecifier extends java.lang.Object
Class for creating table. Those tables could be used with a filter.
A simple table is created with: BlockSpec.table
Type | Name and description |
---|---|
groovy.lang.Closure |
closure |
Constructor and description |
---|
UiTableSpecifier
() |
Type Params | Return Type | Name and description |
---|---|---|
|
UiTableSpecifier |
ui(groovy.lang.Closure closure) Describe the table to display with an added column with select input per line. |
|
void |
visitTable(IUiTableVisitor tableVisitor) Allow to visit the table. |
|
void |
visitTableWithNoFilter(IUiTableVisitor tableVisitor) |
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() |
Describe the table to display with an added column with select input per line. You must add the object to each row, like in the code sample below:
row o, {
rowColumn {
rowField o.dateCreated
rowField o.lastUpdated
}
}
You also need a table footer to call an action on the selection:
row {
rowColumn 4, {
footerButton("Merge", Bp2Controller.&mergeValuesSave as MethodClosure, valueToMerge.id)
}
}
See TableSpec for more information aClass
- Class of the object displayed in the tableclosure
- The table specificationAllow to visit the table.
Groovy Documentation