javax.swing.text.html

Class HTMLEditorKit.LinkController

public static class HTMLEditorKit.LinkController extends MouseAdapter implements MouseMotionListener, Serializable

Fires the hyperlink events on the associated component when needed.
Constructor Summary
LinkController()
Constructor
Method Summary
protected voidactivateLink(int pos, JEditorPane editor)
If the given position represents a link, then linkActivated is called on the JEditorPane.
voidmouseClicked(MouseEvent e)
Dispatched when the mouse is clicked.
voidmouseDragged(MouseEvent e)
Dispatched when the mouse is dragged on a component.
voidmouseMoved(MouseEvent e)
Dispatched when the mouse cursor has moved into the component.

Constructor Detail

LinkController

public LinkController()
Constructor

Method Detail

activateLink

protected void activateLink(int pos, JEditorPane editor)
If the given position represents a link, then linkActivated is called on the JEditorPane.

Parameters: pos the position editor the editor pane

mouseClicked

public void mouseClicked(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

Parameters: e - the mouse event

mouseDragged

public void mouseDragged(MouseEvent e)
Dispatched when the mouse is dragged on a component.

Parameters: e - the mouse event.

mouseMoved

public void mouseMoved(MouseEvent e)
Dispatched when the mouse cursor has moved into the component.

Parameters: e - the mouse event.