Class HTMLEditorKit.HTMLFactory
java.lang.Object
javax.swing.text.html.HTMLEditorKit.HTMLFactory
- All Implemented Interfaces:
ViewFactory
- Enclosing class:
HTMLEditorKit
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 |
- Implementation Note:
- Parsed tags that are unrecognized or are recognized but unsupported are
handled differently by the editor.
- When the container is editable:
- The tags will be displayed as editable text fields with the tag name.
- The content within the tags will be handled by the editor as regular text.
- When the container is not editable:
- If the tag is recognized but not supported, such as script tags, the tag and its contents will be hidden.
- If the tag is unknown, the tag will be hidden but its contents will display as regular text.
- When the container is editable:
-
Constructor Summary
Constructors -
Method Summary
Methods declared in class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()Answers a new instance of the same class as the receiver, whose slots have been filled in with the values in the slots of the receiver.booleanCompares the argument to the receiver, and answers true if they represent the same object using a class specific comparison.protected voidfinalize()Deprecated, for removal: This API element is subject to removal in a future version.May cause performance issues, deadlocks and hangs.getClass()Answers the unique instance of java.lang.Class which represents the class of the receiver.inthashCode()Answers an integer hash code for the receiver.final voidnotify()Causes one thread which iswaiting on the receiver to be made ready to run.final voidCauses all threads which arewaiting on the receiver to be made ready to run.toString()Answers a string containing a concise, human-readable description of the receiver.final voidwait()Causes the thread which sent this message to be made not ready to run pending some change in the receiver (as indicated bynotifyornotifyAll).final voidwait(long time) Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated bynotifyornotifyAll) or the expiration of the timeout.final voidwait(long time, int frac) Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated bynotifyornotifyAll) or the expiration of the timeout.
-
Constructor Details
-
HTMLFactory
public HTMLFactory()Constructs aHTMLFactory.
-
-
Method Details
-
create
Creates a view from an element.- Specified by:
createin interfaceViewFactory- Parameters:
elem- the element- Returns:
- the view
- See Also:
-