javax.swing.text.html
Class HTMLEditorKit.InsertHRAction

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

static class HTMLEditorKit.InsertHRAction
extends HTMLEditorKit.InsertHTMLTextAction

InsertHRAction is special, at actionPerformed time it will determine the parent HTML.Tag based on the paragraph element at the selection start.


Nested Class Summary
 
Nested classes inherited from class javax.swing.AbstractAction
 
Field Summary
 
Fields inherited from class javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction
addTag, adjustSelection, alternateAddTag, alternateParentTag, html, parentTag
 
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
(package private) HTMLEditorKit.InsertHRAction()
           
 
Method Summary
 void actionPerformed(ActionEvent ae)
          Inserts the HTML into the document.
 
Methods inherited from class javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction
adjustSelection, insertAtBoundary, insertAtBoundry, insertHTML, insertIntoTag
 
Methods inherited from class javax.swing.text.html.HTMLEditorKit.HTMLTextAction
elementCountToTag, findElementMatchingTag, getElementsAt, getHTMLDocument, getHTMLEditorKit
 
Methods inherited from class javax.swing.text.StyledEditorKit.StyledTextAction
getEditor, getStyledDocument, getStyledEditorKit, setCharacterAttributes, setParagraphAttributes
 
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.InsertHRAction

HTMLEditorKit.InsertHRAction()
Method Detail

actionPerformed

public void actionPerformed(ActionEvent ae)
Inserts the HTML into the document.

Specified by:
actionPerformed in interface ActionListener
Overrides:
actionPerformed in class HTMLEditorKit.InsertHTMLTextAction
Parameters:
ae - the event