public class ModalFormBuilder
extends java.lang.Object
| Constructor and Description |
|---|
ModalFormBuilder() |
| Modifier and Type | Method and Description |
|---|---|
ModalForm |
build() |
ModalFormBuilder |
button1(java.lang.String button1)
Set the text of the first button.
|
ModalFormBuilder |
button2(java.lang.String button2)
Set the text of the second button.
|
ModalFormBuilder |
buttons(java.lang.String button1,
java.lang.String button2)
Set the text of both buttons.
|
ModalFormBuilder |
text(java.lang.String text)
Set the text of the form.
|
ModalFormBuilder |
title(java.lang.String title)
Set the title of the form.
|
public ModalFormBuilder title(@Nonnull java.lang.String title)
title - The titlepublic ModalFormBuilder text(@Nonnull java.lang.String text)
text - The textpublic ModalFormBuilder button1(@Nonnull java.lang.String button1)
button1 - The text of the first buttonpublic ModalFormBuilder button2(@Nonnull java.lang.String button2)
button2 - The text of the second buttonpublic ModalFormBuilder buttons(@Nonnull java.lang.String button1, @Nonnull java.lang.String button2)
button1 - The text of the first buttonbutton2 - The text of the second buttonpublic ModalForm build()