public static interface SelectOption.SelectOptionEnum
SelectOption
.
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 ListtoOptions() { return SelectOption.fromEnums(values()); } }
Modifier and Type | Method and Description |
---|---|
default String |
color() |
String |
label() |
String |
name() |
Copyright © 2021. All rights reserved.