public class StringMapPropLabelProvider extends BaseLabelProvider implements ITableLabelProvider, ILabelProvider
Constructor and Description |
---|
StringMapPropLabelProvider(StringMapProp prop)
The StringMapProp being used for the table.
|
Modifier and Type | Method and Description |
---|---|
Image |
getColumnImage(Object element,
int columnIndex)
Returns the label image for the given column of the given element.
|
String |
getColumnText(Object element,
int columnIndex)
Returns the label text for the given column of the given element.
|
Image |
getImage(Object element)
Returns the image for the label of the given element.
|
String |
getText(Object element)
Returns the text for the label of the given element.
|
addListener, dispose, fireLabelProviderChanged, isLabelProperty, removeListener
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListener, dispose, isLabelProperty, removeListener
public StringMapPropLabelProvider(StringMapProp prop)
public Image getColumnImage(Object element, int columnIndex)
getColumnImage
in interface ITableLabelProvider
element
- the object representing the entire row, or
null
indicating that no input object is set
in the viewercolumnIndex
- the zero-based index of the column in which
the label appearsnull
if there is no image for the
given object at columnIndexpublic String getColumnText(Object element, int columnIndex)
getColumnText
in interface ITableLabelProvider
element
- the object representing the entire row, or
null
indicating that no input object is set
in the viewercolumnIndex
- the zero-based index of the column in which the label appearsnull
if there is no text for the
given object at columnIndexpublic Image getImage(Object element)
getImage
in interface ILabelProvider
element
- the element for which to provide the label imagenull
if there is no image for the given objectpublic String getText(Object element)
getText
in interface ILabelProvider
element
- the element for which to provide the label textnull
if there is no text label for the given objectiizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.