|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.commons.iloader.node.lookups.api.AbstractLookup com.ibm.commons.iloader.node.lookups.api.StringLookup
public class StringLookup
A String based lookup. All of the values and labels are strings.
Constructor Summary | |
---|---|
StringLookup(java.lang.String[] codes)
Create a StringLookup with identical codes and labels. |
|
StringLookup(java.lang.String[] codes,
java.lang.String[] labels)
Create the StringLookup with the given codes (model values) and associated labels (by shared index). |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Returns true if the object being compared to is a StringLookup and its contents are identical to the contents of the current StringLookup. |
java.lang.String |
getCode(int index)
Return the code or model value for this index. |
java.lang.String |
getLabel(int index)
Return the label displayed to the user for this index. |
int |
size()
Return the number of items in this lookup. |
Methods inherited from class com.ibm.commons.iloader.node.lookups.api.AbstractLookup |
---|
addLookupListener, addNotify, getImage, getLabelFromCode, getLabelFromCodeIgnoreCase, notifyLookupChanged, removeLookupListener, removeNotify |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringLookup(java.lang.String[] codes)
public StringLookup(java.lang.String[] codes, java.lang.String[] labels)
Method Detail |
---|
public int size()
ILookup
public java.lang.String getCode(int index)
ILookup
public java.lang.String getLabel(int index)
ILookup
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- A StringLookup object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |