Java javax.swing.text.html HTMLDocument fields, constructors, methods, implement or subclass

Example usage for Java javax.swing.text.html HTMLDocument fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.swing.text.html HTMLDocument.

The text is from its open source code.

Subclass

javax.swing.text.html.HTMLDocument has subclasses.
Click this link to see all its subclasses.

Constructor

HTMLDocument()
Constructs an HTML document using the default buffer size and a default StyleSheet.

Method

ElementgetCharacterElement(int pos)
Gets a character element based on a position.
ElementgetElement(String id)
Returns the element that has the given id Attribute.
IteratorgetIterator(HTML.Tag t)
Fetches an iterator for the specified HTML tag.
intgetLength()
Returns the length of the data.
HTMLEditorKit.ParserCallbackgetReader(int pos)
Fetches the reader for the parser to use when loading the document with HTML.
Element[]getRootElements()
Gets all root elements defined.
StyleSheetgetStyleSheet()
Fetches the StyleSheet with the document-specific display rules (CSS) that were specified in the HTML document itself.
StringgetText(int offset, int length)
Gets a sequence of text from the document.
voidinsertAfterEnd(Element elem, String htmlText)
Inserts the HTML specified as a string after the end of the given element.
voidinsertBeforeEnd(Element elem, String htmlText)
Inserts the HTML specified as a string at the end of the element.
voidinsertString(int offs, String str, AttributeSet a)
Inserts some content into the document.
voidprocessHTMLFrameHyperlinkEvent(HTMLFrameHyperlinkEvent e)
Processes HyperlinkEvents that are generated by documents in an HTML frame.
voidputProperty(Object key, Object value)
A convenience method for storing up a property value.
voidremove(int offs, int len)
Removes some content from the document.
voidsetAsynchronousLoadPriority(int p)
Sets the asynchronous loading priority.
voidsetBase(URL u)
Sets the location to resolve relative URLs against.
voidsetInnerHTML(Element elem, String htmlText)
Replaces the children of the given element with the contents specified as an HTML string.
voidsetTokenThreshold(int n)
Sets the number of tokens to buffer before trying to update the documents element structure.