public class ColumnLabelProvider extends CellLabelProvider implements IFontProvider, IColorProvider, ILabelProvider
TreeViewer and
TableViewer
This classes is intended to be subclassed
| Constructor and Description |
|---|
ColumnLabelProvider() |
| Modifier and Type | Method and Description |
|---|---|
Color |
getBackground(Object element)
Provides a background color for the given element.
|
Font |
getFont(Object element)
Provides a font for the given element.
|
Color |
getForeground(Object element)
Provides a foreground color for 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.
|
void |
update(ViewerCell cell)
Update the label for cell.
|
dispose, getToolTipBackgroundColor, getToolTipDisplayDelayTime, getToolTipFont, getToolTipForegroundColor, getToolTipImage, getToolTipShift, getToolTipStyle, getToolTipText, getToolTipTimeDisplayed, initialize, useNativeToolTipaddListener, dispose, fireLabelProviderChanged, isLabelProperty, removeListeneraddListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListener, dispose, isLabelProperty, removeListenerpublic void update(ViewerCell cell)
CellLabelProviderupdate in class CellLabelProvidercell - ViewerCellpublic Font getFont(Object element)
IFontProvidergetFont in interface IFontProviderelement - the elementnull
to use the default fontpublic Color getBackground(Object element)
IColorProvidergetBackground in interface IColorProviderelement - the elementnull
to use the default background colorpublic Color getForeground(Object element)
IColorProvidergetForeground in interface IColorProviderelement - the elementnull
to use the default foreground colorpublic Image getImage(Object element)
ILabelProvidergetImage in interface ILabelProviderelement - the element for which to provide the label imagenull
if there is no image for the given objectpublic String getText(Object element)
ILabelProvidergetText in interface ILabelProviderelement - the element for which to provide the label textnull
if there is no text label for the given object
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.