|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.infonode.gui.hover.CompoundHoverListener
public class CompoundHoverListener
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.
Field Summary | |
---|---|
private HoverListener |
firstListener
|
private HoverListener |
secondListener
|
Constructor Summary | |
---|---|
CompoundHoverListener(HoverListener firstListener,
HoverListener secondListener)
Creates a CompoundHoverListener |
Method Summary | |
---|---|
HoverListener |
getFirstListener()
Gets the first hover listener |
HoverListener |
getSecondListener()
Gets the second hover listener |
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 HoverListener firstListener
private HoverListener secondListener
Constructor Detail |
---|
public CompoundHoverListener(HoverListener firstListener, HoverListener secondListener)
firstListener
- the first hover listenersecondListener
- the second hover listenerMethod Detail |
---|
public HoverListener getFirstListener()
public HoverListener getSecondListener()
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 |