oracle.html
クラス Comment

java.lang.Object
  |
  +--oracle.html.IHtmlItemImpl
        |
        +--oracle.html.Comment
 

public class Comment
extends IHtmlItemImpl

説明:

HTMLに指定されているコメントです。

使用方法:

このクラスは、Htmlページにコメントを入れるために使用します。 コメントはクライアントには表示されないので注意してください。

例:

 // Creates a comment
 Comment comment = new Comment("Expires: 28 Feb 1996");
 // Adds comment to body (assuming it already exists)
 body.addItem(comment);
  

関連項目:
IHtmlItem

コンストラクタの概要
Comment(java.lang.String content)
          Commentオブジェクトを作成します。
 
メソッドの概要
 java.lang.String toHTML()
          オブジェクトの内容をHTML文字列として返します。
 java.lang.String toString()
           
 
クラス oracle.html.IHtmlItemImplから継承したメソッド
print, print
 
クラス java.lang.Objectから継承したメソッド
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

Comment

public Comment(java.lang.String content) 
Commentオブジェクトを作成します。
パラメータ:
content - -- コメントの内容
メソッドの詳細

toHTML

public java.lang.String toHTML() 
クラスIHtmlItemImplの記述:
オブジェクトの内容をHTML文字列として返します。
オーバーライド:
クラス IHtmlItemImpl内のtoHTML
タグのコピー元クラス: IHtmlItemImpl
戻り値:
オブジェクトの内容を表すHTML文字列

toString

public java.lang.String toString() 
オーバーライド:
クラス java.lang.ObjectのtoString