java.lang.Object
org.xhtmlrenderer.swing.DefaultFSMouseListener
org.xhtmlrenderer.swing.HoverListener
- All Implemented Interfaces:
FSMouseListener
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonMouseOut(BasicPanel panel, Box box) Sent when the mouse leaves a Box in the render tree after entering it.voidonMouseOver(BasicPanel panel, Box box) Sent when the mouse moves over a Box in the render tree.voidreset()Resets the tracking information related to the currently hovered element.Methods inherited from class org.xhtmlrenderer.swing.DefaultFSMouseListener
onMouseDragged, onMousePressed, onMouseUp
-
Constructor Details
-
HoverListener
public HoverListener()
-
-
Method Details
-
onMouseOut
Description copied from interface:FSMouseListenerSent when the mouse leaves a Box in the render tree after entering it.- Specified by:
onMouseOutin interfaceFSMouseListener- Overrides:
onMouseOutin classDefaultFSMouseListener- Parameters:
panel- the panel where the box is displayedbox- the box the mouse has just left
-
onMouseOver
Description copied from interface:FSMouseListenerSent when the mouse moves over a Box in the render tree.- Specified by:
onMouseOverin interfaceFSMouseListener- Overrides:
onMouseOverin classDefaultFSMouseListener- 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:
resetin interfaceFSMouseListener- Overrides:
resetin classDefaultFSMouseListener
-