|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--javax.swing.text.AbstractDocument.AbstractElement | +--javax.swing.text.AbstractDocument.BranchElement
他の要素を含む複合要素を実装します。
警告: このクラスの直列化されたオブジェクトは、今後の Swing リリースと互換ではなくなる予定です。現在の直列化のサポートは、短期間の運用や、同じバージョンの Swing を実行するアプリケーション間の RMI に適しています。今後の Swing リリースでは、長期間の持続性をサポートする予定です。
クラス javax.swing.text.AttributeSet から継承した内部クラス |
AttributeSet.CharacterAttribute, AttributeSet.ColorAttribute, AttributeSet.FontAttribute, AttributeSet.ParagraphAttribute |
インタフェース javax.swing.text.AttributeSet から継承したフィールド |
NameAttribute, ResolveAttribute |
コンストラクタの概要 | |
AbstractDocument.BranchElement(Element parent,
AttributeSet a)
初期状態では子を持たない複合要素を構築します。 |
メソッドの概要 | |
Enumeration |
children()
受信側の子を Enumeration として返します。 |
boolean |
getAllowsChildren()
受信側が子を許可する場合に true を返します。 |
Element |
getElement(int index)
子要素を取得します。 |
int |
getElementCount()
要素の子の数を取得します。 |
int |
getElementIndex(int offset)
指定されたモデル内オフセットにもっとも近い、子要素のインデックスを取得します。 |
int |
getEndOffset()
要素のモデルにおける終了オフセットを取得します。 |
String |
getName()
要素の名前を取得します。 |
int |
getStartOffset()
要素のモデルにおける開始オフセットを取得します。 |
boolean |
isLeaf()
要素が葉であるかどうかを判定します。 |
Element |
positionToElement(int pos)
指定されたモデル位置に含まれる子要素を取得します。 |
void |
replace(int offset,
int length,
Element[] elems)
内容を新しい要素セットで置き換えます。 |
String |
toString()
要素を文字列に変換します。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
コンストラクタの詳細 |
public AbstractDocument.BranchElement(Element parent, AttributeSet a)
parent
- 親要素a
- 要素の属性メソッドの詳細 |
public Element positionToElement(int pos)
pos
- 位置 >= 0public void replace(int offset, int length, Element[] elems)
offset
- 開始オフセット >= 0length
- 置き換える長さ >= 0elems
- 新しい要素public String toString()
Object
内の toString
public String getName()
AbstractDocument.AbstractElement
内の getName
public int getStartOffset()
AbstractDocument.AbstractElement
内の getStartOffset
public int getEndOffset()
AbstractDocument.AbstractElement
内の getEndOffset
public Element getElement(int index)
AbstractDocument.AbstractElement
内の getElement
index
- 子のインデックス >= 0 && < getElementCount()public int getElementCount()
AbstractDocument.AbstractElement
内の getElementCount
public int getElementIndex(int offset)
AbstractDocument.AbstractElement
内の getElementIndex
offset
- オフセット >= 0public boolean isLeaf()
AbstractDocument.AbstractElement
内の isLeaf
public boolean getAllowsChildren()
AbstractDocument.AbstractElement
内の getAllowsChildren
public Enumeration children()
AbstractDocument.AbstractElement
内の children
|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
Java、Java 2D、JDBC は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.