java.lang.Object
java.awt.event.MouseAdapter
javax.swing.text.html.HTMLEditorKit.LinkController
- All Implemented Interfaces:
- java.util.EventListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.io.Serializable
- Enclosing class:
- HTMLEditorKit
- public static class HTMLEditorKit.LinkController
- extends java.awt.event.MouseAdapter
- implements java.awt.event.MouseMotionListener, java.io.Serializable
Fires the hyperlink events on the associated component
when needed.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTMLEditorKit.LinkController
public HTMLEditorKit.LinkController()
- Constructor
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)
- Dispatched when the mouse is clicked. If the component
is read-only, then the clicked event is used to drive an
attempt to follow the reference specified by a link
- Specified by:
mouseClicked
in interface java.awt.event.MouseListener
mouseDragged
public void mouseDragged(java.awt.event.MouseEvent e)
- Dispatched when the mouse is dragged on a component.
- Specified by:
mouseDragged
in interface java.awt.event.MouseMotionListener
mouseMoved
public void mouseMoved(java.awt.event.MouseEvent e)
- Dispatched when the mouse cursor has moved into the component.
- Specified by:
mouseMoved
in interface java.awt.event.MouseMotionListener
activateLink
protected void activateLink(int pos,
javax.swing.JEditorPane editor)
- If the given position represents a link, then linkActivated is called
on the JEditorPane. Implemented to forward to the method with the same
name, but pos == editor == -1.