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, useNativeToolTip
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 void update(ViewerCell cell)
CellLabelProvider
update
in class CellLabelProvider
cell
- ViewerCell
public Font getFont(Object element)
IFontProvider
getFont
in interface IFontProvider
element
- the elementnull
to use the default fontpublic Color getBackground(Object element)
IColorProvider
getBackground
in interface IColorProvider
element
- the elementnull
to use the default background colorpublic Color getForeground(Object element)
IColorProvider
getForeground
in interface IColorProvider
element
- the elementnull
to use the default foreground colorpublic Image getImage(Object element)
ILabelProvider
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)
ILabelProvider
getText
in interface ILabelProvider
element
- the element for which to provide the label textnull
if there is no text label for the given object
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.