|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface GomIncludeValueProvider<T>
Hot-spot interface to provide a list of values for input components.
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 |
| Method Summary | |
|---|---|
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 GomIncludeValueProvider.getValues(SpecialistsBroker) instead. |
| Method Detail |
|---|
@NotNull Class<T> getType()
List<T> getValues(UserService) and String getKey(T)).
@Deprecated
@NotNull
List<T> getValues(@NotNull
UserService userService)
GomIncludeValueProvider.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(..)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||