Class ModalDef.Step
java.lang.Object
org.apache.juneau.console.widgets.ModalDef.Step
- Enclosing class:
- ModalDef
@BeanType(properties="id,title,confirmLabel,fields")
public static class ModalDef.Step
extends Object
One page of a
ModalDef.steps wizard: an id, an optional title and confirm-button label, and the typed
display fields painted for that page.- Since:
- 10.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe confirm-button label for this step; omitted when unset (the runtime shows Next, or the final label on the last step).The typed display fields painted for this step, in display order; omitted from the wire when none are declared.The step id, unique within the modal; a script selects a step by it.The dialog title shown while this step is current; omitted from the wire when unset (the modal title stays). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconfirmLabel(String value) Sets the confirm-button label for this step.Adds one typed display field to this step.static ModalDef.StepCreates a step.Sets the dialog title shown while this step is current.
-
Field Details
-
id
The step id, unique within the modal; a script selects a step by it. Must not be blank. -
title
The dialog title shown while this step is current; omitted from the wire when unset (the modal title stays). -
confirmLabel
The confirm-button label for this step; omitted when unset (the runtime shows Next, or the final label on the last step). -
fields
The typed display fields painted for this step, in display order; omitted from the wire when none are declared.
-
-
Constructor Details
-
Step
public Step()
-
-
Method Details
-
of
Creates a step.- Parameters:
id- The step id. Must not benull or blank.- Returns:
- A new
ModalDef.Step. - Throws:
IllegalArgumentException- Ifidisnull or blank.
-
title
Sets the dialog title shown while this step is current.- Parameters:
value- The title. Can benull to unset.- Returns:
- This object.
-
confirmLabel
Sets the confirm-button label for this step.- Parameters:
value- The label. Can benull to unset.- Returns:
- This object.
-
field
Adds one typed display field to this step.- Parameters:
label- The field label. Must not benull or blank.value- The field value. Can benull .- Returns:
- This object.
-