HTMLEditorKit.HTMLFactory (Java Platform SE 8 ) (original) (raw)
- javax.swing.text.html.HTMLEditorKit.HTMLFactory
All Implemented Interfaces:
ViewFactory
Enclosing class:
HTMLEditorKit
public static class HTMLEditorKit.HTMLFactory
extends Object
implements ViewFactory
A factory to build views for HTML. The following table describes what this factory will build by default.
Tag | View created |
---|---|
HTML.Tag.CONTENT | InlineView |
HTML.Tag.IMPLIED | javax.swing.text.html.ParagraphView |
HTML.Tag.P | javax.swing.text.html.ParagraphView |
HTML.Tag.H1 | javax.swing.text.html.ParagraphView |
HTML.Tag.H2 | javax.swing.text.html.ParagraphView |
HTML.Tag.H3 | javax.swing.text.html.ParagraphView |
HTML.Tag.H4 | javax.swing.text.html.ParagraphView |
HTML.Tag.H5 | javax.swing.text.html.ParagraphView |
HTML.Tag.H6 | javax.swing.text.html.ParagraphView |
HTML.Tag.DT | javax.swing.text.html.ParagraphView |
HTML.Tag.MENU | ListView |
HTML.Tag.DIR | ListView |
HTML.Tag.UL | ListView |
HTML.Tag.OL | ListView |
HTML.Tag.LI | BlockView |
HTML.Tag.DL | BlockView |
HTML.Tag.DD | BlockView |
HTML.Tag.BODY | BlockView |
HTML.Tag.HTML | BlockView |
HTML.Tag.CENTER | BlockView |
HTML.Tag.DIV | BlockView |
HTML.Tag.BLOCKQUOTE | BlockView |
HTML.Tag.PRE | BlockView |
HTML.Tag.BLOCKQUOTE | BlockView |
HTML.Tag.PRE | BlockView |
HTML.Tag.IMG | ImageView |
HTML.Tag.HR | HRuleView |
HTML.Tag.BR | BRView |
HTML.Tag.TABLE | javax.swing.text.html.TableView |
HTML.Tag.INPUT | FormView |
HTML.Tag.SELECT | FormView |
HTML.Tag.TEXTAREA | FormView |
HTML.Tag.OBJECT | ObjectView |
HTML.Tag.FRAMESET | FrameSetView |
HTML.Tag.FRAME | FrameView |
Constructor Summary
Constructors
Constructor Description HTMLFactory() Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type Method Description View create(Element elem) Creates a view from an element. * ### Methods inherited from class java.lang.[Object](../../../../java/lang/Object.html "class in java.lang") `[clone](../../../../java/lang/Object.html#clone--), [equals](../../../../java/lang/Object.html#equals-java.lang.Object-), [finalize](../../../../java/lang/Object.html#finalize--), [getClass](../../../../java/lang/Object.html#getClass--), [hashCode](../../../../java/lang/Object.html#hashCode--), [notify](../../../../java/lang/Object.html#notify--), [notifyAll](../../../../java/lang/Object.html#notifyAll--), [toString](../../../../java/lang/Object.html#toString--), [wait](../../../../java/lang/Object.html#wait--), [wait](../../../../java/lang/Object.html#wait-long-), [wait](../../../../java/lang/Object.html#wait-long-int-)`
Constructor Detail
* #### HTMLFactory public HTMLFactory()
Method Detail
* #### create public [View](../../../../javax/swing/text/View.html "class in javax.swing.text") create([Element](../../../../javax/swing/text/Element.html "interface in javax.swing.text") elem) Creates a view from an element. Specified by: `[create](../../../../javax/swing/text/ViewFactory.html#create-javax.swing.text.Element-)` in interface `[ViewFactory](../../../../javax/swing/text/ViewFactory.html "interface in javax.swing.text")` Parameters: `elem` \- the element Returns: the view See Also: [View](../../../../javax/swing/text/View.html "class in javax.swing.text")
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.