This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.swing.text.html
class HTMLEditorKit.LinkController

java.lang.Object extended by java.awt.event.MouseAdapter extended by javax.swing.text.html.HTMLEditorKit.LinkController
All Implemented Interfaces:
MouseListener, MouseMotionListener, MouseWheelListener, Serializable
Enclosing class:
HTMLEditorKit

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

Class to watch the associated component and fire hyperlink events on it when appropriate.


Constructor Summary

          
 
Method Summary
protected void
activateLink(int pos, JEditorPane editor)

          Calls linkActivated on the associated JEditorPane if the given position represents a link.
 void

          Called for a mouse click event.
 void

          
 void

          
 
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved
 
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()
Method Detail

activateLink

protected void activateLink(int pos,
                            JEditorPane editor)
Calls linkActivated on the associated JEditorPane if the given position represents a link.

This is implemented to forward to the method with the same name, but with the following args both == -1.

Parameters:
pos - the position
editor - the editor pane

mouseClicked

public void mouseClicked(MouseEvent e)
Called for a mouse click event. If the component is read-only (ie a browser) then the clicked event is used to drive an attempt to follow the reference specified by a link.

Overrides:
mouseClicked in class MouseAdapter
Parameters:
e - the mouse event

mouseDragged

public void mouseDragged(MouseEvent e)
Overrides:
mouseDragged in class MouseAdapter
Parameters:
e

mouseMoved

public void mouseMoved(MouseEvent e)
Overrides:
mouseMoved in class MouseAdapter
Parameters:
e


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.