|
JavaTM 2 Platform Std. Ed. v1.4.0 |
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
java.lang.Object
|
+--javax.swing.text.AbstractDocument.AbstractElement
|
+--javax.swing.text.AbstractDocument.LeafElement
ある種のコンテンツを直接表す要素を実装します。
警告:
このクラスの直列化されたオブジェクトは、今後の Swing のリリースとは互換性を持ちません。現在の直列化サポートは、短期間の運用や、同じバージョンの Swing を実行するアプリケーション間の RMI に適しています。1.4 では、すべての JavaBeansTM の長期運用サポートが、 java.beans パッケージに追加されました。XMLEncoder を参照してください。
Element| 入れ子クラスの概要 |
| クラス javax.swing.text.AttributeSet から継承した入れ子クラス |
AttributeSet.CharacterAttribute, AttributeSet.ColorAttribute, AttributeSet.FontAttribute, AttributeSet.ParagraphAttribute |
| フィールドの概要 |
| インタフェース javax.swing.text.AttributeSet から継承したフィールド |
NameAttribute, ResolveAttribute |
| コンストラクタの概要 | |
AbstractDocument.LeafElement(Element parent,
AttributeSet a,
int offs0,
int offs1)
ドキュメント内のコンテンツを表す (子を持たない) 要素を作成します。 |
|
| メソッドの概要 | |
Enumeration |
children()
レシーバの子を Enumeration で返します。 |
boolean |
getAllowsChildren()
レシーバが子を許可する場合は true を返します。 |
Element |
getElement(int index)
子要素を取得します。 |
int |
getElementCount()
子要素の数を返します。 |
int |
getElementIndex(int pos)
指定されたモデルオフセットに最も近い子要素インデックスを取得します。 |
int |
getEndOffset()
要素のモデル内での終了オフセットを取得します。 |
String |
getName()
要素の名前を取得します。 |
int |
getStartOffset()
要素のモデル内での開始オフセットを取得します。 |
boolean |
isLeaf()
要素が葉かどうかを調べます。 |
String |
toString()
要素を文字列に変換します。 |
| クラス java.lang.Object から継承したメソッド |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| コンストラクタの詳細 |
public AbstractDocument.LeafElement(Element parent,
AttributeSet a,
int offs0,
int offs1)
parent - 親要素a - 要素の属性offs0 - 開始オフセット >= 0offs1 - 終了オフセット >= offs0| メソッドの詳細 |
public String toString()
Object 内の toStringpublic int getStartOffset()
Element 内の getStartOffsetAbstractDocument.AbstractElement 内の getStartOffsetpublic int getEndOffset()
Element 内の getEndOffsetAbstractDocument.AbstractElement 内の getEndOffsetpublic String getName()
Element 内の getNameAbstractDocument.AbstractElement 内の getNamepublic int getElementIndex(int pos)
Element 内の getElementIndexAbstractDocument.AbstractElement 内の getElementIndexpos - オフセット >= 0
public Element getElement(int index)
Element 内の getElementAbstractDocument.AbstractElement 内の getElementindex - 子のインデックス >= 0 && < getElementCount()
public int getElementCount()
Element 内の getElementCountAbstractDocument.AbstractElement 内の getElementCountpublic boolean isLeaf()
Element 内の isLeafAbstractDocument.AbstractElement 内の isLeafpublic boolean getAllowsChildren()
TreeNode 内の getAllowsChildrenAbstractDocument.AbstractElement 内の getAllowsChildrenpublic Enumeration children()
Enumeration で返します。
TreeNode 内の childrenAbstractDocument.AbstractElement 内の children
|
JavaTM 2 Platform Std. Ed. v1.4.0 |
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
Java、Java 2D、および JDBC は米国ならびにその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.