Class StaticSelectElement
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionStaticSelectElement
(PlainTextObject placeholder, String actionId, List<OptionObject> options, List<OptionGroupObject> optionGroups, OptionObject initialOption, ConfirmationDialogObject confirm, Boolean focusOnLoad) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
protected boolean
boolean
A confirm object that defines an optional confirmation dialog that appears after a menu item is selected.Indicates whether the element will be set to auto focus within the view object.A single option that exactly matches one of the options within options or option_groups.An array of option group objects.An array of option objects.getType()
int
hashCode()
void
setActionId
(String actionId) void
setConfirm
(ConfirmationDialogObject confirm) A confirm object that defines an optional confirmation dialog that appears after a menu item is selected.void
setFocusOnLoad
(Boolean focusOnLoad) Indicates whether the element will be set to auto focus within the view object.void
setInitialOption
(OptionObject initialOption) A single option that exactly matches one of the options within options or option_groups.void
setOptionGroups
(List<OptionGroupObject> optionGroups) An array of option group objects.void
setOptions
(List<OptionObject> options) An array of option objects.void
setPlaceholder
(PlainTextObject placeholder) toString()
-
Field Details
-
TYPE
- See Also:
-
-
Constructor Details
-
StaticSelectElement
public StaticSelectElement() -
StaticSelectElement
public StaticSelectElement(PlainTextObject placeholder, String actionId, List<OptionObject> options, List<OptionGroupObject> optionGroups, OptionObject initialOption, ConfirmationDialogObject confirm, Boolean focusOnLoad)
-
-
Method Details
-
builder
-
getType
-
getPlaceholder
-
getActionId
-
getOptions
An array of option objects.NOTE: The reason I didn't initialize the List<> fields is because Slack (sometimes) gives errors when it encounters an empty list in the generated JSON. The proper solution if/when you don't want un-initialized fields is to have a Gson type adapter that skips empty lists
-
getOptionGroups
An array of option group objects.NOTE: The reason I didn't initialize the List<> fields is because Slack (sometimes) gives errors when it encounters an empty list in the generated JSON. The proper solution if/when you don't want un-initialized fields is to have a Gson type adapter that skips empty lists
-
getInitialOption
A single option that exactly matches one of the options within options or option_groups. This option will be selected when the menu initially loads. -
getConfirm
A confirm object that defines an optional confirmation dialog that appears after a menu item is selected. -
getFocusOnLoad
Indicates whether the element will be set to auto focus within the view object. Only one element can be set to true. Defaults to false. -
setPlaceholder
-
setActionId
-
setOptions
An array of option objects.NOTE: The reason I didn't initialize the List<> fields is because Slack (sometimes) gives errors when it encounters an empty list in the generated JSON. The proper solution if/when you don't want un-initialized fields is to have a Gson type adapter that skips empty lists
-
setOptionGroups
An array of option group objects.NOTE: The reason I didn't initialize the List<> fields is because Slack (sometimes) gives errors when it encounters an empty list in the generated JSON. The proper solution if/when you don't want un-initialized fields is to have a Gson type adapter that skips empty lists
-
setInitialOption
A single option that exactly matches one of the options within options or option_groups. This option will be selected when the menu initially loads. -
setConfirm
A confirm object that defines an optional confirmation dialog that appears after a menu item is selected. -
setFocusOnLoad
Indicates whether the element will be set to auto focus within the view object. Only one element can be set to true. Defaults to false. -
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-