public class FormData extends Object
Form
,
FormElement
Modifier and Type | Class and Description |
---|---|
static class |
FormData.FormDataMode
Defines when to display the
FormData . |
Modifier and Type | Field and Description |
---|---|
protected List<FormElement> |
elements |
Modifier and Type | Method and Description |
---|---|
FormElement |
addFormElement()
Adds a new
FormElement to this FormData and returns it. |
FormGroup |
addFormGroup()
|
List<FormElement> |
getElements()
|
Form |
getForm() |
FormData.FormDataMode |
getMode()
Returns the
FormData.FormDataMode for this FormData . |
boolean |
hasErrors() |
void |
setForm(Form form) |
void |
setMode(FormData.FormDataMode mode)
Sets the
FormData.FormDataMode for this FormData . |
void |
setMode(String mode)
|
protected List<FormElement> elements
public FormData.FormDataMode getMode()
FormData.FormDataMode
for this FormData
.FormData.FormDataMode
public void setMode(FormData.FormDataMode mode)
FormData.FormDataMode
for this FormData
.mode
- the FormData.FormDataMode
public void setMode(String mode)
mode
- a String
IllegalArgumentException
- if the String
does not represent a valid FormData.FormDataMode
public FormElement addFormElement()
FormElement
to this FormData
and returns it.FormElement
FormElement
public List<FormElement> getElements()
List
containing all FormElement
s of this FormData
. This not only
includes the FormElement
s added via addFormElement()
, but also those FormElement
s of the
FormGroup
s added via addFormGroup()
.List
of FormElement
spublic boolean hasErrors()
public Form getForm()
public void setForm(Form form)
Copyright © 2011–2019 aiticon GmbH. All rights reserved.