Annotation Type ComponentParameter
-
@Target(PARAMETER) @Retention(RUNTIME) public @interface ComponentParameter
Marks the annotated method parameter as being a dynamic parameter for the givenComponentType. This annotation may be applied to parameters of type:- DomainObject - Will render a select box to choose from a list (a provider is required).
- Enum - Will render a select box with the various enum values (all if no provider is given).
- Boolean - Will render a checkbox
- String - Will render a text field, or a select box if a provider is given.
- Number - Will render a number field, or a select box if a provider is given.
- Author:
- João Carvalho (joao.pedro.carvalho@tecnico.ulisboa.pt)
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Class<? extends ComponentContextProvider<?>>providerReturns the reference to an implementation ofComponentContextProvider, which will be used to give the user a choice of value.booleanrequiredReturns whether the annotated parameter is required.
-
-
-
Element Detail
-
value
String value
Returns the presentation name of this parameter.- Returns:
- The presentation name
-
-
-
provider
Class<? extends ComponentContextProvider<?>> provider
Returns the reference to an implementation ofComponentContextProvider, which will be used to give the user a choice of value. Do not change this value if you wish the user to be free to specify any value.- Returns:
- The provider class
- Default:
- org.fenixedu.cms.domain.component.ComponentContextProvider.EmptyProvider.class
-
-