Interface SelectOption.SelectOptionEnum
-
- All Known Implementing Classes:
GenerateTemplateAction.GenerationType
- Enclosing class:
- SelectOption
public static interface SelectOption.SelectOptionEnum
An enum interface used as a method for defining a finite list ofSelectOption
.For example, here is how you might use this enum for a list of size options:
@AllArgsConstructor public enum SizeOptionEnum implements SelectOption.SelectOptionEnum { SMALL("sizes.small"), MEDIUM("sizes.medium"), LARGE("sizes.large"); private String label; @Override @NonNull public String label() { return label; } public static List
toOptions() { return SelectOption.fromEnums(values()); } }
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default String
color()
String
label()
String
name()
-