net.infonode.gui.hover
Class CompoundHoverListener

java.lang.Object
  extended bynet.infonode.gui.hover.CompoundHoverListener
All Implemented Interfaces:
HoverListener

public class CompoundHoverListener
extends Object
implements 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.

Version:
$Revision: 1.3 $

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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompoundHoverListener

public CompoundHoverListener(HoverListener firstListener,
                             HoverListener secondListener)
Creates a CompoundHoverListener

Parameters:
firstListener - the first hover listener
secondListener - the second hover listener
Method Detail

getFirstListener

public HoverListener getFirstListener()
Gets the first hover listener

Returns:
the hover listener

getSecondListener

public HoverListener getSecondListener()
Gets the second hover listener

Returns:
the hover listener

mouseEntered

public void mouseEntered(HoverEvent event)
Description copied from interface: HoverListener
Called when the mouse enters the hoverable component

Specified by:
mouseEntered in interface HoverListener
Parameters:
event - the hover event

mouseExited

public void mouseExited(HoverEvent event)
Description copied from interface: HoverListener
Called when the mouse exits the hoverable component

Specified by:
mouseExited in interface HoverListener
Parameters:
event - the hover event


Copyright © 2007 NNL Technology AB. All Rights Reserved.