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, useNativeToolTipaddListener, dispose, fireLabelProviderChanged, isLabelProperty, removeListeneraddListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListener, dispose, isLabelProperty, removeListenerpublic TreeColumnViewerLabelProvider(IBaseLabelProvider labelProvider)
labelProvider - public void updateLabel(ViewerLabel label, TreePath elementPath)
label - elementPath - public void setProviders(Object provider)
provider - Objectpublic ITreePathLabelProvider getTreePathProvider()
public void update(ViewerCell cell)
CellLabelProvidercell - ViewerCellpublic Font getFont(Object element)
IFontProvidergetFont in interface IFontProvidergetFont in class ColumnLabelProviderelement - the elementnull
to use the default fontpublic Color getBackground(Object element)
IColorProvidergetBackground in interface IColorProvidergetBackground in class ColumnLabelProviderelement - the elementnull
to use the default background colorpublic String getText(Object element)
ILabelProvidergetText in interface ILabelProvidergetText in class ColumnLabelProviderelement - the element for which to provide the label textnull
if there is no text label for the given objectpublic Image getImage(Object element)
ILabelProvidergetImage in interface ILabelProvidergetImage in class ColumnLabelProviderelement - the element for which to provide the label imagenull
if there is no image for the given objectpublic Color getForeground(Object element)
IColorProvidergetForeground in interface IColorProvidergetForeground in class ColumnLabelProviderelement - the elementnull
to use the default foreground color
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.