com.ibm.commons.swt.controls.tooltip
Class SimpleTooltip

java.lang.Object
  extended by com.ibm.commons.swt.controls.custom.CustomTooltip
      extended by com.ibm.commons.swt.controls.tooltip.SimpleTooltip

public class SimpleTooltip
extends CustomTooltip

Simple tooltip, displays a single text based tooltip.


Method Summary
static SimpleTooltip create(org.eclipse.swt.widgets.Control parentControl, org.eclipse.swt.graphics.Point pt, java.lang.String text)
          Static factory used for creating SimpleTooltip instances.
protected  void createTooltipPart(org.eclipse.swt.widgets.Composite parent)
          The CustomTooltip class will create a new shell object, and will set its co-ordinates so it appears beside the reference control (provided to the concrete class via constructor).
 
Methods inherited from class com.ibm.commons.swt.controls.custom.CustomTooltip
create, dispose, getId, getShell, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static SimpleTooltip create(org.eclipse.swt.widgets.Control parentControl,
                                   org.eclipse.swt.graphics.Point pt,
                                   java.lang.String text)
Static factory used for creating SimpleTooltip instances.

Parameters:
parentControl - - reference control, also used as a parent control.
pt - - the point where the tooltip should appear.
text - - the text to appear in the tooltip
Returns:

createTooltipPart

protected void createTooltipPart(org.eclipse.swt.widgets.Composite parent)
Description copied from class: CustomTooltip
The CustomTooltip class will create a new shell object, and will set its co-ordinates so it appears beside the reference control (provided to the concrete class via constructor).

Specified by:
createTooltipPart in class CustomTooltip
Parameters:
parent - - A shell created internally by the CustomTooltip CustomTooltip.create(Control, Point) method.