|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.security.DefaultTooltipStrategy
public class DefaultTooltipStrategy
The default implementation of TooltipStrategy calls the methods of the Component
under the mouse whenever possible.
| Constructor Summary | |
|---|---|
DefaultTooltipStrategy()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultTooltipStrategy()
| Method Detail |
|---|
public void install(GlassedPane pane)
TooltipStrategyGlassedPane starts using this strategy.
install in interface TooltipStrategypane - the pane using this strategypublic void uninstall(GlassedPane pane)
TooltipStrategyGlassedPane is no longer using this strategy.
uninstall in interface TooltipStrategypane - the pane that is no longer using this strategy
public void setTooltipText(Component component,
MouseEvent event,
boolean overNewComponent,
TooltipStrategyCallback callback)
TooltipStrategycomponent, after the event is
dispatched.
setTooltipText in interface TooltipStrategycomponent - 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 tooltip
public JToolTip createTooltip(Component component,
TooltipStrategyCallback callback)
TooltipStrategyEDT is over.
createTooltip in interface TooltipStrategycomponent - the component over which the mouse currently hovers, can be nullcallback - the caller of this method
null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||