|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjavax.swing.text.AbstractDocument.AbstractElement
javax.swing.text.AbstractDocument.BranchElement
public class AbstractDocument.BranchElement
ほかの要素を含む複合要素を実装します。
警告: このクラスの直列化されたオブジェクトは、今後の Swing リリースと互換ではなくなる予定です。現在の直列化のサポートは、短期間の運用や、同じバージョンの Swing を実行するアプリケーション間の RMI に適しています。JDK Version 1.4 以降、すべての JavaBeans™ の長期間の運用サポートは、java.beans パッケージに追加されています。詳細は、XMLEncoder を参照してください。
| 入れ子のクラスの概要 |
|---|
| インタフェース 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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public AbstractDocument.BranchElement(Element parent,
AttributeSet a)
parent - 親要素a - 要素の属性| メソッドの詳細 |
|---|
public Element positionToElement(int pos)
pos - 位置 >= 0
public void replace(int offset,
int length,
Element[] elems)
offset - 開始オフセット <= 0length - 置き換える長さ >= 0elems - 新規要素public String toString()
Object 内の toStringpublic String getName()
Element 内の getNameAbstractDocument.AbstractElement 内の getNamepublic int getStartOffset()
Element 内の getStartOffsetAbstractDocument.AbstractElement 内の getStartOffsetDocument,
AbstractDocumentpublic int getEndOffset()
Element 内の getEndOffsetAbstractDocument.AbstractElement 内の getEndOffsetNullPointerException - この要素に子がない場合Document,
AbstractDocumentpublic Element getElement(int index)
Element 内の getElementAbstractDocument.AbstractElement 内の getElementindex - 子のインデックス >= 0 && < getElementCount()
public int getElementCount()
Element 内の getElementCountAbstractDocument.AbstractElement 内の getElementCountpublic int getElementIndex(int offset)
Element 内の getElementIndexAbstractDocument.AbstractElement 内の getElementIndexoffset - オフセット >= 0
public boolean isLeaf()
Element 内の isLeafTreeNode 内の isLeafAbstractDocument.AbstractElement 内の isLeafpublic boolean getAllowsChildren()
TreeNode 内の getAllowsChildrenAbstractDocument.AbstractElement 内の getAllowsChildrenpublic Enumeration children()
Enumeration として返します。
TreeNode 内の childrenAbstractDocument.AbstractElement 内の children
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。