|
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.OwnerDrawLabelProvider
OwnerDrawLabelProvider is an abstract implementation of a label provider that handles custom draw.
This class is intended to be subclassed by implementors.
| Constructor Summary | |
|---|---|
OwnerDrawLabelProvider()
Create a new instance of the receiver based on a column viewer. |
|
| Method Summary | |
|---|---|
protected void |
erase(Event event,
Object element)
Handle the erase event. |
protected abstract void |
measure(Event event,
Object element)
Handle the measure event. |
protected abstract void |
paint(Event event,
Object element)
Handle the paint event. |
static void |
setUpOwnerDraw(ColumnViewer viewer)
Set up the owner draw callbacks for the viewer. |
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 |
| Constructor Detail |
public OwnerDrawLabelProvider()
| Method Detail |
public static void setUpOwnerDraw(ColumnViewer viewer)
viewer - the viewer the owner draw is set up
protected void erase(Event event,
Object element)
SWT.COLOR_LIST_SELECTION and foregrounds
with SWT.COLOR_LIST_SELECTION_TEXT
event - the erase eventelement - the model objectSWT.EraseItem,
SWT.COLOR_LIST_SELECTION,
SWT.COLOR_LIST_SELECTION_TEXT
protected abstract void paint(Event event,
Object element)
event - the paint eventelement - the model elementSWT.PaintItem
protected abstract void measure(Event event,
Object element)
event - the measure eventelement - the model elementSWT.MeasureItempublic void update(ViewerCell cell)
CellLabelProvider
update in class CellLabelProvidercell - ViewerCell
|
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.