|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mentawai.list.I18nListData
public class I18nListData
This class implements a more sophisticated data list then a SimpleListData, with locales and i18n files. Use this class if you want to deal with internationalization and i18n files, in other words, you want a internacionalizable list.
| Constructor Summary | |
|---|---|
I18nListData(String listname)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public I18nListData(String listname)
listname - the list name, must be the same name of the i18n file.ListManager| Method Detail |
|---|
public void add(String id,
String i18nKey)
id - the id valuei18nKey - the i18n key
public String getValue(String id,
Locale loc)
ListData
getValue in interface ListDataid - The id of the list data item.loc - The locale of the list data item.
public String getValue(String id)
ListData
getValue in interface ListDatapublic String getValue(int id)
ListData
getValue in interface ListDataid - The id of the list data item
public String getValue(int id,
Locale loc)
ListData
getValue in interface ListDataid - The id of the list data item.loc - The locale of the list data item.
public List<ListItem> getValues()
ListData
getValues in interface ListDatapublic List<ListItem> getValues(Locale loc)
ListData
getValues in interface ListDataloc - The locale of the ListItems.
public String getName()
ListData
getName in interface ListDatapublic int size()
ListData
size in interface ListDatapublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||