|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個 下一個 | 框架 無框架 | |||||||||
| 使用 HTMLEditorKit.Parser 的軟體套件 | |
|---|---|
| javax.swing.text.html | 提供類別 HTMLEditorKit 和創建 HTML 文本編輯器的支持類別。 |
| javax.swing.text.html.parser | 提供預設的 HTML 解析器以及支持類別。 |
| javax.swing.text.html 中 HTMLEditorKit.Parser 的使用 |
|---|
| 返回 HTMLEditorKit.Parser 的 javax.swing.text.html 中的方法 | |
|---|---|
HTMLEditorKit.Parser |
HTMLDocument.getParser()
返回將 HTML 插入現有文檔時所使用的解析器。 |
protected HTMLEditorKit.Parser |
HTMLEditorKit.getParser()
獲取要用於讀取 HTML 串流的解析器。 |
| 參數型別為 HTMLEditorKit.Parser 的 javax.swing.text.html 中的方法 | |
|---|---|
void |
HTMLDocument.setParser(HTMLEditorKit.Parser parser)
設置將 html 插入現有文檔的方法所使用的解析器,例如 setInnerHTML 和 setOuterHTML。 |
| javax.swing.text.html.parser 中 HTMLEditorKit.Parser 的使用 |
|---|
| javax.swing.text.html.parser 中 HTMLEditorKit.Parser 的子類別 | |
|---|---|
class |
ParserDelegator
負責每次在調用其 parse 方法時啟動一個新的 DocumentParser。 |
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個 下一個 | 框架 無框架 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。