public interface TooltipStrategy
TooltipStrategy is used by a GlassedPane to find out which tooltip present.| Modifier and Type | Method and Description |
|---|---|
JToolTip |
createTooltip(Component component,
TooltipStrategyCallback callback)
Asks this strategy to create a new tooltip, this tooltip will be shown as soon as the current
event of the
EDT is over. |
void |
install(GlassedPane pane)
Called if a
GlassedPane starts using this strategy. |
void |
setTooltipText(Component component,
MouseEvent event,
boolean overNewComponent,
TooltipStrategyCallback callback)
Asks this strategy to find the tooltip of
component, after the event is
dispatched. |
void |
uninstall(GlassedPane pane)
Called if a
GlassedPane is no longer using this strategy. |
void install(GlassedPane pane)
GlassedPane starts using this strategy.pane - the pane using this strategyvoid uninstall(GlassedPane pane)
GlassedPane is no longer using this strategy.pane - the pane that is no longer using this strategyvoid setTooltipText(Component component, MouseEvent event, boolean overNewComponent, TooltipStrategyCallback callback)
component, after the event is
dispatched.component - the current component, can be nullevent - the event that is dispatched, can be nulloverNewComponent - whether the component under the mouse changed since the last call of this methodcallback - the caller, this method can call TooltipStrategyCallback.setToolTipText(String)
to set a new tooltipJToolTip createTooltip(Component component, TooltipStrategyCallback callback)
EDT is over.component - the component over which the mouse currently hovers, can be nullcallback - the caller of this methodnullCopyright © 2017 Docking Frames. All rights reserved.