public class ComboBoxLabelProvider extends LabelProvider
ILabelProvider that assists in rendering labels for
ComboBoxPropertyDescriptors. The label for a given
Integer value is the String at the value in
the provided values array.| Constructor and Description |
|---|
ComboBoxLabelProvider(String[] values) |
| Modifier and Type | Method and Description |
|---|---|
String |
getText(Object element)
Returns the
String that maps to the given
Integer offset in the values array. |
String[] |
getValues() |
void |
setValues(String[] values) |
addListener, dispose, fireLabelProviderChanged, getImage, isLabelProperty, removeListeneraddListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectpublic ComboBoxLabelProvider(String[] values)
values - the possible label values that this
ILabelProvider may return.public String[] getValues()
ILabelProvider may return.public void setValues(String[] values)
values - the possible label values that this
ILabelProvider may return.public String getText(Object element)
String that maps to the given
Integer offset in the values array.getText in interface ILabelProvidergetText in class LabelProviderelement - an Integer object whose value is a valid
location within the values array of the receiverString from the provided values array, or the
empty StringILabelProvider.getText(java.lang.Object)Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.