API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.text.html. HTMLEditorKit.InsertHTMLTextAction View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      AbstractAction
          TextAction
              StyledEditorKit.StyledTextAction
                  HTMLEditorKit.HTMLTextAction
                      HTMLEditorKit.InsertHTMLTextAction
Implements
Subclasses
Description
publicstatic class HTMLEditorKit.InsertHTMLTextAction
  InsertHTMLTextAction can be used to insert an arbitrary string of HTML into an existing HTML document.
See also:   
Constructors
public HTMLEditorKit.InsertHTMLTextAction (String name, String html, Tag parentTag, Tag addTag)
public HTMLEditorKit.InsertHTMLTextAction (String name, String html, Tag parentTag, Tag addTag, Tag alternateParentTag, Tag alternateAddTag)
pack-private HTMLEditorKit.InsertHTMLTextAction (String name, String html, Tag parentTag, Tag addTag, Tag alternateParentTag, Tag alternateAddTag, boolean adjustSelection)
Methods
Hide/Show inherited methods
public void actionPerformed (ActionEvent ae)
  Inserts the HTML into the document.
publicsynchronized void addPropertyChangeListener (PropertyChangeListener listener) [Inherited From AbstractAction]
  Adds a PropertyChangeListener to the listener list.
pack-private void adjustSelection (JEditorPane pane, HTMLDocument doc, int startOffset, int oldLength)
Called after an insertion to adjust the selection.
publicfinalstatic Action augmentList (Action list1, Action list2) [Inherited From TextAction]
  Takes one list of commands and augments it with another list of commands.
protected Object clone () throws CloneNotSupportedException [Inherited From AbstractAction]
  Clones the abstract action.
protected int elementCountToTag (HTMLDocument doc, int offset, Tag tag) [Inherited From HTMLEditorKit.HTMLTextAction]
  Returns number of elements, starting at the deepest leaf, needed to get to an element representing tag.
protected Element findElementMatchingTag (HTMLDocument doc, int offset, Tag tag) [Inherited From HTMLEditorKit.HTMLTextAction]
Returns the deepest element at offset matching tag.
protected void firePropertyChange (String propertyName, Object oldValue, Object newValue) [Inherited From AbstractAction]
  Supports reporting bound property changes.
protectedfinal JEditorPane getEditor (ActionEvent e) [Inherited From StyledEditorKit.StyledTextAction]
  Gets the target editor for an action.
protected Element getElementsAt (HTMLDocument doc, int offset) [Inherited From HTMLEditorKit.HTMLTextAction]
  Returns an array of the Elements that contain offset.
protectedfinal JTextComponent getFocusedComponent () [Inherited From TextAction]
  Fetches the text component that currently has focus.
protected HTMLDocument getHTMLDocument (JEditorPane e) [Inherited From HTMLEditorKit.HTMLTextAction]
 
protected HTMLEditorKit getHTMLEditorKit (JEditorPane e) [Inherited From HTMLEditorKit.HTMLTextAction]
 
public Object getKeys () [Inherited From AbstractAction]
  Returns an array of Objects which are keys for which values have been set for this AbstractAction, or null if no keys have values set.
publicsynchronized PropertyChangeListener getPropertyChangeListeners () [Inherited From AbstractAction]
  Returns an array of all the PropertyChangeListeners added to this AbstractAction with addPropertyChangeListener().
protectedfinal StyledDocument getStyledDocument (JEditorPane e) [Inherited From StyledEditorKit.StyledTextAction]
  Gets the document associated with an editor pane.
protectedfinal StyledEditorKit getStyledEditorKit (JEditorPane e) [Inherited From StyledEditorKit.StyledTextAction]
  Gets the editor kit associated with an editor pane.
protectedfinal JTextComponent getTextComponent (ActionEvent e) [Inherited From TextAction]
  Determines the component to use for the action.
public Object getValue (String key) [Inherited From AbstractAction]
  Gets the Object associated with the specified key.
protected void insertAtBoundary (JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, Tag parentTag, Tag addTag)
  This is invoked when inserting at a boundary.
@Deprecated
protected void insertAtBoundry (JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, Tag parentTag, Tag addTag)
  This is invoked when inserting at a boundary.
protected void insertHTML (JEditorPane editor, HTMLDocument doc, int offset, String html, int popDepth, int pushDepth, Tag addTag)
  A cover for HTMLEditorKit.insertHTML.
pack-private boolean insertIntoTag (JEditorPane editor, HTMLDocument doc, int offset, Tag tag, Tag addTag)
  If there is an Element with name tag at offset, this will invoke either insertAtBoundary or insertHTML.
public boolean isEnabled () [Inherited From AbstractAction]
  Returns true if the action is enabled.
public void putValue (String key, Object newValue) [Inherited From AbstractAction]
  Sets the Value associated with the specified key.
publicsynchronized void removePropertyChangeListener (PropertyChangeListener listener) [Inherited From AbstractAction]
  Removes a PropertyChangeListener from the listener list.
protectedfinal void setCharacterAttributes (JEditorPane editor, AttributeSet attr, boolean replace) [Inherited From StyledEditorKit.StyledTextAction]
  Applies the given attributes to character content.
public void setEnabled (boolean newValue) [Inherited From AbstractAction]
  Enables or disables the action.
protectedfinal void setParagraphAttributes (JEditorPane editor, AttributeSet attr, boolean replace) [Inherited From StyledEditorKit.StyledTextAction]
  Applies the given attributes to paragraphs.
Fields
Hide/Show inherited fields
protected Tag addTag
Tag in HTML to start adding tags from.
pack-private boolean adjustSelection
True indicates the selection should be adjusted after an insert.
protected Tag alternateAddTag
Alternate tag in HTML to start adding tags from if parentTag is not found and alternateParentTag is found.
protected Tag alternateParentTag
Alternate Tag to check for in the document if parentTag is not found.
protected SwingPropertyChangeSupport changeSupport [Inherited From AbstractAction]
If any PropertyChangeListeners have been registered, the changeSupport field describes them.
protected boolean enabled [Inherited From AbstractAction]
Specifies whether action is enabled; the default is true.
protected String html
HTML to insert.
protected Tag parentTag
Tag to check for in the document.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar