public class TooltipManager extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
TooltipManager()
Default tooltip manager
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearTooltip()
Invoked to dispose the current tooltip when the pointer moves
|
static void |
enableTooltips()
Enables the tooltip manager and default tooltip behavior
|
static void |
enableTooltips(TooltipManager custom)
Enables the tooltip manager with a custom subclass
|
String |
getDialogUIID()
UIID of the tooltip dialog
|
String |
getTextUIID()
UIID of the tooltip text body
|
int |
getTooltipShowDelay()
The time in milliseconds between the pointer stopping and the showing
of the tooltip
|
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.
|
void |
setDialogUIID(String dialogUIID)
UIID of the tooltip dialog
|
void |
setTextUIID(String textUIID)
UIID of the tooltip text body
|
void |
setTooltipShowDelay(int tooltipShowDelay)
The time in milliseconds between the pointer stopping and the 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 static void enableTooltips()
public static void enableTooltips(TooltipManager custom)
custom - customized subclass of this classprotected void clearTooltip()
protected void prepareTooltip(String tip, Component cmp)
tip - the tooltip textcmp - the componentprotected void showTooltip(String tip, Component cmp)
tip - the tooltip textcmp - the componentpublic int getTooltipShowDelay()
public void setTooltipShowDelay(int tooltipShowDelay)
tooltipShowDelay - the tooltipShowDelay to setpublic String getDialogUIID()
public void setDialogUIID(String dialogUIID)
dialogUIID - the dialogUIID to setpublic String getTextUIID()
public void setTextUIID(String textUIID)
textUIID - the textUIID to set