クラス
javax.swing.text.html.HTMLDocumentの使用
HTMLDocumentを使用するパッケージ
- 
javax.swing.text.htmlでのHTMLDocumentの使用
型HTMLDocumentのパラメータを持つjavax.swing.text.htmlのメソッド修飾子と型メソッド説明protected intHTMLEditorKit.HTMLTextAction.elementCountToTag(HTMLDocument doc, int offset, HTML.Tag tag)いちばん深い葉から数えて、tagを表す要素に到達するまでの要素の数を返します。protected ElementHTMLEditorKit.HTMLTextAction.findElementMatchingTag(HTMLDocument doc, int offset, HTML.Tag tag)tagに一致するoffsetに位置する、いちばん深い要素を返します。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以降は、insertAtBoundaryを使用してください。voidHTMLEditorKit.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のためのカバーです。型HTMLDocumentのパラメータを持つjavax.swing.text.htmlのコンストラクタ修飾子コンストラクタ説明HTMLWriter(Writer w, HTMLDocument doc)新しいHTMLWriterを作成します。HTMLWriter(Writer w, HTMLDocument doc, int pos, int len)新しいHTMLWriterを作成します。