|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.jface.viewers.BaseLabelProvider
org.eclipse.jface.viewers.CellLabelProvider
org.eclipse.jface.viewers.ColumnLabelProvider
The ColumnLabelProvider is the label provider for viewers
that have column support such as TreeViewer and
TableViewer
This classes is intended to be subclassed
| Constructor Summary | |
|---|---|
ColumnLabelProvider()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.eclipse.jface.viewers.CellLabelProvider |
|---|
getToolTipBackgroundColor, getToolTipDisplayDelayTime, getToolTipFont, getToolTipForegroundColor, getToolTipImage, getToolTipShift, getToolTipStyle, getToolTipText, getToolTipTimeDisplayed, useNativeToolTip |
| Methods inherited from class org.eclipse.jface.viewers.BaseLabelProvider |
|---|
addListener, dispose, fireLabelProviderChanged, isLabelProperty, removeListener |
| Methods inherited from class org.eclipse.core.commands.common.EventManager |
|---|
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.jface.viewers.IBaseLabelProvider |
|---|
addListener, dispose, isLabelProperty, removeListener |
| Constructor Detail |
public ColumnLabelProvider()
| Method Detail |
public void update(ViewerCell cell)
CellLabelProvider
update in class CellLabelProvidercell - ViewerCellpublic Font getFont(Object element)
IFontProvider
getFont in interface IFontProviderelement - the element
null
to use the default fontpublic Color getBackground(Object element)
IColorProvider
getBackground in interface IColorProviderelement - the element
null
to use the default background colorpublic Color getForeground(Object element)
IColorProvider
getForeground in interface IColorProviderelement - the element
null
to use the default foreground colorpublic Image getImage(Object element)
ILabelProvider
getImage in interface ILabelProviderelement - the element for which to provide the label image
null
if there is no image for the given objectpublic String getText(Object element)
ILabelProvider
getText in interface ILabelProviderelement - the element for which to provide the label text
null
if there is no text label for the given object
|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.