Class TooltipManager
java.lang.Object
com.codename1.ui.TooltipManager
Central management for tooltips, this class can be derived/customized
to override the default tooltip behavior.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidInvoked to dispose the current tooltip when the pointer movesstatic voidEnables the tooltip manager and default tooltip behaviorstatic voidenableTooltips(TooltipManager custom) Enables the tooltip manager with a custom subclassUIID of the tooltip dialogUIID of the tooltip text bodyintThe time in milliseconds between the pointer stopping and the showing of the tooltipprotected voidprepareTooltip(String tip, Component cmp) Gets ready to show the tooltip, this method implements the delay before the actual showing of the tooltip.voidsetDialogUIID(String dialogUIID) UIID of the tooltip dialogvoidsetTextUIID(String textUIID) UIID of the tooltip text bodyvoidsetTooltipShowDelay(int tooltipShowDelay) The time in milliseconds between the pointer stopping and the showing of the tooltipprotected voidshowTooltip(String tip, Component cmp) Shows the actual tooltip, this is invoked when the time for the tooltip elapses.
-
Constructor Details
-
TooltipManager
protected TooltipManager()Default tooltip manager
-
-
Method Details
-
enableTooltips
public static void enableTooltips()Enables the tooltip manager and default tooltip behavior -
enableTooltips
Enables the tooltip manager with a custom subclass
Parameters
custom: customized subclass of this class
-
clearTooltip
protected void clearTooltip()Invoked to dispose the current tooltip when the pointer moves -
prepareTooltip
-
showTooltip
-
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: the tooltipShowDelay to set
-
getDialogUIID
UIID of the tooltip dialog
Returns
the dialogUIID
-
setDialogUIID
UIID of the tooltip dialog
Parameters
dialogUIID: the dialogUIID to set
-
getTextUIID
UIID of the tooltip text body
Returns
the textUIID
-
setTextUIID
UIID of the tooltip text body
Parameters
textUIID: the textUIID to set
-