Package com.inet.html
package com.inet.html
This package contains the classes required to extend Java's StyledDocument. Which are basically
the Document itself, the writer, the parser and the editor kit including a view factory. So the
classes of this package are the main entry point for integrating JWebEngine with Java's JEditorPane
To use JWebEngine there are two simple ways:
-
To register JWebEngine as global text/html renderer, put this code into a static initializer
JEditorPane.registerEditorKitForContentType( "text/html", "com.inet.html.InetHtmlEditorKit" );
-
To explicitly set JWebEngine to a specific JEditorPane
JEditorPane editorPane = ... editorPane.setEditorKit( new InetHtmlEditorKit() );
-
ClassDescriptionView support extension interface.
This Interface has to be implemented by any model, which should be displayed by the HTML views.This class defines the settings used by the document and the view/editor of a document.The document is the controller component of the JWebEngine model.Extension of the java.text way to store the adds and removes in two arrays.A value for theInetHtmlDocument.PROPERTY_CONNECTION_TIMEOUTproperty to dynamically determine the connection timeout per destination.The JWebEngine implementation of theEditorKit.
This editor kit defines a custom set of actions which are not compatible with the default styled document.An extended hyperlink event to support link targetsClass to watch the associated component and fire hyperlink events on it when appropriate.The rendering mode defines the type ofRenderingHints.KEY_TEXT_ANTIALIASINGto be used and additional optimizations depending of the anti alias type.The factory to create views for model elements.default implementation: use normal Font constructorFactory to resolve font requests.The HTML parser of JWebEngine.Write the InetHtmlDocument as text/plain.The attribute filter can modify attribute value on the fly while the document is written.The interface for a factory which can create paint controllers.handles paint commands