Create a ViewerLabelProvider for the column at index
Parameters: labelProvider - The labelProvider to convert ViewerLabelProvider
getToolTipBackgroundColor
public Color getToolTipBackgroundColor(Object object)(Code)
Return the background color used for the tool tip
Parameters: object - the Object for which the tool tip is shown the Color used or null if you want to usethe default color SWT.COLOR_INFO_BACKGROUND See Also: SWT.COLOR_INFO_BACKGROUND
getToolTipDisplayDelayTime
public int getToolTipDisplayDelayTime(Object object)(Code)
The time in milliseconds until the tool tip is displayed.
Parameters: object - the Object for which the tool tip is shown time in milliseconds until the tool tip is displayed
Get the
Font used to display the tool tip
Parameters: object - the element for which the tool tip is shown Font or null if the default font is to beused.
getToolTipForegroundColor
public Color getToolTipForegroundColor(Object object)(Code)
The foreground color used to display the the text in the tool tip
Parameters: object - the Object for which the tool tip is shown the Color used or null if you want to usethe default color SWT.COLOR_INFO_FOREGROUND See Also: SWT.COLOR_INFO_FOREGROUND
Return the amount of pixels in x and y direction you want the tool tip to
pop up from the mouse pointer. The default shift is 10px right and 0px
below your mouse cursor. Be aware of the fact that you should at least
position the tool tip 1px right to your mouse cursor else click events
may not get propagated properly.
Parameters: object - the element for which the tool tip is shown Point to shift of the tool tip or null if thedefault shift should be used.
The
SWT style used to create the
CLabel (see there for
supported styles). By default
SWT.SHADOW_NONE is used.
Parameters: object - the element for which the tool tip is shown the style used to create the label See Also: CLabel
Parameters: element - the element for which the tool tip is shown the String or null if there is not text todisplay
getToolTipTimeDisplayed
public int getToolTipTimeDisplayed(Object object)(Code)
The time in milliseconds the tool tip is shown for.
Parameters: object - the Object for which the tool tip is shown time in milliseconds the tool tip is shown for
Update the label for cell.
Parameters: cell - ViewerCell
useNativeToolTip
public boolean useNativeToolTip(Object object)(Code)
Return whether or not to use the native tool tip. If you switch to native
tool tips only the value from
CellLabelProvider.getToolTipText(Object) is used all
other features from custom tool tips are not supported.