public class DialogSelectElement extends Object implements DialogElement
Use the select element for multiple choice selections allowing users to pick a
single item from a list. True to web roots, this selection is displayed as a dropdown
menu.
| Modifier and Type | Class and Description |
|---|---|
static class |
DialogSelectElement.DialogSelectElementBuilder |
| Constructor and Description |
|---|
DialogSelectElement() |
DialogSelectElement(String label,
String name,
String value,
String placeholder,
boolean optional,
List<DialogOption> options) |
| Modifier and Type | Method and Description |
|---|---|
static DialogSelectElement.DialogSelectElementBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
String |
getLabel()
Label displayed to user.
|
String |
getName()
Name of form element.
|
List<DialogOption> |
getOptions()
Provide up to 100 option element attributes.
|
String |
getPlaceholder()
A string displayed as needed to help guide users in completing the element.
|
String |
getType()
Type of element.
|
String |
getValue()
A default value for this field.
|
int |
hashCode() |
boolean |
isOptional()
Provide true when the form element is not required.
|
void |
setLabel(String label)
Label displayed to user.
|
void |
setName(String name)
Name of form element.
|
void |
setOptional(boolean optional)
Provide true when the form element is not required.
|
void |
setOptions(List<DialogOption> options)
Provide up to 100 option element attributes.
|
void |
setPlaceholder(String placeholder)
A string displayed as needed to help guide users in completing the element.
|
void |
setValue(String value)
A default value for this field.
|
String |
toString() |
public static DialogSelectElement.DialogSelectElementBuilder builder()
public String getLabel()
getLabel in interface DialogElementpublic String getName()
getName in interface DialogElementpublic String getType()
select . It's required.getType in interface DialogElementpublic String getValue()
DialogOptions.getValue in interface DialogElementpublic String getPlaceholder()
getPlaceholder in interface DialogElementpublic boolean isOptional()
isOptional in interface DialogElementpublic List<DialogOption> getOptions()
public void setLabel(String label)
setLabel in interface DialogElementpublic void setName(String name)
setName in interface DialogElementpublic void setValue(String value)
DialogOptions.setValue in interface DialogElementpublic void setPlaceholder(String placeholder)
setPlaceholder in interface DialogElementpublic void setOptional(boolean optional)
setOptional in interface DialogElementpublic void setOptions(List<DialogOption> options)
protected boolean canEqual(Object other)
Copyright © 2020. All rights reserved.