All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ca.bc.europa.awt.ToolTip

java.lang.Object
   |
   +----ca.bc.europa.awt.ToolTip

public synchronized class ToolTip
extends Object
implements MouseListener, Runnable

The ToolTip class allows the programmer to assign info blurbs to components.

The Tool Tip or popup help window appears after a delay. The ToolTip object is a MouseListener that is attached to components. Only one ToolTip need be created per app since only one tip window is required.

The popup window extends Window so unsigned applets will have tool tip windows with the "Warning Applet Window" message tacked on the bottom.

See Also:
MouseListener, Runnable

Constructor Index

 o ToolTip()
Create a ToolTip manager.

Method Index

 o add(Component, String)
Add a new tool tip.
 o finalize()
Stop the ToolTip thread.
 o findFrame(Component)
 o getDelay()
Get the current delay setting in milliseconds.
 o mouseClicked(MouseEvent)
 o mouseEntered(MouseEvent)
 o mouseExited(MouseEvent)
 o mousePressed(MouseEvent)
 o mouseReleased(MouseEvent)
 o remove(Component)
Remove a tool tip.
 o run()
 o setDelay(int)
Set the delay before the tip window appears.

Constructors

 o ToolTip
 public ToolTip()
Create a ToolTip manager.

Methods

 o finalize
 public void finalize()
Stop the ToolTip thread.

Overrides:
finalize in class Object
 o setDelay
 public void setDelay(int i)
Set the delay before the tip window appears.

Parameters:
i - The delay time in milliseconds.
 o getDelay
 public int getDelay()
Get the current delay setting in milliseconds.

 o run
 public synchronized void run()
 o add
 public void add(Component component,
                 String tip)
Add a new tool tip.

Parameters:
component - The component to whom the tip belongs.
tip - The message to display.
 o remove
 public void remove(Component component)
Remove a tool tip.

Parameters:
component - The component for which the tip will be removed.
 o mousePressed
 public void mousePressed(MouseEvent mouseEvent)
 o mouseReleased
 public void mouseReleased(MouseEvent mouseEvent)
 o mouseClicked
 public void mouseClicked(MouseEvent mouseEvent)
 o mouseEntered
 public void mouseEntered(MouseEvent mouseEvent)
 o mouseExited
 public void mouseExited(MouseEvent mouseEvent)
 o findFrame
 public Frame findFrame(Component component)

All Packages  Class Hierarchy  This Package  Previous  Next  Index