|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectgeneralDatabase.lookupTables.LookupList
public class LookupList
Handles information for a single list from the look up table
| Nested Class Summary | |
|---|---|
private class |
LookupList.CodeComparatator
|
private class |
LookupList.IdComparatator
|
private class |
LookupList.OrderComparatator
|
private class |
LookupList.TextComparatator
|
| Field Summary | |
|---|---|
private java.util.Vector<LookupItem> |
deletedItems
|
private java.lang.String |
listTopic
|
private java.util.Vector<LookupItem> |
lutList
|
| Constructor Summary | |
|---|---|
LookupList(java.lang.String listTopic)
|
|
| Method Summary | |
|---|---|
void |
addItem(LookupItem lutItem)
Add an item to the list |
java.lang.String |
checkRepeatCodes()
Check for repeated codes |
protected LookupList |
clone()
|
java.util.Vector<LookupItem> |
getDeletedItems()
|
protected java.util.Vector<LookupItem> |
getList()
|
java.lang.String |
getListTopic()
|
protected java.util.Vector<LookupItem> |
getSelectedList()
|
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 |
private void |
setDeleted(LookupItem lutItem)
|
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) |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.Vector<LookupItem> lutList
private java.util.Vector<LookupItem> deletedItems
private java.lang.String listTopic
| Constructor Detail |
|---|
public LookupList(java.lang.String listTopic)
| Method Detail |
|---|
protected java.util.Vector<LookupItem> getList()
protected 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 list
public LookupItem removeItem(int lutItemIndex)
lutItemIndex - index of item to remove
private void setDeleted(LookupItem lutItem)
public void sortItemsById()
public void sortItemsByOrder()
public void sortItemsByCode()
public void sortItemsByText()
public void setListTopic(java.lang.String listTopic)
public java.lang.String getListTopic()
protected LookupList clone()
clone in class java.lang.Objectpublic java.lang.String checkRepeatCodes()
public java.util.Vector<LookupItem> getDeletedItems()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||