javax.swing.text.html
類別 HTMLEditorKit.HTMLFactory
java.lang.Object
javax.swing.text.html.HTMLEditorKit.HTMLFactory
- 所有已實作的介面:
- ViewFactory
- 正在封閉類別:
- HTMLEditorKit
public static class HTMLEditorKit.HTMLFactory
- extends Object
- implements ViewFactory
用於建構 HTML 視圖的處理器。下表描述了預設情況下此處理器所建構的視圖。
標記 | 創建的視圖
|
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
|
從類別 java.lang.Object 繼承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTMLEditorKit.HTMLFactory
public HTMLEditorKit.HTMLFactory()
create
public View create(Element elem)
- 根據元素創建視圖。
- 指定者:
- 介面
ViewFactory
中的 create
- 參數:
elem
- 元素
- 返回:
- 視圖
- 另請參見:
View
提交錯誤或意見版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。