|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ILookup
Defines a lookup that can be used in a control that displays multiple selection options, e.g. a combo box. The lookup provides a label/value pair mechanism whereby the label can be displayed in the UI and the 'value' can be stored in the model.
| Method Summary | |
|---|---|
void |
addLookupListener(com.ibm.commons.iloader.node.lookups.api.LookupListener listener)
Add a listener to be notified when the lookup changes. |
java.lang.String |
getCode(int index)
Return the code or model value for this index. |
org.eclipse.swt.graphics.Image |
getImage(int index)
Return the image for the given index. |
java.lang.String |
getLabel(int index)
Return the label displayed to the user for this index. |
java.lang.String |
getLabelFromCode(java.lang.String code)
Return the label for the given model value code. |
void |
removeLookupListener(com.ibm.commons.iloader.node.lookups.api.LookupListener listener)
Remove the lookup listener. |
int |
size()
Return the number of items in this lookup. |
| Method Detail |
|---|
int size()
java.lang.String getCode(int index)
java.lang.String getLabel(int index)
java.lang.String getLabelFromCode(java.lang.String code)
org.eclipse.swt.graphics.Image getImage(int index)
void addLookupListener(com.ibm.commons.iloader.node.lookups.api.LookupListener listener)
void removeLookupListener(com.ibm.commons.iloader.node.lookups.api.LookupListener listener)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||