Enum SlackFormElementTypes
java.lang.Object
java.lang.Enum<SlackFormElementTypes>
com.hubspot.slack.client.models.dialog.form.SlackFormElementTypes
- All Implemented Interfaces:
Serializable,Comparable<SlackFormElementTypes>
Descriptions from https://api.slack.com/dialogs
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSelect menus are for multiple choice questions, and great for close-ended quantitative questions, such as office locations, priority level, meal preference, etc.Text inputs work well with concise free-form answers and inputs with unestablished bounds, such as names, email addresses, or ticket titles if your form is used for something like a bug tracker.Text Areas are best when the expected answer is long — over 150 characters or so —. -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<SlackFormElementTypes> static SlackFormElementTypeskey()static SlackFormElementTypesReturns the enum constant of this type with the specified name.static SlackFormElementTypes[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
TEXT
Text inputs work well with concise free-form answers and inputs with unestablished bounds, such as names, email addresses, or ticket titles if your form is used for something like a bug tracker. -
TEXTAREA
Text Areas are best when the expected answer is long — over 150 characters or so —. It is best for open-ended and qualitative questions. -
SELECT
Select menus are for multiple choice questions, and great for close-ended quantitative questions, such as office locations, priority level, meal preference, etc.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
get
- Throws:
UnmappedKeyException
-
find
-
key
-