public class TooltipManager

  1. Object
  2. TooltipManager
Central management for tooltips, this class can be derived/customized to override the default tooltip behavior.

Constructors

protected TooltipManager()Default tooltip manager

Methods

public static void hideTooltip()Immediately hides any showing or pending tooltip.
public static void enableTooltips()Enables the tooltip manager and default tooltip behavior
public static void enableTooltips(TooltipManager custom)Enables the tooltip manager with a custom subclass
protected void clearTooltip()Invoked to dispose the current tooltip when the pointer moves
protected void prepareTooltip(String tip, Component cmp)Gets ready to show the tooltip, this method implements the delay before the actual showing of the tooltip.
protected void showTooltip(String tip, Component cmp)Shows the actual tooltip, this is invoked when the time for the tooltip elapses.
public int getTooltipShowDelay()The time in milliseconds between the pointer stopping and the showing of the tooltip
public void setTooltipShowDelay(int tooltipShowDelay)The time in milliseconds between the pointer stopping and the showing of the tooltip
public String getDialogUIID()UIID of the tooltip dialog
public void setDialogUIID(String dialogUIID)UIID of the tooltip dialog
public String getTextUIID()UIID of the tooltip text body
public void setTextUIID(String textUIID)UIID of the tooltip text body

Inherited methods

Constructor details

TooltipManager

protected TooltipManager()
Default tooltip manager

Method details

hideTooltip

public static void hideTooltip()
Immediately hides any showing or pending tooltip. Call this before tearing down / rebuilding a Form so a tooltip anchored to a removed component can’t be stranded in the popup layer (a full-size layered pane there would swallow pointer events).

enableTooltips

public static void enableTooltips()
Enables the tooltip manager and default tooltip behavior

enableTooltips

public static void enableTooltips(TooltipManager custom)
Enables the tooltip manager with a custom subclass

Parameters

custom TooltipManager
customized subclass of this class

clearTooltip

protected void clearTooltip()
Invoked to dispose the current tooltip when the pointer moves

prepareTooltip

protected void prepareTooltip(String tip, Component cmp)
Gets ready to show the tooltip, this method implements the delay before the actual showing of the tooltip. It’s invoked internally by the framework

Parameters

tip String
the tooltip text
cmp Component
the component

showTooltip

protected void showTooltip(String tip, Component cmp)
Shows the actual tooltip, this is invoked when the time for the tooltip elapses. It shows the tooltip UI immediately

Parameters

tip String
the tooltip text
cmp Component
the component

getTooltipShowDelay

public int getTooltipShowDelay()
The time in milliseconds between the pointer stopping and the showing of the tooltip

Returns

the tooltipShowDelay

setTooltipShowDelay

public void setTooltipShowDelay(int tooltipShowDelay)
The time in milliseconds between the pointer stopping and the showing of the tooltip

Parameters

tooltipShowDelay int
the tooltipShowDelay to set

getDialogUIID

public String getDialogUIID()
UIID of the tooltip dialog

Returns

the dialogUIID

setDialogUIID

public void setDialogUIID(String dialogUIID)
UIID of the tooltip dialog

Parameters

dialogUIID String
the dialogUIID to set

getTextUIID

public String getTextUIID()
UIID of the tooltip text body

Returns

the textUIID

setTextUIID

public void setTextUIID(String textUIID)
UIID of the tooltip text body

Parameters

textUIID String
the textUIID to set