Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.swing.text.html
Class HTMLEditorKit.LinkController  view HTMLEditorKit.LinkController download HTMLEditorKit.LinkController.java

java.lang.Object
  extended byjava.awt.event.MouseAdapter
      extended byjavax.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.


Constructor Summary
HTMLEditorKit.LinkController()
          Constructor
 
Method Summary
protected  void activateLink(int pos, javax.swing.JEditorPane editor)
          If the given position represents a link, then linkActivated is called on the JEditorPane.
 void mouseClicked(java.awt.event.MouseEvent e)
          Dispatched when the mouse is clicked.
 void mouseDragged(java.awt.event.MouseEvent e)
          Dispatched when the mouse is dragged on a component.
 void mouseMoved(java.awt.event.MouseEvent e)
          Dispatched when the mouse cursor has moved into the component.
 
Methods inherited from class java.awt.event.MouseAdapter
mouseEntered, mouseExited, mousePressed, mouseReleased
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLEditorKit.LinkController

public HTMLEditorKit.LinkController()
Constructor

Method Detail

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.