public class I18nListData extends Object implements ListData
| Constructor and Description |
|---|
I18nListData(String listname) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String id,
String i18nKey) |
String |
getName()
Returns the name of this list.
|
String |
getValue(int id)
Returns the string value of the list data item with the given id with the default locale.
|
String |
getValue(int id,
Locale loc)
Returns the string value of the list data item with the given id in the given locale.
|
String |
getValue(String id)
Returns the string value for the list data item with the default locale.
|
String |
getValue(String id,
Locale loc)
Returns the string value of the list data item with the given id in the given locale.
|
List<ListItem> |
getValues()
Returns a list of ListItem for the default locale.
|
List<ListItem> |
getValues(Locale loc)
Returns a list of ListItem in the given locale.
|
int |
size()
Returns the size of this list.
|
String |
toString() |
public I18nListData(String listname)
listname - the list name, must be the same name of the i18n file.ListManagerpublic String getValue(String id, Locale loc)
ListDatapublic String getValue(String id)
ListDatapublic String getValue(int id)
ListDatapublic String getValue(int id, Locale loc)
ListDatapublic List<ListItem> getValues()
ListDatapublic List<ListItem> getValues(Locale loc)
ListDatapublic String getName()
ListDatapublic int size()
ListDataCopyright © 2015. All Rights Reserved.