Save This Page
Home » openjdk-7 » javax » swing » text » html » [javadoc | source]
javax.swing.text.html
public static class: HTMLEditorKit.LinkController [javadoc | source]
java.lang.Object
   java.awt.event.MouseAdapter
      javax.swing.text.html.HTMLEditorKit$LinkController

All Implemented Interfaces:
    MouseMotionListener, Serializable, MouseListener, MouseWheelListener

Class to watch the associated component and fire hyperlink events on it when appropriate.
Method from javax.swing.text.html.HTMLEditorKit$LinkController Summary:
activateLink,   activateLink,   createHyperlinkEvent,   fireEvents,   mouseClicked,   mouseDragged,   mouseMoved
Methods from java.awt.event.MouseAdapter:
mouseClicked,   mouseDragged,   mouseEntered,   mouseExited,   mouseMoved,   mousePressed,   mouseReleased,   mouseWheelMoved
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.text.html.HTMLEditorKit$LinkController Detail:
 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.

  void activateLink(int pos,
    JEditorPane html,
    MouseEvent mouseEvent) 
    Calls linkActivated on the associated JEditorPane if the given position represents a link. If this was the result of a mouse click, x and y will give the location of the mouse, otherwise they will be < 0.
 HyperlinkEvent createHyperlinkEvent(JEditorPane html,
    HTMLDocument hdoc,
    String href,
    AttributeSet anchor,
    Element element,
    MouseEvent mouseEvent) 
    Creates and returns a new instance of HyperlinkEvent. If hdoc is a frame document a HTMLFrameHyperlinkEvent will be created.
  void fireEvents(JEditorPane editor,
    HTMLDocument doc,
    String href,
    Element lastElem,
    MouseEvent mouseEvent) 
 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.
 public  void mouseDragged(MouseEvent e) 
 public  void mouseMoved(MouseEvent e)