|
|||||||||
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.IntegerLookup
public class IntegerLookup
A lookup with String labels and integer codes.
Constructor Summary | |
---|---|
IntegerLookup(int[] codes)
Creates a new instance of this class. |
|
IntegerLookup(int[] codes,
java.lang.String[] labels)
Creates a new instance of this class where the string labels correspond to integer codes. |
Method Summary | |
---|---|
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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IntegerLookup(int[] codes)
codes
- public IntegerLookup(int[] codes, java.lang.String[] labels)
codes
- labels
- Method Detail |
---|
public int size()
ILookup
public java.lang.String getCode(int index)
ILookup
public java.lang.String getLabel(int index)
ILookup
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |