|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.lanl.Utility.InfoList
Contains a list of InfoItems so that a GUI can display the items with labels, with an editing flag and has the necessary data to submit back to a server. Assumes that group numbers are 0..n, sequential; and within a sub group, that sub group numbers are 0..n, sequentail.
| Constructor Summary | |
InfoList()
Default constructor for the class, does the necessary initialization. |
|
| Method Summary | |
void |
addItem(InfoItem anItem)
Update the list by replacing the item if it is already in the list, or adding it. |
InfoItem |
getFirstInfoItem()
Get the first info item in the list. |
InfoItem |
getInfoItem(int groupNum,
int subGroupNum)
Return the InfoItem by groupNum and subGroupNum; null if not there. |
InfoItem |
getInfoItemByUse(java.lang.String inUse)
Look up an item by the itemUse value |
java.util.Vector |
getInfoItemByVisWith(java.lang.String inVisWith)
Look up an item by the itemVisWith value |
java.util.Hashtable |
getInfoItems()
Provide access the the infoItems hash table |
int |
getMaxGroupNum()
Returns the max group num in the list. |
int |
getMaxSubGroupNum(int groupNum)
Returns the max sub group num in the group. |
InfoItem |
getNextInfoItem()
Get the next InfoItem in the list, null if no more. |
void |
printRetValues()
Print the return values on sysout..for debugging |
void |
setRetValuesOfItem(java.lang.String itemKeyToSet,
java.lang.String[] valuesToSet)
Set the value of the item. |
void |
updateItem(InfoItem anItem)
Update the list by replacing the item if it is already in the list, or adding it. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public InfoList()
| Method Detail |
public java.util.Hashtable getInfoItems()
public void updateItem(InfoItem anItem)
anItem - is the item to updatepublic void addItem(InfoItem anItem)
anItem - is the item to update
public void setRetValuesOfItem(java.lang.String itemKeyToSet,
java.lang.String[] valuesToSet)
itemKeyToSet - is the unique key for the item in the listpublic InfoItem getFirstInfoItem()
public InfoItem getNextInfoItem()
public InfoItem getInfoItem(int groupNum,
int subGroupNum)
groupNum - is the group number for the requestpublic InfoItem getInfoItemByUse(java.lang.String inUse)
inUse - is the itemUse value to lookup
public java.util.Vector getInfoItemByVisWith(java.lang.String inVisWith)
inVisWith - is the itemVisWith value to lookup
public int getMaxGroupNum()
public int getMaxSubGroupNum(int groupNum)
public void printRetValues()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||