public class TreeColumnViewerLabelProvider extends ColumnLabelProvider
Constructor and Description |
---|
TreeColumnViewerLabelProvider(IBaseLabelProvider labelProvider)
Create a new instance of the receiver with the supplied labelProvider.
|
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.
|
ITreePathLabelProvider |
getTreePathProvider()
Return the ITreePathLabelProvider for the receiver.
|
void |
setProviders(Object provider)
Set the any providers for the receiver that can be adapted from provider.
|
void |
update(ViewerCell cell)
Update the label for cell.
|
void |
updateLabel(ViewerLabel label,
TreePath elementPath)
Update the label for the element with TreePath.
|
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 TreeColumnViewerLabelProvider(IBaseLabelProvider labelProvider)
labelProvider
- public void updateLabel(ViewerLabel label, TreePath elementPath)
label
- elementPath
- public void setProviders(Object provider)
provider
- Object
public ITreePathLabelProvider getTreePathProvider()
public void update(ViewerCell cell)
CellLabelProvider
cell
- ViewerCell
public Font getFont(Object element)
IFontProvider
getFont
in interface IFontProvider
getFont
in class ColumnLabelProvider
element
- the elementnull
to use the default fontpublic Color getBackground(Object element)
IColorProvider
getBackground
in interface IColorProvider
getBackground
in class ColumnLabelProvider
element
- the elementnull
to use the default background colorpublic String getText(Object element)
ILabelProvider
getText
in interface ILabelProvider
getText
in class ColumnLabelProvider
element
- the element for which to provide the label textnull
if there is no text label for the given objectpublic Image getImage(Object element)
ILabelProvider
getImage
in interface ILabelProvider
getImage
in class ColumnLabelProvider
element
- the element for which to provide the label imagenull
if there is no image for the given objectpublic Color getForeground(Object element)
IColorProvider
getForeground
in interface IColorProvider
getForeground
in class ColumnLabelProvider
element
- the elementnull
to use the default foreground color
Copyright (c) 2000, 2013 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.