public interface GomIncludeValueProvider<T>
Some input components (e.g. CMS_INPUT_COMBOBOX) support an arbitrary list of values the user can choose from. This value list can be injected by an INCLUDE tag inside the GOM xml:
<CMS_INCLUDE_OPTIONS type="public"> <NAME>public_name</NAME> <PARAMS> <PARAM name="key1">value1</PARAM> <PARAM name="key2">value2</PARAM> </PARAMS> </CMS_INCLUDE_OPTIONS>The paramters are provided to instances of type
Parameterizable
by a
setParameters
-call.This is a basic example |
Modifier and Type | Method and Description |
---|---|
String |
getKey(T value)
Return a unique key for a specific value.
|
Class<T> |
getType()
The generic content type (see
List<T> getValues(UserService) and String getKey(T) ). |
List<T> |
getValues(SpecialistsBroker broker)
Get the list of included values.
|
List<T> |
getValues(UserService userService)
Deprecated.
since 4.2.400 Use
getValues(SpecialistsBroker) instead. |
@NotNull Class<T> getType()
List<T> getValues(UserService)
and String getKey(T)
).@Deprecated @NotNull List<T> getValues(@NotNull UserService userService)
getValues(SpecialistsBroker)
instead.userService
- @NotNull List<T> getValues(@NotNull SpecialistsBroker broker)
broker
- The broker providing environment access.@NotNull String getKey(@NotNull T value)
value
- a value from getValues(..)
Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500