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) |
getImageaddListener, dispose, fireLabelProviderChanged, isLabelProperty, removeListeneraddListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListener, dispose, isLabelProperty, removeListenerpublic 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)
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.