Package org.apache.tapestry5.util
Class EnumSelectModel
java.lang.Object
org.apache.tapestry5.util.AbstractSelectModel
org.apache.tapestry5.util.EnumSelectModel
- All Implemented Interfaces:
Serializable
,SelectModel
A basic select model for a particular Enum type. The labels for each Enum are drawn from the Enum instance name and
the provided message catalog:
- As key ClassName.name if present. The class name excludes the package portion. Ex: "ElementType.LOCAL_VARIABLE"
- As key name if present, i.e., "LOCAL_VARIABLE".
- As a user-presentable version of the name, i.e., "Local Variable".
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEnumSelectModel
(Class<T> enumClass, Messages messages) EnumSelectModel
(Class<T> enumClass, Messages messages, T[] values) -
Method Summary
Modifier and TypeMethodDescriptionReturns null.Returns the option groups created in the constructor.Methods inherited from class org.apache.tapestry5.util.AbstractSelectModel
visit
-
Constructor Details
-
EnumSelectModel
-
EnumSelectModel
-
-
Method Details
-
getOptionGroups
Returns null.- Specified by:
getOptionGroups
in interfaceSelectModel
- Returns:
- the groups, or null
-
getOptions
Returns the option groups created in the constructor.- Specified by:
getOptions
in interfaceSelectModel
- Returns:
- the ungrouped options, or null
-