Flying Saucer Project Release ${app.version}

org.xhtmlrenderer.swing
Class HoverListener

java.lang.Object
  extended by org.xhtmlrenderer.swing.DefaultFSMouseListener
      extended by org.xhtmlrenderer.swing.HoverListener
All Implemented Interfaces:
FSMouseListener

public class HoverListener
extends DefaultFSMouseListener

A HoverListener is used to respond to a mouse hovering over a Box in a BasicPanel. In particular, it applies any :hover selectors that apply to the Box in question, and resets those styles as the mouse exits the Box.


Constructor Summary
HoverListener()
           
 
Method Summary
 void onMouseOut(BasicPanel panel, Box box)
          Sent when the mouse leaves a Box in the render tree after entering it.
 void onMouseOver(BasicPanel panel, Box box)
          Sent when the mouse moves over a Box in the render tree.
 void reset()
          Resets the tracking information related to the currently hovered element.
 
Methods inherited from class org.xhtmlrenderer.swing.DefaultFSMouseListener
onMouseDragged, onMousePressed, onMouseUp
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HoverListener

public HoverListener()
Method Detail

onMouseOut

public void onMouseOut(BasicPanel panel,
                       Box box)
Sent when the mouse leaves a Box in the render tree after entering it.

Specified by:
onMouseOut in interface FSMouseListener
Overrides:
onMouseOut in class DefaultFSMouseListener
Parameters:
panel - the panel where the box is displayed
box - the box the mouse has just left

onMouseOver

public void onMouseOver(BasicPanel panel,
                        Box box)
Sent when the mouse moves over a Box in the render tree.

Specified by:
onMouseOver in interface FSMouseListener
Overrides:
onMouseOver in class DefaultFSMouseListener
Parameters:
panel - the panel where the box is displayed
box - the box the mouse has just moved over

reset

public void reset()
Resets the tracking information related to the currently hovered element.

Specified by:
reset in interface FSMouseListener
Overrides:
reset in class DefaultFSMouseListener

Flying Saucer Project Release ${app.version}

Flying Saucer Project Home