javax.swing.text.html
Class HTMLEditorKit.InsertHTMLTextAction

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.swing.AbstractAction sample code for javax.swing.AbstractAction definition code for javax.swing.AbstractAction 
      extended by javax.swing.text.TextAction sample code for javax.swing.text.TextAction definition code for javax.swing.text.TextAction 
          extended by javax.swing.text.StyledEditorKit.StyledTextAction sample code for javax.swing.text.StyledEditorKit.StyledTextAction definition code for javax.swing.text.StyledEditorKit.StyledTextAction 
              extended by javax.swing.text.html.HTMLEditorKit.HTMLTextAction sample code for javax.swing.text.html.HTMLEditorKit.HTMLTextAction definition code for javax.swing.text.html.HTMLEditorKit.HTMLTextAction 
                  extended by javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction
All Implemented Interfaces:
ActionListener sample code for java.awt.event.ActionListener definition code for java.awt.event.ActionListener , Serializable sample code for java.io.Serializable definition code for java.io.Serializable , Cloneable sample code for java.lang.Cloneable definition code for java.lang.Cloneable , EventListener sample code for java.util.EventListener definition code for java.util.EventListener , Action sample code for javax.swing.Action definition code for javax.swing.Action
Enclosing class:
HTMLEditorKit sample code for javax.swing.text.html.HTMLEditorKit definition code for javax.swing.text.html.HTMLEditorKit

public static class HTMLEditorKit.InsertHTMLTextAction
extends HTMLEditorKit.HTMLTextAction sample code for javax.swing.text.html.HTMLEditorKit.HTMLTextAction definition code for javax.swing.text.html.HTMLEditorKit.HTMLTextAction

InsertHTMLTextAction can be used to insert an arbitrary string of HTML into an existing HTML document. At least two HTML.Tags need to be supplied. The first Tag, parentTag, identifies the parent in the document to add the elements to. The second tag, addTag, identifies the first tag that should be added to the document as seen in the HTML string. One important thing to remember, is that the parser is going to generate all the appropriate tags, even if they aren't in the HTML string passed in.

For example, lets say you wanted to create an action to insert a table into the body. The parentTag would be HTML.Tag.BODY, addTag would be HTML.Tag.TABLE, and the string could be something like <table><tr><td></td></tr></table>.

There is also an option to supply an alternate parentTag and addTag. These will be checked for if there is no parentTag at offset.

See Also:
Serialized Form

Field Summary
protected  HTML.Tag sample code for javax.swing.text.html.HTML.Tag definition code for javax.swing.text.html.HTML.Tag addTag sample code for javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.addTag definition code for javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.addTag
          Tag in HTML to start adding tags from.
protected  HTML.Tag sample code for javax.swing.text.html.HTML.Tag definition code for javax.swing.text.html.HTML.Tag alternateAddTag sample code for javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.alternateAddTag definition code for javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.alternateAddTag
          Alternate tag in HTML to start adding tags from if parentTag is not found and alternateParentTag is found.
protected  HTML.Tag sample code for javax.swing.text.html.HTML.Tag definition code for javax.swing.text.html.HTML.Tag alternateParentTag sample code for javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.alternateParentTag definition code for javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.alternateParentTag
          Alternate Tag to check for in the document if parentTag is not found.
protected  String sample code for java.lang.String definition code for java.lang.String html sample code for javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.html definition code for javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.html
          HTML to insert.
protected  HTML.Tag sample code for javax.swing.text.html.HTML.Tag definition code for javax.swing.text.html.HTML.Tag parentTag sample code for javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.parentTag definition code for javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.parentTag
          Tag to check for in the document.
 
Fields inherited from class javax.swing.AbstractAction sample code for javax.swing.AbstractAction definition code for javax.swing.AbstractAction
changeSupport sample code for javax.swing.AbstractAction.changeSupport definition code for javax.swing.AbstractAction.changeSupport , enabled sample code for javax.swing.AbstractAction.enabled definition code for javax.swing.AbstractAction.enabled
 
Fields inherited from interface javax.swing.Action sample code for javax.swing.Action definition code for javax.swing.Action
ACCELERATOR_KEY sample code for javax.swing.Action.ACCELERATOR_KEY definition code for javax.swing.Action.ACCELERATOR_KEY , ACTION_COMMAND_KEY sample code for javax.swing.Action.ACTION_COMMAND_KEY definition code for javax.swing.Action.ACTION_COMMAND_KEY , DEFAULT sample code for javax.swing.Action.DEFAULT definition code for javax.swing.Action.DEFAULT , LONG_DESCRIPTION sample code for javax.swing.Action.LONG_DESCRIPTION definition code for javax.swing.Action.LONG_DESCRIPTION , MNEMONIC_KEY sample code for javax.swing.Action.MNEMONIC_KEY definition code for javax.swing.Action.MNEMONIC_KEY , NAME sample code for javax.swing.Action.NAME definition code for javax.swing.Action.NAME , SHORT_DESCRIPTION sample code for javax.swing.Action.SHORT_DESCRIPTION definition code for javax.swing.Action.SHORT_DESCRIPTION , SMALL_ICON sample code for javax.swing.Action.SMALL_ICON definition code for javax.swing.Action.SMALL_ICON
 
Constructor Summary
HTMLEditorKit.InsertHTMLTextAction sample code for javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.HTMLEditorKit.InsertHTMLTextAction(java.lang.String, java.lang.String, javax.swing.text.html.HTML.Tag, javax.swing.text.html.HTML.Tag) definition code for javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.HTMLEditorKit.InsertHTMLTextAction(java.lang.String, java.lang.String, javax.swing.text.html.HTML.Tag, javax.swing.text.html.HTML.Tag) (String sample code for java.lang.String definition code for java.lang.String  name, String sample code for java.lang.String definition code for java.lang.String  html, HTML.Tag sample code for javax.swing.text.html.HTML.Tag definition code for javax.swing.text.html.HTML.Tag  parentTag, HTML.Tag sample code for javax.swing.text.html.HTML.Tag definition code for javax.swing.text.html.HTML.Tag  addTag)
           
HTMLEditorKit.InsertHTMLTextAction sample code for javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.HTMLEditorKit.InsertHTMLTextAction(java.lang.String, java.lang.String, javax.swing.text.html.HTML.Tag, javax.swing.text.html.HTML.Tag, javax.swing.text.html.HTML.Tag, javax.swing.text.html.HTML.Tag) definition code for javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.HTMLEditorKit.InsertHTMLTextAction(java.lang.String, java.lang.String, javax.swing.text.html.HTML.Tag, javax.swing.text.html.HTML.Tag, javax.swing.text.html.HTML.Tag, javax.swing.text.html.HTML.Tag) (String sample code for java.lang.String definition code for java.lang.String  name, String sample code for java.lang.String definition code for java.lang.String  html, HTML.Tag sample code for javax.swing.text.html.HTML.Tag definition code for javax.swing.text.html.HTML.Tag  parentTag, HTML.Tag sample code for javax.swing.text.html.HTML.Tag definition code for javax.swing.text.html.HTML.Tag  addTag, HTML.Tag sample code for javax.swing.text.html.HTML.Tag definition code for javax.swing.text.html.HTML.Tag  alternateParentTag, HTML.Tag sample code for javax.swing.text.html.HTML.Tag definition code for javax.swing.text.html.HTML.Tag  alternateAddTag)
           
 
Method Summary
 void actionPerformed sample code for javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.actionPerformed(java.awt.event.ActionEvent) definition code for javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.actionPerformed(java.awt.event.ActionEvent) (ActionEvent sample code for java.awt.event.ActionEvent definition code for java.awt.event.ActionEvent  ae)
          Inserts the HTML into the document.
protected  void insertAtBoundary sample code for javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.insertAtBoundary(javax.swing.JEditorPane, javax.swing.text.html.HTMLDocument, int, javax.swing.text.Element, java.lang.String, javax.swing.text.html.HTML.Tag, javax.swing.text.html.HTML.Tag) definition code for javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.insertAtBoundary(javax.swing.JEditorPane, javax.swing.text.html.HTMLDocument, int, javax.swing.text.Element, java.lang.String, javax.swing.text.html.HTML.Tag, javax.swing.text.html.HTML.Tag) (JEditorPane sample code for javax.swing.JEditorPane definition code for javax.swing.JEditorPane  editor, HTMLDocument sample code for javax.swing.text.html.HTMLDocument definition code for javax.swing.text.html.HTMLDocument  doc, int offset, Element sample code for javax.swing.text.Element definition code for javax.swing.text.Element  insertElement, String sample code for java.lang.String definition code for java.lang.String  html, HTML.Tag sample code for javax.swing.text.html.HTML.Tag definition code for javax.swing.text.html.HTML.Tag  parentTag, HTML.Tag sample code for javax.swing.text.html.HTML.Tag definition code for javax.swing.text.html.HTML.Tag  addTag)
          This is invoked when inserting at a boundary.
protected  void insertAtBoundry sample code for javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.insertAtBoundry(javax.swing.JEditorPane, javax.swing.text.html.HTMLDocument, int, javax.swing.text.Element, java.lang.String, javax.swing.text.html.HTML.Tag, javax.swing.text.html.HTML.Tag) definition code for javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.insertAtBoundry(javax.swing.JEditorPane, javax.swing.text.html.HTMLDocument, int, javax.swing.text.Element, java.lang.String, javax.swing.text.html.HTML.Tag, javax.swing.text.html.HTML.Tag) (JEditorPane sample code for javax.swing.JEditorPane definition code for javax.swing.JEditorPane  editor, HTMLDocument sample code for javax.swing.text.html.HTMLDocument definition code for javax.swing.text.html.HTMLDocument  doc, int offset, Element sample code for javax.swing.text.Element definition code for javax.swing.text.Element  insertElement, String sample code for java.lang.String definition code for java.lang.String  html, HTML.Tag sample code for javax.swing.text.html.HTML.Tag definition code for javax.swing.text.html.HTML.Tag  parentTag, HTML.Tag sample code for javax.swing.text.html.HTML.Tag definition code for javax.swing.text.html.HTML.Tag  addTag)
          Deprecated. As of Java 2 platform v1.3, use insertAtBoundary
protected  void insertHTML sample code for javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.insertHTML(javax.swing.JEditorPane, javax.swing.text.html.HTMLDocument, int, java.lang.String, int, int, javax.swing.text.html.HTML.Tag) definition code for javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.insertHTML(javax.swing.JEditorPane, javax.swing.text.html.HTMLDocument, int, java.lang.String, int, int, javax.swing.text.html.HTML.Tag) (JEditorPane sample code for javax.swing.JEditorPane definition code for javax.swing.JEditorPane  editor, HTMLDocument sample code for javax.swing.text.html.HTMLDocument definition code for javax.swing.text.html.HTMLDocument  doc, int offset, String sample code for java.lang.String definition code for java.lang.String  html, int popDepth, int pushDepth, HTML.Tag sample code for javax.swing.text.html.HTML.Tag definition code for javax.swing.text.html.HTML.Tag  addTag)
          A cover for HTMLEditorKit.insertHTML.
 
Methods inherited from class javax.swing.text.html.HTMLEditorKit.HTMLTextAction sample code for javax.swing.text.html.HTMLEditorKit.HTMLTextAction definition code for javax.swing.text.html.HTMLEditorKit.HTMLTextAction
elementCountToTag sample code for javax.swing.text.html.HTMLEditorKit.HTMLTextAction.elementCountToTag(javax.swing.text.html.HTMLDocument, int, javax.swing.text.html.HTML.Tag) definition code for javax.swing.text.html.HTMLEditorKit.HTMLTextAction.elementCountToTag(javax.swing.text.html.HTMLDocument, int, javax.swing.text.html.HTML.Tag) , findElementMatchingTag sample code for javax.swing.text.html.HTMLEditorKit.HTMLTextAction.findElementMatchingTag(javax.swing.text.html.HTMLDocument, int, javax.swing.text.html.HTML.Tag) definition code for javax.swing.text.html.HTMLEditorKit.HTMLTextAction.findElementMatchingTag(javax.swing.text.html.HTMLDocument, int, javax.swing.text.html.HTML.Tag) , getElementsAt sample code for javax.swing.text.html.HTMLEditorKit.HTMLTextAction.getElementsAt(javax.swing.text.html.HTMLDocument, int) definition code for javax.swing.text.html.HTMLEditorKit.HTMLTextAction.getElementsAt(javax.swing.text.html.HTMLDocument, int) , getHTMLDocument sample code for javax.swing.text.html.HTMLEditorKit.HTMLTextAction.getHTMLDocument(javax.swing.JEditorPane) definition code for javax.swing.text.html.HTMLEditorKit.HTMLTextAction.getHTMLDocument(javax.swing.JEditorPane) , getHTMLEditorKit sample code for javax.swing.text.html.HTMLEditorKit.HTMLTextAction.getHTMLEditorKit(javax.swing.JEditorPane) definition code for javax.swing.text.html.HTMLEditorKit.HTMLTextAction.getHTMLEditorKit(javax.swing.JEditorPane)
 
Methods inherited from class javax.swing.text.StyledEditorKit.StyledTextAction sample code for javax.swing.text.StyledEditorKit.StyledTextAction definition code for javax.swing.text.StyledEditorKit.StyledTextAction
getEditor sample code for javax.swing.text.StyledEditorKit.StyledTextAction.getEditor(java.awt.event.ActionEvent) definition code for javax.swing.text.StyledEditorKit.StyledTextAction.getEditor(java.awt.event.ActionEvent) , getStyledDocument sample code for javax.swing.text.StyledEditorKit.StyledTextAction.getStyledDocument(javax.swing.JEditorPane) definition code for javax.swing.text.StyledEditorKit.StyledTextAction.getStyledDocument(javax.swing.JEditorPane) , getStyledEditorKit sample code for javax.swing.text.StyledEditorKit.StyledTextAction.getStyledEditorKit(javax.swing.JEditorPane) definition code for javax.swing.text.StyledEditorKit.StyledTextAction.getStyledEditorKit(javax.swing.JEditorPane) , setCharacterAttributes sample code for javax.swing.text.StyledEditorKit.StyledTextAction.setCharacterAttributes(javax.swing.JEditorPane, javax.swing.text.AttributeSet, boolean) definition code for javax.swing.text.StyledEditorKit.StyledTextAction.setCharacterAttributes(javax.swing.JEditorPane, javax.swing.text.AttributeSet, boolean) , setParagraphAttributes sample code for javax.swing.text.StyledEditorKit.StyledTextAction.setParagraphAttributes(javax.swing.JEditorPane, javax.swing.text.AttributeSet, boolean) definition code for javax.swing.text.StyledEditorKit.StyledTextAction.setParagraphAttributes(javax.swing.JEditorPane, javax.swing.text.AttributeSet, boolean)
 
Methods inherited from class javax.swing.text.TextAction sample code for javax.swing.text.TextAction definition code for javax.swing.text.TextAction
augmentList sample code for javax.swing.text.TextAction.augmentList(javax.swing.Action[], javax.swing.Action[]) definition code for javax.swing.text.TextAction.augmentList(javax.swing.Action[], javax.swing.Action[]) , getFocusedComponent sample code for javax.swing.text.TextAction.getFocusedComponent() definition code for javax.swing.text.TextAction.getFocusedComponent() , getTextComponent sample code for javax.swing.text.TextAction.getTextComponent(java.awt.event.ActionEvent) definition code for javax.swing.text.TextAction.getTextComponent(java.awt.event.ActionEvent)
 
Methods inherited from class javax.swing.AbstractAction sample code for javax.swing.AbstractAction definition code for javax.swing.AbstractAction
addPropertyChangeListener sample code for javax.swing.AbstractAction.addPropertyChangeListener(java.beans.PropertyChangeListener) definition code for javax.swing.AbstractAction.addPropertyChangeListener(java.beans.PropertyChangeListener) , clone sample code for javax.swing.AbstractAction.clone() definition code for javax.swing.AbstractAction.clone() , firePropertyChange sample code for javax.swing.AbstractAction.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object) definition code for javax.swing.AbstractAction.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object) , getKeys sample code for javax.swing.AbstractAction.getKeys() definition code for javax.swing.AbstractAction.getKeys() , getPropertyChangeListeners sample code for javax.swing.AbstractAction.getPropertyChangeListeners() definition code for javax.swing.AbstractAction.getPropertyChangeListeners() , getValue sample code for javax.swing.AbstractAction.getValue(java.lang.String) definition code for javax.swing.AbstractAction.getValue(java.lang.String) , isEnabled sample code for javax.swing.AbstractAction.isEnabled() definition code for javax.swing.AbstractAction.isEnabled() , putValue sample code for javax.swing.AbstractAction.putValue(java.lang.String, java.lang.Object) definition code for javax.swing.AbstractAction.putValue(java.lang.String, java.lang.Object) , removePropertyChangeListener sample code for javax.swing.AbstractAction.removePropertyChangeListener(java.beans.PropertyChangeListener) definition code for javax.swing.AbstractAction.removePropertyChangeListener(java.beans.PropertyChangeListener) , setEnabled sample code for javax.swing.AbstractAction.setEnabled(boolean) definition code for javax.swing.AbstractAction.setEnabled(boolean)
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

html sample code for javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.html

protected String sample code for java.lang.String definition code for java.lang.String  html
HTML to insert.


parentTag sample code for javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.parentTag

protected HTML.Tag sample code for javax.swing.text.html.HTML.Tag definition code for javax.swing.text.html.HTML.Tag  parentTag
Tag to check for in the document.


addTag sample code for javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.addTag

protected HTML.Tag sample code for javax.swing.text.html.HTML.Tag definition code for javax.swing.text.html.HTML.Tag  addTag
Tag in HTML to start adding tags from.


alternateParentTag sample code for javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.alternateParentTag

protected HTML.Tag sample code for javax.swing.text.html.HTML.Tag definition code for javax.swing.text.html.HTML.Tag  alternateParentTag
Alternate Tag to check for in the document if parentTag is not found.


alternateAddTag sample code for javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.alternateAddTag

protected HTML.Tag sample code for javax.swing.text.html.HTML.Tag definition code for javax.swing.text.html.HTML.Tag  alternateAddTag
Alternate tag in HTML to start adding tags from if parentTag is not found and alternateParentTag is found.

Constructor Detail

HTMLEditorKit.InsertHTMLTextAction sample code for javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction(java.lang.String, java.lang.String, javax.swing.text.html.HTML.Tag, javax.swing.text.html.HTML.Tag) definition code for javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction(java.lang.String, java.lang.String, javax.swing.text.html.HTML.Tag, javax.swing.text.html.HTML.Tag)

public HTMLEditorKit.InsertHTMLTextAction(String sample code for java.lang.String definition code for java.lang.String  name,
                                          String sample code for java.lang.String definition code for java.lang.String  html,
                                          HTML.Tag sample code for javax.swing.text.html.HTML.Tag definition code for javax.swing.text.html.HTML.Tag  parentTag,
                                          HTML.Tag sample code for javax.swing.text.html.HTML.Tag definition code for javax.swing.text.html.HTML.Tag  addTag)

HTMLEditorKit.InsertHTMLTextAction sample code for javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction(java.lang.String, java.lang.String, javax.swing.text.html.HTML.Tag, javax.swing.text.html.HTML.Tag, javax.swing.text.html.HTML.Tag, javax.swing.text.html.HTML.Tag) definition code for javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction(java.lang.String, java.lang.String, javax.swing.text.html.HTML.Tag, javax.swing.text.html.HTML.Tag, javax.swing.text.html.HTML.Tag, javax.swing.text.html.HTML.Tag)

public HTMLEditorKit.InsertHTMLTextAction(String sample code for java.lang.String definition code for java.lang.String  name,
                                          String sample code for java.lang.String definition code for java.lang.String  html,
                                          HTML.Tag sample code for javax.swing.text.html.HTML.Tag definition code for javax.swing.text.html.HTML.Tag  parentTag,
                                          HTML.Tag sample code for javax.swing.text.html.HTML.Tag definition code for javax.swing.text.html.HTML.Tag  addTag,
                                          HTML.Tag sample code for javax.swing.text.html.HTML.Tag definition code for javax.swing.text.html.HTML.Tag  alternateParentTag,
                                          HTML.Tag sample code for javax.swing.text.html.HTML.Tag definition code for javax.swing.text.html.HTML.Tag  alternateAddTag)
Method Detail

insertHTML sample code for javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.insertHTML(javax.swing.JEditorPane, javax.swing.text.html.HTMLDocument, int, java.lang.String, int, int, javax.swing.text.html.HTML.Tag) definition code for javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.insertHTML(javax.swing.JEditorPane, javax.swing.text.html.HTMLDocument, int, java.lang.String, int, int, javax.swing.text.html.HTML.Tag)

protected void insertHTML(JEditorPane sample code for javax.swing.JEditorPane definition code for javax.swing.JEditorPane  editor,
                          HTMLDocument sample code for javax.swing.text.html.HTMLDocument definition code for javax.swing.text.html.HTMLDocument  doc,
                          int offset,
                          String sample code for java.lang.String definition code for java.lang.String  html,
                          int popDepth,
                          int pushDepth,
                          HTML.Tag sample code for javax.swing.text.html.HTML.Tag definition code for javax.swing.text.html.HTML.Tag  addTag)
A cover for HTMLEditorKit.insertHTML. If an exception it thrown it is wrapped in a RuntimeException and thrown.


insertAtBoundary sample code for javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.insertAtBoundary(javax.swing.JEditorPane, javax.swing.text.html.HTMLDocument, int, javax.swing.text.Element, java.lang.String, javax.swing.text.html.HTML.Tag, javax.swing.text.html.HTML.Tag) definition code for javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.insertAtBoundary(javax.swing.JEditorPane, javax.swing.text.html.HTMLDocument, int, javax.swing.text.Element, java.lang.String, javax.swing.text.html.HTML.Tag, javax.swing.text.html.HTML.Tag)

protected void insertAtBoundary(JEditorPane sample code for javax.swing.JEditorPane definition code for javax.swing.JEditorPane  editor,
                                HTMLDocument sample code for javax.swing.text.html.HTMLDocument definition code for javax.swing.text.html.HTMLDocument  doc,
                                int offset,
                                Element sample code for javax.swing.text.Element definition code for javax.swing.text.Element  insertElement,
                                String sample code for java.lang.String definition code for java.lang.String  html,
                                HTML.Tag sample code for javax.swing.text.html.HTML.Tag definition code for javax.swing.text.html.HTML.Tag  parentTag,
                                HTML.Tag sample code for javax.swing.text.html.HTML.Tag definition code for javax.swing.text.html.HTML.Tag  addTag)
This is invoked when inserting at a boundary. It determines the number of pops, and then the number of pushes that need to be performed, and then invokes insertHTML.

Since:
1.3

insertAtBoundry sample code for javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.insertAtBoundry(javax.swing.JEditorPane, javax.swing.text.html.HTMLDocument, int, javax.swing.text.Element, java.lang.String, javax.swing.text.html.HTML.Tag, javax.swing.text.html.HTML.Tag) definition code for javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.insertAtBoundry(javax.swing.JEditorPane, javax.swing.text.html.HTMLDocument, int, javax.swing.text.Element, java.lang.String, javax.swing.text.html.HTML.Tag, javax.swing.text.html.HTML.Tag)

@Deprecated
protected void insertAtBoundry(JEditorPane sample code for javax.swing.JEditorPane definition code for javax.swing.JEditorPane  editor,
                                          HTMLDocument sample code for javax.swing.text.html.HTMLDocument definition code for javax.swing.text.html.HTMLDocument  doc,
                                          int offset,
                                          Element sample code for javax.swing.text.Element definition code for javax.swing.text.Element  insertElement,
                                          String sample code for java.lang.String definition code for java.lang.String  html,
                                          HTML.Tag sample code for javax.swing.text.html.HTML.Tag definition code for javax.swing.text.html.HTML.Tag  parentTag,
                                          HTML.Tag sample code for javax.swing.text.html.HTML.Tag definition code for javax.swing.text.html.HTML.Tag  addTag)
Deprecated. As of Java 2 platform v1.3, use insertAtBoundary

This is invoked when inserting at a boundary. It determines the number of pops, and then the number of pushes that need to be performed, and then invokes insertHTML.


actionPerformed sample code for javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.actionPerformed(java.awt.event.ActionEvent) definition code for javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.actionPerformed(java.awt.event.ActionEvent)

public void actionPerformed(ActionEvent sample code for java.awt.event.ActionEvent definition code for java.awt.event.ActionEvent  ae)
Inserts the HTML into the document.

Parameters:
ae - the event