javax.swing.text.html
Class HTMLEditorKit.NavigateLinkAction

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

static class HTMLEditorKit.NavigateLinkAction
extends TextAction
implements CaretListener


Nested Class Summary
(package private)  class HTMLEditorKit.NavigateLinkAction.FocusHighlightPainter
          A highlight painter that draws a one-pixel border around the highlighted area.
 
Nested classes inherited from class javax.swing.AbstractAction
 
Field Summary
private  boolean focusBack
           
private  HTMLEditorKit.NavigateLinkAction.FocusHighlightPainter focusPainter
           
private static boolean foundLink
           
private static int prevHypertextOffset
           
private  Object selectionTag
           
 
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.NavigateLinkAction(String actionName)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
          Invoked when an action occurs.
 void caretUpdate(CaretEvent e)
          Called when the caret position is updated.
private  void moveCaretPosition(JTextComponent comp, int mark, int dot)
           
 
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
 

Field Detail

prevHypertextOffset

private static int prevHypertextOffset

foundLink

private static boolean foundLink

focusPainter

private HTMLEditorKit.NavigateLinkAction.FocusHighlightPainter focusPainter

selectionTag

private Object selectionTag

focusBack

private boolean focusBack
Constructor Detail

HTMLEditorKit.NavigateLinkAction

public HTMLEditorKit.NavigateLinkAction(String actionName)
Method Detail

caretUpdate

public void caretUpdate(CaretEvent e)
Called when the caret position is updated.

Specified by:
caretUpdate in interface CaretListener
Parameters:
e - the caret event

actionPerformed

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

Specified by:
actionPerformed in interface ActionListener

moveCaretPosition

private void moveCaretPosition(JTextComponent comp,
                               int mark,
                               int dot)