@ProviderType
@Model(adaptables=org.apache.sling.api.resource.Resource.class,
defaultInjectionStrategy=OPTIONAL,
resourceType="acs-commons/components/utilities/genericlist")
public interface GenericList
| Modifier and Type | Interface and Description |
|---|---|
static interface |
GenericList.Item
A generic item/value pair within a list.
|
| Modifier and Type | Method and Description |
|---|---|
List<GenericList.Item> |
getItems()
Return an ordered list of title/value pairs.
|
String |
lookupTitle(String value)
Get an item's title by its value.
|
String |
lookupTitle(String value,
Locale locale)
Get an item's localized title by its value.
|
@Nonnull @Inject @Named(value="list") List<GenericList.Item> getItems()
@CheckForNull String lookupTitle(String value)
value - the list item's value@CheckForNull String lookupTitle(String value, Locale locale)
value - the list item's valuelocale - the locale for localizationCopyright © 2013–2020 Adobe. All rights reserved.