JavaTM 2 Platform
Standard Ed. 6

類別 javax.swing.text.html.HTMLDocument
的使用

使用 HTMLDocument 的軟體套件
javax.swing.text.html 提供類別 HTMLEditorKit 和創建 HTML 文本編輯器的支持類別。 
 

javax.swing.text.html 中 HTMLDocument 的使用
 

返回 HTMLDocument 的 javax.swing.text.html 中的方法
protected  HTMLDocument HTMLEditorKit.HTMLTextAction.getHTMLDocument(JEditorPane e)
           
 

參數型別為 HTMLDocument 的 javax.swing.text.html 中的方法
protected  int HTMLEditorKit.HTMLTextAction.elementCountToTag(HTMLDocument doc, int offset, HTML.Tag tag)
          返回要獲得表示 tag 的元素時,從最深的葉元素開始所需的元素數。
protected  Element HTMLEditorKit.HTMLTextAction.findElementMatchingTag(HTMLDocument doc, int offset, HTML.Tag tag)
          返回在 offset 處與 tag 比對的最深的元素。
protected  Element[] HTMLEditorKit.HTMLTextAction.getElementsAt(HTMLDocument doc, int offset)
          返回包含 offset 的 Elements 陣列。
protected  void HTMLEditorKit.InsertHTMLTextAction.insertAtBoundary(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag)
          當在邊界上插入時調用。
protected  void HTMLEditorKit.InsertHTMLTextAction.insertAtBoundry(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag)
          已過時。 從 Java 2 平臺 v1.3 開始,使用 insertAtBoundary
 void HTMLEditorKit.insertHTML(HTMLDocument doc, int offset, String html, int popDepth, int pushDepth, HTML.Tag insertTag)
          將 HTML 插入現有文檔。
protected  void HTMLEditorKit.InsertHTMLTextAction.insertHTML(JEditorPane editor, HTMLDocument doc, int offset, String html, int popDepth, int pushDepth, HTML.Tag addTag)
          HTMLEditorKit.insertHTML 的一個覆寫。
 

參數型別為 HTMLDocument 的 javax.swing.text.html 中的建構子
HTMLWriter(Writer w, HTMLDocument doc)
          創建新的 HTMLWriter。
HTMLWriter(Writer w, HTMLDocument doc, int pos, int len)
          創建新的 HTMLWriter。
 


JavaTM 2 Platform
Standard Ed. 6

提交錯誤或意見

版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。