Annotation for a general preference.
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionOptional bundle for externalized stringName of a method that can be invoked to get a list of available choices.
-
Element Details
-
bundle
String bundleOptional bundle for externalized string- Returns:
- Default:
""
-
type
Class<?> typeType for the property- Returns:
-
value
String valueKey for externalized string that gives the text of the preference- Returns:
-
choiceMethod
String choiceMethodName of a method that can be invoked to get a list of available choices. This is not needed for Enum types, where the choices are already known.The method is expected to be defined in the parent object containing the annotated property field. It should take no parameters.
- Returns:
- Default:
""
-