|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjavax.swing.text.AbstractDocument.AbstractElement
javax.swing.text.AbstractDocument.LeafElement
public class AbstractDocument.LeafElement
ある種のコンテンツを直接表す要素を実装します。
警告: このクラスの直列化されたオブジェクトは、今後の Swing リリースと互換ではなくなる予定です。現在の直列化のサポートは、短期間の運用や、同じバージョンの Swing を実行するアプリケーション間の RMI に適しています。JDK バージョン 1.4 以降、すべての JavaBeans™ の長期間の運用サポートは、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, finalize, 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 内の getStartOffsetDocument,
AbstractDocumentpublic int getEndOffset()
Element 内の getEndOffsetAbstractDocument.AbstractElement 内の getEndOffsetDocument,
AbstractDocumentpublic 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 内の isLeafTreeNode 内の isLeafAbstractDocument.AbstractElement 内の isLeafpublic boolean getAllowsChildren()
TreeNode 内の getAllowsChildrenAbstractDocument.AbstractElement 内の getAllowsChildrenpublic Enumeration children()
Enumeration で返します。
TreeNode 内の childrenAbstractDocument.AbstractElement 内の children
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。