@groovy.transform.CompileStatic final class FormSpec extends FormSectionSpec
UiFormSpecifier.ui delegated class.
This class allow to draw a form. A form is composed of sections, field and tabs.
A form is included into a block calling BlockSpec.form.
Should help with autocompletion and static typing validation of the fields of the form that are displayed in the browser.
Modifiers | Name | Description |
---|---|---|
class |
FormSpec.1 |
|
static enum |
FormSpec.Width |
Form sections relative Width |
Type | Name and description |
---|---|
TaackUiEnablerService |
taackUiEnablerService |
Constructor and description |
---|
FormSpec
(IUiFormVisitor formVisitor) |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
formAction(java.lang.String i18n, java.lang.String controller, java.lang.String action, java.lang.Long id, java.util.Map params, boolean isAjax) form action. |
|
void |
formAction(java.lang.String i18n, org.codehaus.groovy.runtime.MethodClosure action, java.lang.Long id, java.util.Map params, boolean isAjax) form action. |
|
void |
formAction(java.lang.String i18n, org.codehaus.groovy.runtime.MethodClosure action, java.lang.Long id, boolean isAjax) form action. |
|
void |
formAction(java.lang.String i18n, org.codehaus.groovy.runtime.MethodClosure action, java.util.Map params, boolean isAjax) form action. |
|
void |
formAction(java.lang.String i18n, org.codehaus.groovy.runtime.MethodClosure action, boolean isAjax) form action. |
|
void |
section(java.lang.String sectionName, BlockSpec.Width width, groovy.lang.Closure closure) Add a section to enclose fields to display. |
|
void |
sectionTab(java.lang.String sectionName, groovy.lang.Closure closure) Add a tabulation to a section tabs. |
|
void |
sectionTabs(BlockSpec.Width width, groovy.lang.Closure closure) sectionTabs(groovy.lang.Closure) container. |
Methods inherited from class | Name |
---|---|
class FormSectionSpec |
col |
class FormAjaxFieldSpec |
ajaxField, ajaxField, ajaxField, ajaxField, ajaxField, comment, field, field, field, field, fieldFromColl, fieldFromMap, hiddenField, hiddenField, reverseField |
form action. The form is POSTed to the target action.
i18n
- label of the buttoncontroller
- controller holding the actionaction
- name of the action in the controllerid
- id paramparams
- additional paramsisAjax
- if true, the action is of ajax kind (either open a modal or updating part of the page, without reloading the page)form action. The form is POSTed to the target action.
i18n
- label of the buttonaction
- methodClosure pointing to the actionid
- id paramparams
- additional paramsisAjax
- if true, the action is of ajax kind (either open a modal or updating part of the page, without reloading the page)form action. The form is POSTed to the target action.
i18n
- label of the buttonaction
- methodClosure pointing to the actionid
- id paramisAjax
- if true, the action is of ajax kind (either open a modal or updating part of the page, without reloading the page)form action. The form is POSTed to the target action.
i18n
- label of the buttonaction
- methodClosure pointing to the actionparams
- additional paramsisAjax
- if true, the action is of ajax kind (either open a modal or updating part of the page, without reloading the page)form action. The form is POSTed to the target action.
i18n
- label of the buttonaction
- methodClosure pointing to the actionisAjax
- if true, the action is of ajax kind (either open a modal or updating part of the page, without reloading the page)Add a section to enclose fields to display. Can be nested.
sectionName
- the label of the sectionwidth
- its relative widthclosure
- Description of the content of this sectionAdd a tabulation to a section tabs. Can only be children of sectionTabs(groovy.lang.Closure).
sectionName
- the label in the tabclosure
- describe the content of the tabulationsectionTabs(groovy.lang.Closure) container.
width
- relative total widthclosure
- list of sectionTab(java.lang.String, groovy.lang.Closure)Groovy Documentation