com.ibm.commons.iloader.node.lookups.api
Interface ILookup

All Known Implementing Classes:
com.ibm.commons.iloader.node.lookups.api.AbstractLookup, BooleanLookup, ComputedFieldContentTypeLookup, ContentTypeLookup, DataNodeLookup, DesignerDELookup, EnumerationLookup, FilteredLookup, IntegerLookup, InvertedBooleanLookup, ListLookup, SortedLookup, StringLookup

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

size

int size()
Return the number of items in this lookup.


getCode

java.lang.String getCode(int index)
Return the code or model value for this index.


getLabel

java.lang.String getLabel(int index)
Return the label displayed to the user for this index.


getLabelFromCode

java.lang.String getLabelFromCode(java.lang.String code)
Return the label for the given model value code.


getImage

org.eclipse.swt.graphics.Image getImage(int index)
Return the image for the given index.


addLookupListener

void addLookupListener(com.ibm.commons.iloader.node.lookups.api.LookupListener listener)
Add a listener to be notified when the lookup changes.


removeLookupListener

void removeLookupListener(com.ibm.commons.iloader.node.lookups.api.LookupListener listener)
Remove the lookup listener.