public enum SlackFormElementTypes extends Enum<SlackFormElementTypes>
| Enum Constant and Description |
|---|
SELECT
Select menus are for multiple choice questions, and great for close-ended quantitative questions, such as office locations, priority level, meal preference, etc.
|
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 —.
|
| Modifier and Type | Method and Description |
|---|---|
static Optional<SlackFormElementTypes> |
find(String key) |
static SlackFormElementTypes |
get(String key) |
String |
key() |
static SlackFormElementTypes |
valueOf(String name)
Returns 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.
|
public static final SlackFormElementTypes TEXT
public static final SlackFormElementTypes TEXTAREA
public static final SlackFormElementTypes SELECT
public static SlackFormElementTypes[] values()
for (SlackFormElementTypes c : SlackFormElementTypes.values()) System.out.println(c);
public static SlackFormElementTypes valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static SlackFormElementTypes get(String key) throws UnmappedKeyException
UnmappedKeyExceptionpublic static Optional<SlackFormElementTypes> find(String key)
public String key()
Copyright © 2019. All rights reserved.