@java.lang.SuppressWarnings(value: [GroovyAssignabilityCheck, GroovyUnusedDeclaration]) class GridModule extends java.lang.Module
Defines the GEB page elements for a toolkit-based grid used for inline grids.
Usage:// The page definition. static content = { orders { module(new GridModule(field: 'orders')) } } ... assert orderGrid.rows.size() == allOrders.size() for (int i = 0; i < allOrders.size(); i++) { assert orders.cell(1,0).text() == allOrders[i].description assert orders.cell(0, getColumnIndex(Order,'order')).text() == 'M10045' assert orders.headers[7].text() == 'Due Date' assert orders.sortAsc.text() == lookup('order.label') // or sortDesc }Note: The extraction of many cells can be slow.
Constructor and description |
---|
GridModule
() |
Type Params | Return Type | Name and description |
---|---|---|
|
boolean |
isSelected(int row) Determines if the given row is marked as a selected row. |
Methods inherited from class | Name |
---|---|
class java.lang.Module |
java.lang.Module#getName(), java.lang.Module#toString(), java.lang.Module#addReads(java.lang.Module), java.lang.Module#addExports(java.lang.String, java.lang.Module), java.lang.Module#addOpens(java.lang.String, java.lang.Module), java.lang.Module#addUses(java.lang.Class), java.lang.Module#getClassLoader(), java.lang.Module#getDescriptor(), java.lang.Module#isNamed(), java.lang.Module#getResourceAsStream(java.lang.String), java.lang.Module#isOpen(java.lang.String), java.lang.Module#isOpen(java.lang.String, java.lang.Module), java.lang.Module#getAnnotation(java.lang.Class), java.lang.Module#getAnnotations(), java.lang.Module#getDeclaredAnnotations(), java.lang.Module#getPackages(), java.lang.Module#canRead(java.lang.Module), java.lang.Module#canUse(java.lang.Class), java.lang.Module#getLayer(), java.lang.Module#isExported(java.lang.String), java.lang.Module#isExported(java.lang.String, java.lang.Module), java.lang.Module#wait(long, int), java.lang.Module#wait(), java.lang.Module#wait(long), java.lang.Module#equals(java.lang.Object), java.lang.Module#hashCode(), java.lang.Module#getClass(), java.lang.Module#notify(), java.lang.Module#notifyAll(), java.lang.Module#isAnnotationPresent(java.lang.Class), java.lang.Module#getAnnotationsByType(java.lang.Class), java.lang.Module#getDeclaredAnnotation(java.lang.Class), java.lang.Module#getDeclaredAnnotationsByType(java.lang.Class) |
Groovy Documentation