org.xhtmlrenderer.swing
Class HoverListener
java.lang.Object
org.xhtmlrenderer.swing.DefaultFSMouseListener
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.
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HoverListener
public HoverListener()
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 displayedbox
- 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 displayedbox
- 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 Home