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 DialogElement
public String getName()
getName
in interface DialogElement
public String getType()
select
. It's required.getType
in interface DialogElement
public String getValue()
DialogOption
s.getValue
in interface DialogElement
public String getPlaceholder()
getPlaceholder
in interface DialogElement
public boolean isOptional()
isOptional
in interface DialogElement
public List<DialogOption> getOptions()
public void setLabel(String label)
setLabel
in interface DialogElement
public void setName(String name)
setName
in interface DialogElement
public void setValue(String value)
DialogOption
s.setValue
in interface DialogElement
public void setPlaceholder(String placeholder)
setPlaceholder
in interface DialogElement
public void setOptional(boolean optional)
setOptional
in interface DialogElement
public void setOptions(List<DialogOption> options)
protected boolean canEqual(Object other)
Copyright © 2020. All rights reserved.