| java.lang.Object org.netbeans.modules.gsfret.navigation.base.TooltipHack
TooltipHack | final public class TooltipHack implements ActionListener(Code) | | This file is originally from Retouche, the Java Support
infrastructure in NetBeans. I have modified the file as little
as possible to make merging Retouche fixes back as simple as
possible.
Hack to invoke tooltip on given component on given position immediatelly
at a request.
XXX - hack is not reliable, could stop working in future JDK releases.
Navigator should better handle tooltips totally itself,
without Swing TooltipManager, to get rid of such hacks.
author: Dafe Simonek |
Method Summary | |
public void | actionPerformed(ActionEvent e) impl of ActionListener, reacts on timer and restores Dismiss value. | public static void | invokeTip(JComponent comp, int x, int y, int dismissDelay) Hack to invoke tooltip on given JComponent, with given dismiss delay. |
actionPerformed | public void actionPerformed(ActionEvent e)(Code) | | impl of ActionListener, reacts on timer and restores Dismiss value.
Don't call from outside classes.
|
invokeTip | public static void invokeTip(JComponent comp, int x, int y, int dismissDelay)(Code) | | Hack to invoke tooltip on given JComponent, with given dismiss delay.
Triggers
comp.getToolTipText(MouseEvent) and
comp.getToolTipLocation(MouseEvent) with fake mousemoved
MouseEvent, set to given coordinates.
|
|
|