org.jdesktop.swingx.hyperlink
Class EditorPaneLinkVisitor

java.lang.Object
  extended by org.jdesktop.swingx.hyperlink.EditorPaneLinkVisitor
All Implemented Interfaces:
ActionListener, EventListener

public class EditorPaneLinkVisitor
extends Object
implements ActionListener

A ActionListener using a JXEditorPane to "visit" a LinkModel. adds an internal HyperlinkListener to visit links contained in the document.


Constructor Summary
EditorPaneLinkVisitor()
           
EditorPaneLinkVisitor(JXEditorPane pane)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
          Invoked when an action occurs.
protected  JXEditorPane createDefaultEditorPane()
           
protected  HyperlinkListener createHyperlinkListener()
           
protected  HyperlinkListener getHyperlinkListener()
           
protected  LinkModel getInternalLink()
           
 JXEditorPane getOutputComponent()
           
 void visit(LinkModel link)
           
protected  void visitInternal(URL url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditorPaneLinkVisitor

public EditorPaneLinkVisitor()

EditorPaneLinkVisitor

public EditorPaneLinkVisitor(JXEditorPane pane)
Method Detail

getOutputComponent

public JXEditorPane getOutputComponent()

actionPerformed

public void actionPerformed(ActionEvent e)
Description copied from interface: java.awt.event.ActionListener
Invoked when an action occurs.

Specified by:
actionPerformed in interface ActionListener

visit

public void visit(LinkModel link)

createDefaultEditorPane

protected JXEditorPane createDefaultEditorPane()

getHyperlinkListener

protected HyperlinkListener getHyperlinkListener()

createHyperlinkListener

protected HyperlinkListener createHyperlinkListener()

getInternalLink

protected LinkModel getInternalLink()

visitInternal

protected void visitInternal(URL url)