com.ibm.commons.swt.controls.custom
Class CustomTooltip

java.lang.Object
  extended by com.ibm.commons.swt.controls.custom.CustomTooltip
Direct Known Subclasses:
SimpleTooltip

public abstract class CustomTooltip
extends java.lang.Object

A custom abstract tooltip control. Creates a shell into which a tooltip is placed.


Constructor Summary
CustomTooltip(java.lang.String id)
           
 
Method Summary
protected  void create(org.eclipse.swt.widgets.Control parentControl, org.eclipse.swt.graphics.Point pt)
           
protected abstract  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).
 void dispose()
           
 java.lang.String getId()
           
 org.eclipse.swt.widgets.Shell getShell()
           
 void setId(java.lang.String id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomTooltip

public CustomTooltip(java.lang.String id)
Method Detail

create

protected void create(org.eclipse.swt.widgets.Control parentControl,
                      org.eclipse.swt.graphics.Point pt)

getShell

public org.eclipse.swt.widgets.Shell getShell()

dispose

public void dispose()

getId

public java.lang.String getId()

setId

public void setId(java.lang.String id)

createTooltipPart

protected abstract 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).

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