public class LookupList
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
LookupList(java.lang.String listTopic) |
Modifier and Type | Method and Description |
---|---|
void |
addItem(LookupItem lutItem)
Add an item to the list
|
java.lang.String |
checkRepeatCodes()
Check for repeated codes
|
LookupItem |
findSpeciesCode(java.lang.String code)
Find the lookup item for a specified code.
|
java.util.Vector<LookupItem> |
getDeletedItems() |
java.util.Vector<LookupItem> |
getList() |
java.lang.String |
getListTopic() |
LookupItem |
getLookupItem(int index)
Get a lookup item as a specified index
|
java.util.Vector<LookupItem> |
getSelectedList() |
int |
indexOfCode(java.lang.String code) |
LookupItem |
removeItem(int lutItemIndex)
Remove an item at a specified index in the list
|
boolean |
removeItem(LookupItem lutItem)
Remove the first occurrence of an item from the list
|
void |
setListTopic(java.lang.String listTopic) |
void |
sortItemsByCode()
Sort the items by the code value in the look up table
(case insensitive)
|
void |
sortItemsById()
Sort the items by the database id value
|
void |
sortItemsByOrder()
Sort the items by the order value in the look up table
|
void |
sortItemsByText()
Sort the items by the text value in the look up table
(case insensitive)
|
public static final long serialVersionUID
public java.util.Vector<LookupItem> getList()
public java.util.Vector<LookupItem> getSelectedList()
public void addItem(LookupItem lutItem)
lutItem
- item to add to the listpublic boolean removeItem(LookupItem lutItem)
lutItem
- item to remove from the listpublic LookupItem removeItem(int lutItemIndex)
lutItemIndex
- index of item to removepublic void sortItemsById()
public void sortItemsByOrder()
public void sortItemsByCode()
public void sortItemsByText()
public void setListTopic(java.lang.String listTopic)
public java.lang.String getListTopic()
public java.lang.String checkRepeatCodes()
public LookupItem findSpeciesCode(java.lang.String code)
code
- given codepublic int indexOfCode(java.lang.String code)
code
- species code.public LookupItem getLookupItem(int index)
index
- index of itempublic java.util.Vector<LookupItem> getDeletedItems()