Java プラットフォーム 1.2

クラス
javax.swing.text.html.HTMLDocument の使用

HTMLDocument を使用するパッケージ
javax.swing.text.html HTML テキストエディタを作成するための HTMLEditorKit クラスとサポートクラスを提供します。  
 

javax.swing.text.html における HTMLDocument の使用方法
 

HTMLDocument を返す javax.swing.text.html におけるメソッド
protected  HTMLDocument HTMLEditorKit.HTMLTextAction.getHTMLDocument(JEditorPane e)
           
 

HTMLDocument のパラメータを持つ javax.swing.text.html におけるメソッド
 void HTMLEditorKit.insertHTML(HTMLDocument doc, int offset, String html, int popDepth, int pushDepth, HTML.Tag insertTag)
          既存のドキュメントに HTML を挿入します。
protected  Element[] HTMLEditorKit.HTMLTextAction.getElementsAt(HTMLDocument doc, int offset)
          offset が格納されている Element の配列を返します。
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  void HTMLEditorKit.InsertHTMLTextAction.insertHTML(JEditorPane editor, HTMLDocument doc, int offset, String html, int popDepth, int pushDepth, HTML.Tag addTag)
          HTMLEditorKit.insertHTML のためのカバーです。
protected  void HTMLEditorKit.InsertHTMLTextAction.insertAtBoundry(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag)
          境界に挿入するときに、このメソッドが呼び出されます。
 

HTMLDocument のパラメータを持つ javax.swing.text.html におけるコンストラクタ
HTMLWriter.HTMLWriter(Writer w, HTMLDocument doc)
          新しい HTMLWriter を作成します。
HTMLWriter.HTMLWriter(Writer w, HTMLDocument doc, int pos, int len)
          新しい HTMLWriter を作成します。
HTMLDocument.HTMLReader.HTMLDocument.HTMLReader(int offset)
           
HTMLDocument.HTMLReader.HTMLDocument.HTMLReader(int offset, int popDepth, int pushDepth, HTML.Tag insertTag)
           
HTMLDocument.RunElement.HTMLDocument.RunElement(Element parent, AttributeSet a, int offs0, int offs1)
          ドキュメント内のコンテンツを表す (子を持たない) 要素を作成します。
HTMLDocument.BlockElement.HTMLDocument.BlockElement(Element parent, AttributeSet a)
          最初は子を含まない、複合要素を作成します。
 


Java プラットフォーム 1.2

バグや機能要求の報告
新しい javadoc の表示についてのコメントやご提案
Java は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.