类的用途
javax.swing.text.html.HTMLDocument
使用 HTMLDocument 的包
-
HTMLDocument 在 javax.swing.text.html 中的用法
javax.swing.text.html 中返回 HTMLDocument 的方法修饰符和类型方法描述protected HTMLDocumentHTMLEditorKit.HTMLTextAction.getHTMLDocument(JEditorPane e) 返回给定JEditorPane的HTMLDocument。javax.swing.text.html 中的方法,参数类型为 HTMLDocument修饰符和类型方法描述protected intHTMLEditorKit.HTMLTextAction.elementCountToTag(HTMLDocument doc, int offset, HTML.Tag tag) 返回元素的数量,从最深的叶子开始,需要到达代表tag的元素。protected ElementHTMLEditorKit.HTMLTextAction.findElementMatchingTag(HTMLDocument doc, int offset, HTML.Tag tag) 返回offset匹配tag的最深元素。protected Element[]HTMLEditorKit.HTMLTextAction.getElementsAt(HTMLDocument doc, int offset) 返回包含offset的元素数组。protected voidHTMLEditorKit.InsertHTMLTextAction.insertAtBoundary(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag) 在边界插入时调用此方法。protected voidHTMLEditorKit.InsertHTMLTextAction.insertAtBoundry(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag) 已弃用。从 Java 2 平台 v1.3 开始,使用 insertAtBoundaryvoidHTMLEditorKit.insertHTML(HTMLDocument doc, int offset, String html, int popDepth, int pushDepth, HTML.Tag insertTag) 将 HTML 插入现有文档。protected voidHTMLEditorKit.InsertHTMLTextAction.insertHTML(JEditorPane editor, HTMLDocument doc, int offset, String html, int popDepth, int pushDepth, HTML.Tag addTag) HTMLEditorKit.insertHTML 的封面。javax.swing.text.html 中的构造函数,参数类型为 HTMLDocument修饰符构造方法描述HTMLWriter(Writer w, HTMLDocument doc) 创建一个新的 HTMLWriter。HTMLWriter(Writer w, HTMLDocument doc, int pos, int len) 创建一个新的 HTMLWriter。