Interface SelectOption.SelectOptionEnum
- All Known Implementing Classes:
GenerateTemplateAction.GenerationType,GenerateTemplateAction.PreferAddTemplateByReference
- Enclosing class:
- SelectOption
public static interface SelectOption.SelectOptionEnum
An enum interface used as a method for defining a finite list of
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 List toOptions() {
return SelectOption.fromEnums(values());
}
}
-
Method Summary