javax.swing.text.html
Class HTMLEditorKit.ActivateLinkAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byjavax.swing.text.TextAction
          extended byjavax.swing.text.html.HTMLEditorKit.ActivateLinkAction
All Implemented Interfaces:
Action, ActionListener, Cloneable, EventListener, Serializable
Enclosing class:
HTMLEditorKit

static class HTMLEditorKit.ActivateLinkAction
extends TextAction


Nested Class Summary
 
Nested classes inherited from class javax.swing.AbstractAction
 
Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
HTMLEditorKit.ActivateLinkAction(String actionName)
          Create this action with the appropriate identifier.
 
Method Summary
 void actionPerformed(ActionEvent e)
          Invoked when an action occurs.
private  void activateLink(String href, HTMLDocument doc, JEditorPane editor, int offset)
           
private  void doObjectAction(JEditorPane editor, Element elem)
           
private  View getRootView(JEditorPane editor)
           
private  View getView(JEditorPane editor, Element elem)
           
private  View getView(View parent, Element elem, int start)
           
private  Object lock(JEditorPane editor)
           
private  void unlock(Object key)
           
 
Methods inherited from class javax.swing.text.TextAction
augmentList, getFocusedComponent, getTextComponent
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLEditorKit.ActivateLinkAction

public HTMLEditorKit.ActivateLinkAction(String actionName)
Create this action with the appropriate identifier.

Method Detail

activateLink

private void activateLink(String href,
                          HTMLDocument doc,
                          JEditorPane editor,
                          int offset)

doObjectAction

private void doObjectAction(JEditorPane editor,
                            Element elem)

getRootView

private View getRootView(JEditorPane editor)

getView

private View getView(JEditorPane editor,
                     Element elem)

getView

private View getView(View parent,
                     Element elem,
                     int start)

lock

private Object lock(JEditorPane editor)

unlock

private void unlock(Object key)

actionPerformed

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