|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.infonode.tabbedpanel.hover.TitledTabDelayedMouseExitHoverAction
public class TitledTabDelayedMouseExitHoverAction
TitledTabDelayedMouseExitHoverAction is an action that wraps a HoverListener
and delays
the mouse exit when a TitledTab
is no longer hovered. The action is meant to be set
as a HoverListener
in the TitledTabProperties
.
If the TitledTab is hovered again before the delay has timed out, the timer is reset. If the TitledTab is removed before the delay has timed out the hover listener's mouseExit() will be called immediately.
TitledTab
,
TitledTabProperties
Field Summary | |
---|---|
private DelayedHoverExitAction |
delayedAction
|
private HoverListener |
hoverListener
|
Constructor Summary | |
---|---|
TitledTabDelayedMouseExitHoverAction(int delay,
HoverListener hoverListener)
Creates a TitledTabDelayedMouseExitHoverAction object with the given HoverListener as action |
Method Summary | |
---|---|
HoverListener |
getHoverListener()
Gets the hover listener |
TitledTabProperties |
getTitledTabProperties()
Gets the TitledTabProperties object for this action. |
void |
mouseEntered(HoverEvent event)
Called when the mouse enters the hoverable component |
void |
mouseExited(HoverEvent event)
Called when the mouse exits the hoverable component |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private DelayedHoverExitAction delayedAction
private HoverListener hoverListener
Constructor Detail |
---|
public TitledTabDelayedMouseExitHoverAction(int delay, HoverListener hoverListener)
delay
- delay in milliseconds before the hover listener is called when the
titled tab is no longer hoveredhoverListener
- reference to a HoverListenerMethod Detail |
---|
public HoverListener getHoverListener()
public TitledTabProperties getTitledTabProperties()
public void mouseEntered(HoverEvent event)
HoverListener
mouseEntered
in interface HoverListener
event
- the hover eventpublic void mouseExited(HoverEvent event)
HoverListener
mouseExited
in interface HoverListener
event
- the hover event
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |