|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mentawai.list.SimpleListData
public class SimpleListData
This class implements the simplest possible data list, with no locales or i18n files. Use this class if you don't want to deal with internationalization and i18n files, in other words, you just want a list.
| Constructor Summary | |
|---|---|
SimpleListData()
|
|
SimpleListData(String name)
|
|
| Method Summary | |
|---|---|
void |
add(Enum e,
String msg)
|
void |
add(int id,
String msg)
|
void |
add(String id,
String msg)
|
void |
clear()
|
static ListData |
getDaysOfTheMonth(String name)
|
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. |
static ListData |
getYears(String name,
int begin,
int end)
|
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 SimpleListData()
public SimpleListData(String name)
| Method Detail |
|---|
public void clear()
public void add(int id,
String msg)
public void add(String id,
String msg)
public void add(Enum e,
String msg)
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(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(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 Objectpublic static ListData getDaysOfTheMonth(String name)
public static ListData getYears(String name,
int begin,
int end)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||