class AbstractCreateOrEditPage extends AbstractPage
The general base class for create or edit definition pages tested in the framework. This defines the elements common to all create/edit pages (Toolbar buttons) and tab panels.
Note: These assume the default ID is used for the efCreate/efEdit markers.
| Type | Name and description |
|---|---|
private static java.lang.Object |
contentThe page content available for this page. |
private java.lang.Object |
domainObjectThe first argument used in the 'to' call, if it is a domain object. |
| Constructor and description |
|---|
AbstractCreateOrEditPage
() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
boolean |
checkCreateTitle(java.lang.String domainLookupKey)Checks the create page's title using the given lookup key for the domain class. |
|
boolean |
checkEditTitle(java.lang.String domainLookupKey)Checks the edit page's title using the given lookup key for the domain class. |
|
java.lang.String |
convertToPath(java.lang.Object[] args)Generates the path arguments from the arguments. |
| Methods inherited from class | Name |
|---|---|
class AbstractPage |
getWaitForAjaxOnLoad, lookup, onLoad, waitForCompletion |
The page content available for this page. See above.
The first argument used in the 'to' call, if it is a domain object. This is only supported with the edit pages (in the checkEditTitle method).
Example 'to' page usage with a domain object.
to OrderEditPage, order
Checks the create page's title using the given lookup key for the domain class.
An example title check can be:
static at = {
checkCreateTitle('order.label')
}
@return domainLookupKey - The key to lookup the label for domain object (e.g. 'order.label'). Checks the edit page's title using the given lookup key for the domain class.
Uses the domainObject, if set.
An example title check can be:
static at = {
checkEditTitle('order.label')
}
domainLookupKey - The key to lookup the label for domain object (e.g. 'order.label').Generates the path arguments from the arguments. This sub-class takes a domain object and stores it in the 'domainObject' field and the uses the object's uuid for the URL creation.
args - The 'to' arguments.Groovy Documentation