|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||
java.lang.Object
|
+--oracle.html.IHtmlItemImpl
|
+--oracle.html.Item
|
+--oracle.html.CompoundItem
説明:
CompoundItemは、型を保持したまま項目を収納するタイプセーフ・コンテナ・クラスです。
クライアントはこのクラスを使用して、コンポーネント・ベースの動的ページを作成するカスタム・クラスを作成できます。
このクラスはContainerクラスとは違います。Containerは項目ではありません。
使用方法:
このクラスは、それ自体がHTMLの項目であるカスタム・コンテナ・コンポーネントを作成するときに使用します(たとえば、setBold()のようなメソッドがこのオブジェクトに適用されます)。
例:
// Create a new CompoundItem object
CompoundItem compoundItem = new CompoundItem();
// Set the default text attribute of all items in Compound Item
// Note that this operation cannot be done with a Container
compoundItem.setItal();
// Add a SimpleItem and a TextArea to the CompoundItem
compoundItem.addItem(new Simpleitem("How are you?").setBold())
.addItem(new TextArea("response", 30, 10));
// Add the CompoundItem to the body object (assuming it's been created)
body.addItem(compoundItem);
Item, Container| フィールドの概要 | |
static int |
INITIAL_CAPACITY
|
| コンストラクタの概要 | |
CompoundItem()
空のCompoundItemオブジェクトを作成します。 |
|
CompoundItem(int initCapacity)
指定されたストレージ容量を持つCompoundItemオブジェクトを作成します。 |
|
| メソッドの概要 | |
CompoundItem |
addItem(IHtmlItem item)
CompoundItemオブジェクトに項目を追加します。 |
CompoundItem |
addItem(java.lang.String string)
CompoundItemオブジェクトにSimpleItem項目を追加します。 注意: 簡易関数です。 |
IHtmlItem |
itemAt(int index)
CompoundItemオブジェクトから項目を取り出します。 |
java.util.Enumeration |
items()
|
CompoundItem |
setItemAt(IHtmlItem item, int index)
インデックスにより指定された位置に項目を設定します。その位置にあった元の項目は破棄されます。 |
int |
size()
オブジェクト内の項目数を返します。 |
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 |
| フィールドの詳細 |
public static final int INITIAL_CAPACITY
| コンストラクタの詳細 |
public CompoundItem(int initCapacity)
initCapacity - オブジェクトの初期設定のストレージ容量Vectorpublic CompoundItem()
| メソッドの詳細 |
public CompoundItem addItem(IHtmlItem item)
item - オブジェクトに追加される項目IHtmlItempublic CompoundItem addItem(java.lang.String string)
string - オブジェクトに追加される文字列SimpleItempublic IHtmlItem itemAt(int index)
index - 指定された位置(ゼロ基準)
public CompoundItem setItemAt(IHtmlItem item,
int index)
item - 設定される項目index - 指定された位置Vectorpublic int size()
public java.lang.String toHTML()
public java.lang.String toString()
public java.util.Enumeration items()
|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||