public class Form extends Object
Type | Property and Description |
---|---|
BooleanProperty |
changed |
BooleanProperty |
persistable |
StringProperty |
title
The title acts as a description for the form.
|
BooleanProperty |
valid
The form acts as a proxy for its contained sections'
changed
and valid properties. |
Modifier and Type | Method and Description |
---|---|
Form |
binding(BindingMode newValue)
Changes the way field values are bound to external properties.
|
BooleanProperty |
changedProperty() |
List<Field> |
getFields() |
List<Group> |
getGroups() |
String |
getTitle()
Gets the value of the property title.
|
boolean |
hasChanged() |
Form |
i18n(TranslationService newValue)
Sets the translation service property of the current form.
|
boolean |
isI18N() |
boolean |
isPersistable()
Gets the value of the property persistable.
|
boolean |
isValid()
Gets the value of the property valid.
|
static Form |
of(Group... sections)
Creates a new form containing the given sections.
|
void |
persist()
Persists the values for all fields contained in this form's groups.
|
BooleanProperty |
persistableProperty() |
void |
reset()
Resets the values for all fields contained in this form's groups.
|
Form |
title(String newValue)
Sets the title property of the current form.
|
StringProperty |
titleProperty()
The title acts as a description for the form.
|
BooleanProperty |
validProperty()
The form acts as a proxy for its contained sections'
changed
and valid properties. |
public BooleanProperty changedProperty
public BooleanProperty validProperty
changed
and valid
properties.isValid()
public BooleanProperty persistableProperty
isPersistable()
public StringProperty titleProperty
TranslationService
is set.getTitle()
public static Form of(Group... sections)
sections
- The sections to be included in the form.Form
.public Form title(String newValue)
newValue
- The new value for the title property. This can be the title
itself or a key that is then used for translation.TranslationService
public Form i18n(TranslationService newValue)
newValue
- The new value for the translation service property.public Form binding(BindingMode newValue)
newValue
- The new mode for handling external bindings.BindingMode
public void persist()
Field::reset
public void reset()
Field::reset
public boolean hasChanged()
public BooleanProperty changedProperty()
public boolean isValid()
public BooleanProperty validProperty()
changed
and valid
properties.isValid()
public boolean isPersistable()
public BooleanProperty persistableProperty()
isPersistable()
public String getTitle()
public StringProperty titleProperty()
TranslationService
is set.getTitle()
public boolean isI18N()
Copyright © 2017. All rights reserved.