Class FormDef.Section
java.lang.Object
org.apache.juneau.console.widgets.FormDef.Section
- Enclosing class:
- FormDef
One labelled group of inputs inside a sectioned form: the multi-page dialog shape.
The client paints an ordered list of these as a ribbon-format strip above the form body, one visible pane at a time. Switching sections is visibility only — nothing is refetched and nothing is re-created, which is why a value typed into one section survives a trip through another, and why an inline validation error stays attached to the control that owns it rather than to whichever section happens to be showing.
A sectioned form is not a stack of dialogs. The strip opens no layer of its own, so a sectioned dialog consumes exactly one entry of the runtime's modal-depth budget, the same as a flat one.
- Since:
- 10.0.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfield(FormDef.Input value) Adds one typed input to this section.static FormDef.SectionCreates an empty section (addfields).
-
Field Details
-
id
The section's stable id, used as the strip tab's identity. Must not be blank, and must be unique in the form. -
label
The visible tab label, painted withtextContent. Must not be blank. -
fields
This section's typed inputs in display order. Must declare at least one.
-
-
Constructor Details
-
Section
public Section()
-
-
Method Details
-
of
Creates an empty section (addfields).- Parameters:
id- The section's stable id. Must not benull or blank.label- The visible tab label. Must not benull or blank.- Returns:
- A new
FormDef.Section. - Throws:
IllegalArgumentException- Ifidorlabelisnull or blank.
-
field
Adds one typed input to this section.- Parameters:
value- The input. Must not benull .- Returns:
- This object.
- Throws:
IllegalArgumentException- Ifvalueisnull .
-