Package net.infonode.gui.hover
Class CompoundHoverListener
java.lang.Object
net.infonode.gui.hover.CompoundHoverListener
- All Implemented Interfaces:
HoverListener
CompoundHoverListener takes the two given hover listeners and calls the
first hover listener and then the second when the mouse is hovering.
When the mouse is no longer hovering, the second listener is called
and then the first listener is called.
-
Constructor Summary
ConstructorsConstructorDescriptionCompoundHoverListener
(HoverListener firstListener, HoverListener secondListener) Creates a CompoundHoverListener -
Method Summary
Modifier and TypeMethodDescriptionGets the first hover listenerGets the second hover listenervoid
mouseEntered
(HoverEvent event) Called when the mouse enters the hoverable componentvoid
mouseExited
(HoverEvent event) Called when the mouse exits the hoverable component
-
Constructor Details
-
CompoundHoverListener
Creates a CompoundHoverListener- Parameters:
firstListener
- the first hover listenersecondListener
- the second hover listener
-
-
Method Details
-
getFirstListener
Gets the first hover listener- Returns:
- the hover listener
-
getSecondListener
Gets the second hover listener- Returns:
- the hover listener
-
mouseEntered
Description copied from interface:HoverListener
Called when the mouse enters the hoverable component- Specified by:
mouseEntered
in interfaceHoverListener
- Parameters:
event
- the hover event
-
mouseExited
Description copied from interface:HoverListener
Called when the mouse exits the hoverable component- Specified by:
mouseExited
in interfaceHoverListener
- Parameters:
event
- the hover event
-