クラス
javax.swing.text.html.HTMLDocumentの使用
| パッケージ | 説明 |
|---|---|
| javax.swing.text.html |
HTMLテキスト・エディタを作成するためのクラス
HTMLEditorKitとサポート・クラスを提供します。 |
-
javax.swing.text.htmlでのHTMLDocumentの使用
HTMLDocumentを返すjavax.swing.text.html内のメソッド 修飾子と型 メソッド 説明 protected HTMLDocumentHTMLEditorKit.HTMLTextAction. getHTMLDocument(JEditorPane e)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を作成します。