public class SimpleListData extends Object implements ListData
| Constructor and Description |
|---|
SimpleListData() |
SimpleListData(String name) |
| Modifier and Type | Method and Description |
|---|---|
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() |
public SimpleListData()
public SimpleListData(String name)
public void clear()
public void add(int id,
String msg)
public String getValue(String id)
ListDatapublic String getValue(int id)
ListDatapublic String getValue(String id, Locale loc)
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.