|
Java プラットフォーム 1.2 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--javax.swing.text.AbstractWriter | +--javax.swing.text.html.HTMLWriter
HTMLDocument のライターです。
クラス javax.swing.text.AbstractWriter から継承したフィールド |
NEWLINE |
コンストラクタの概要 | |
HTMLWriter(Writer w,
HTMLDocument doc)
新しい HTMLWriter を作成します。 |
|
HTMLWriter(Writer w,
HTMLDocument doc,
int pos,
int len)
新しい HTMLWriter を作成します。 |
メソッドの概要 | |
protected void |
closeOutUnwantedEmbeddedTags(AttributeSet attr)
属性セットおよびタグベクタに格納された各タグを検索します。 |
protected void |
comment(Element elem)
コメントを書き出します。 |
protected void |
emptyTag(Element elem)
すべての空要素 (対応する終了タグのないタグ) を書き出します。 |
protected void |
endTag(Element elem)
要素の終了タグを書き出します。 |
protected boolean |
isBlockTag(AttributeSet attr)
要素に対応する HTML タグが block タグかどうかを判定します。 |
protected boolean |
matchNameAttribute(AttributeSet attr,
HTML.Tag tag)
StyleConstants.NameAttribute がパラメータとして渡されるタグに等しい場合は true を返します。 |
protected void |
selectContent(AttributeSet attr)
フォーム要素の SELECT のコンテンツを書き出します。 |
protected void |
startTag(Element elem)
要素の開始タグを書き出します。 |
protected boolean |
synthesizedElement(Element elem)
要素が合成要素の場合は true を返します。 |
protected void |
text(Element elem)
テキストを書き出します。 |
protected void |
textAreaContent(AttributeSet attr)
フォーム要素の TEXTAREA に格納されているテキストを書き出します。 |
void |
write()
要素ツリーで反復されてすべてのタグとその属性の書き込みを制御するメソッドです。 |
protected void |
write(String content)
文字列を書き出します。 |
protected void |
writeAttributes(AttributeSet attr)
属性セットを書き出します。 |
protected void |
writeEmbeddedTags(AttributeSet attr)
AttributeSet で組み込みタグを検索してそれを書き出します。 |
protected void |
writeOption(Option option)
フォーム要素の Option のコンテンツを書き出します。 |
クラス javax.swing.text.AbstractWriter から継承したメソッド |
decrIndent,
getDocument,
getElementIterator,
getText,
incrIndent,
indent,
inRange,
setIndentSpace,
setLineLength,
write |
クラス java.lang.Object から継承したメソッド |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
コンストラクタの詳細 |
public HTMLWriter(Writer w, HTMLDocument doc)
w
- ライターdoc
- HTMLDocumentpublic HTMLWriter(Writer w, HTMLDocument doc, int pos, int len)
w
- Writerdoc
- HTMLDocumentpos
- ドキュメント内でコンテンツを取得する位置len
- 書き出す量メソッドの詳細 |
public void write() throws IOException, BadLocationException
protected void writeAttributes(AttributeSet attr) throws IOException
attr
- 属性セットprotected void emptyTag(Element elem) throws BadLocationException, IOException
elem
- 要素protected boolean isBlockTag(AttributeSet attr)
attr
- 属性セットprotected void startTag(Element elem) throws IOException, BadLocationException
elem
- 要素protected void textAreaContent(AttributeSet attr) throws BadLocationException, IOException
attr
- AttributeSetprotected void text(Element elem) throws BadLocationException, IOException
elem
- Elementprotected void write(String content) throws IOException
content
- コンテンツの文字列表現protected void selectContent(AttributeSet attr) throws IOException
attr
- フォーム要素に関連付けられた AttributeSetprotected void writeOption(Option option) throws IOException
option
- Optionprotected void endTag(Element elem) throws IOException
elem
- 要素protected void comment(Element elem) throws BadLocationException, IOException
elem
- 要素protected boolean synthesizedElement(Element elem)
protected boolean matchNameAttribute(AttributeSet attr, HTML.Tag tag)
protected void writeEmbeddedTags(AttributeSet attr) throws IOException
protected void closeOutUnwantedEmbeddedTags(AttributeSet attr) throws IOException
|
Java プラットフォーム 1.2 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |