Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.util.viewer
Class BrowserColumnViewerTip

java.lang.Object
  extended by eu.esdihumboldt.hale.ui.util.viewer.BrowserColumnViewerTip
Direct Known Subclasses:
ColumnBrowserTip

public abstract class BrowserColumnViewerTip
extends Object

Enables a tool tip for a ColumnViewer

Author:
Simon Templer
Partner:
01 / Fraunhofer Institute for Computer Graphics Research

Constructor Summary
BrowserColumnViewerTip(org.eclipse.jface.viewers.ColumnViewer viewer, int width, int height, boolean plainText)
          Constructor
 
Method Summary
protected abstract  String getToolTip(Object element, int col, String text)
          Get the tool tip for a viewer cell
protected  void showToolTip(int x, int y)
          Show tooltip for the cell at the given position
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrowserColumnViewerTip

public BrowserColumnViewerTip(org.eclipse.jface.viewers.ColumnViewer viewer,
                              int width,
                              int height,
                              boolean plainText)
Constructor

Parameters:
viewer - the viewer
width - the maximum tip width
height - the maximum tip height
plainText - if the tip text is plain text or HTML
Method Detail

showToolTip

protected void showToolTip(int x,
                           int y)
Show tooltip for the cell at the given position

Parameters:
x - the widget relative x ordinate
y - the widget relative y ordinate

getToolTip

protected abstract String getToolTip(Object element,
                                     int col,
                                     String text)
Get the tool tip for a viewer cell

Parameters:
element - the element defining the viewer row
col - the column index
text - the cell text
Returns:
the tool tip, null if no tool tip shall be shown

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d