public abstract static class HTMLEditorKit.HTMLTextAction extends javax.swing.text.StyledEditorKit.StyledTextAction
| Constructor and Description |
|---|
HTMLEditorKit.HTMLTextAction(java.lang.String name)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
elementCountToTag(HTMLDocument doc,
int offset,
HTML.Tag tag)
Returns the number of elements, starting at the deepest point, needed
to get an element representing tag. -1 if no elements are found, 0 if
the parent of the leaf at offset represents the tag.
|
protected javax.swing.text.Element |
findElementMatchingTag(HTMLDocument doc,
int offset,
HTML.Tag tag)
Gets the deepest element at offset with the
matching tag.
|
protected javax.swing.text.Element[] |
getElementsAt(HTMLDocument doc,
int offset)
Returns an array of Elements that contain the offset.
|
protected HTMLDocument |
getHTMLDocument(javax.swing.JEditorPane e)
Gets the HTMLDocument from the JEditorPane.
|
protected HTMLEditorKit |
getHTMLEditorKit(javax.swing.JEditorPane e)
Gets the HTMLEditorKit
|
getEditor, getStyledDocument, getStyledEditorKit, setCharacterAttributes, setParagraphAttributesaugmentList, getFocusedComponent, getTextComponentaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledpublic HTMLEditorKit.HTMLTextAction(java.lang.String name)
protected HTMLDocument getHTMLDocument(javax.swing.JEditorPane e)
e - - the editor paneprotected HTMLEditorKit getHTMLEditorKit(javax.swing.JEditorPane e)
e - - the JEditorPane to get the HTMLEditorKit from.protected javax.swing.text.Element[] getElementsAt(HTMLDocument doc, int offset)
doc - - the document to get the Elements from.offset - - the offset the Elements must containprotected int elementCountToTag(HTMLDocument doc, int offset, HTML.Tag tag)
doc - -
the document to searchoffset - -
the offset to checktag - -
the tag to look forprotected javax.swing.text.Element findElementMatchingTag(HTMLDocument doc, int offset, HTML.Tag tag)
doc - - the document to searchoffset - - the offset to check fortag - - the tag to match