|
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
The CellLabelProvider is an abstract implementation of a label provider for structured viewers.
This class is intended to be subclassed
as a concrete implementation
Constructor Summary | |
---|---|
CellLabelProvider()
Create a new instance of the receiver. |
Method Summary | |
---|---|
Color |
getToolTipBackgroundColor(Object object)
Return the background color used for the tool tip |
int |
getToolTipDisplayDelayTime(Object object)
The time in milliseconds until the tool tip is displayed. |
Font |
getToolTipFont(Object object)
Get the Font used to display the tool tip |
Color |
getToolTipForegroundColor(Object object)
The foreground color used to display the the text in the tool tip |
Image |
getToolTipImage(Object object)
Get the image displayed in the tool tip for object. |
Point |
getToolTipShift(Object object)
Return the amount of pixels in x and y direction you want the tool tip to pop up from the mouse pointer. |
int |
getToolTipStyle(Object object)
The SWT style used to create the CLabel (see there for
supported styles). |
String |
getToolTipText(Object element)
Get the text displayed in the tool tip for object. |
int |
getToolTipTimeDisplayed(Object object)
The time in milliseconds the tool tip is shown for. |
abstract void |
update(ViewerCell cell)
Update the label for cell. |
boolean |
useNativeToolTip(Object object)
Return whether or not to use the native tool tip. |
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 CellLabelProvider()
Method Detail |
public Image getToolTipImage(Object object)
If getToolTipText(Object)
and
getToolTipImage(Object)
both return null
the
control is set back to standard behavior
object
- the element for which the tool tip is shown
Image
or null
if there is not image.public String getToolTipText(Object element)
If getToolTipText(Object)
and
getToolTipImage(Object)
both return null
the
control is set back to standard behavior
element
- the element for which the tool tip is shown
String
or null
if there is not text to
displaypublic Color getToolTipBackgroundColor(Object object)
object
- the Object
for which the tool tip is shown
Color
used or null
if you want to use
the default color SWT.COLOR_INFO_BACKGROUND
SWT.COLOR_INFO_BACKGROUND
public Color getToolTipForegroundColor(Object object)
object
- the Object
for which the tool tip is shown
Color
used or null
if you want to use
the default color SWT.COLOR_INFO_FOREGROUND
SWT.COLOR_INFO_FOREGROUND
public Font getToolTipFont(Object object)
Font
used to display the tool tip
object
- the element for which the tool tip is shown
Font
or null
if the default font is to be
used.public Point getToolTipShift(Object object)
object
- the element for which the tool tip is shown
Point
to shift of the tool tip or null
if the
default shift should be used.public boolean useNativeToolTip(Object object)
getToolTipText(Object)
is used all
other features from custom tool tips are not supported.
To reset the control to native behavior you should return
true
from this method and null
from
getToolTipText(Object)
or null
from
getToolTipText(Object)
and getToolTipImage(Object)
at
the same time
object
- the Object
for which the tool tip is shown
true
if native tool tips should be usedpublic int getToolTipTimeDisplayed(Object object)
object
- the Object
for which the tool tip is shown
public int getToolTipDisplayDelayTime(Object object)
object
- the Object
for which the tool tip is shown
public int getToolTipStyle(Object object)
SWT
style used to create the CLabel
(see there for
supported styles). By default SWT.SHADOW_NONE
is used.
object
- the element for which the tool tip is shown
CLabel
public abstract void update(ViewerCell cell)
cell
- 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.