javax.swing.text.html
public abstract static class HTMLEditorKit.HTMLTextAction extends StyledEditorKit.StyledTextAction
Constructor Summary | |
---|---|
HTMLTextAction(String name)
Constructor |
Method Summary | |
---|---|
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. |
protected Element | findElementMatchingTag(HTMLDocument doc, int offset, HTML.Tag tag)
Gets the deepest element at offset with the
matching tag.
|
protected Element[] | getElementsAt(HTMLDocument doc, int offset)
Returns an array of Elements that contain the offset.
|
protected HTMLDocument | getHTMLDocument(JEditorPane e)
Gets the HTMLDocument from the JEditorPane.
|
protected HTMLEditorKit | getHTMLEditorKit(JEditorPane e)
Gets the HTMLEditorKit
|
Parameters: doc - the document to search offset - the offset to check tag - the tag to look for
Returns: - the number of elements needed to get an element representing tag.
Parameters: doc - the document to search offset - the offset to check for tag - the tag to match
Returns: - the element that is found, null if not found.
Parameters: doc - the document to get the Elements from. offset - the offset the Elements must contain
Returns: an array of all the elements containing the offset.
Parameters: e - the editor pane
Returns: the html document.
Parameters: e - the JEditorPane to get the HTMLEditorKit from.
Returns: the HTMLEditorKit