| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjavax.swing.text.AbstractDocument.AbstractElement
public abstract class AbstractDocument.AbstractElement
要素の抽象部分を実装します。デフォルトでは、要素の現在の属性セットについて不変部分を表すフィールドを保持することで、要素は属性をサポートしています。要素自身は、MutableAttributeSet を実装します。MutableAttributeSet を使用すると、新たな不変セットを取り出してセットを変更できます。不変セットは、ドキュメントに関連する AttributeContext により提供されます。
警告: このクラスの直列化されたオブジェクトは、今後の 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.AbstractElement(Element parent,
                                 AttributeSet a)新しい AbstractElement を作成します。 | |
| メソッドの概要 | |
|---|---|
|  void | addAttribute(Object name,
             Object value)要素に属性を追加します。 | 
|  void | addAttributes(AttributeSet attr)属性セットを要素に追加します。 | 
| abstract  Enumeration | children()レシーバの子を Enumerationとして返します。 | 
|  boolean | containsAttribute(Object name,
                  Object value)属性の名前と値が定義済みであるかどうかを判定します。 | 
|  boolean | containsAttributes(AttributeSet attrs)要素にすべての属性が含まれているかどうかを判定します。 | 
|  AttributeSet | copyAttributes()属性セットをコピーします。 | 
|  void | dump(PrintStream psOut,
     int indentAmount)要素階層のデバッグ表現をダンプします。 | 
| abstract  boolean | getAllowsChildren()レシーバが子を許可する場合は true を返します。 | 
|  Object | getAttribute(Object attrName)属性の値を取得します。 | 
|  int | getAttributeCount()定義されている属性の個数を取得します。 | 
|  Enumeration<?> | getAttributeNames()すべての属性の名前を取得します。 | 
|  AttributeSet | getAttributes()要素の属性を取得します。 | 
|  TreeNode | getChildAt(int childIndex)インデックス childIndexにある子TreeNodeを返します。 | 
|  int | getChildCount()TreeNodeのレシーバが格納する子の数を返します。 | 
|  Document | getDocument()基盤となるモデルを取得します。 | 
| abstract  Element | getElement(int index)子要素を取得します。 | 
| abstract  int | getElementCount()要素の子の数を取得します。 | 
| abstract  int | getElementIndex(int offset)指定されたモデルオフセットにもっとも近い子要素インデックスを取得します。 | 
| abstract  int | getEndOffset()要素のモデル内での終了オフセットを取得します。 | 
|  int | getIndex(TreeNode node)レシーバの子の中で nodeのインデックスを返します。 | 
|  String | getName()要素の名前を取得します。 | 
|  TreeNode | getParent()レシーバの親 TreeNodeを返します。 | 
|  Element | getParentElement()要素の親を取得します。 | 
|  AttributeSet | getResolveParent()解釈処理側の親を返します。 | 
| abstract  int | getStartOffset()要素のモデル内での開始オフセットを取得します。 | 
|  boolean | isDefined(Object attrName)指定された属性が定義済みであるかどうかを判定します。 | 
|  boolean | isEqual(AttributeSet attr)2 つの属性セットが等しいかどうかを判定します。 | 
| abstract  boolean | isLeaf()要素が葉かどうかを調べます。 | 
|  void | removeAttribute(Object name)セットから属性を削除します。 | 
|  void | removeAttributes(AttributeSet attrs)要素の属性セットを削除します。 | 
|  void | removeAttributes(Enumeration<?> names)要素の属性セットを削除します。 | 
|  void | setResolveParent(AttributeSet parent)解釈処理側の親を設定します。 | 
| クラス java.lang.Object から継承されたメソッド | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| コンストラクタの詳細 | 
|---|
public AbstractDocument.AbstractElement(Element parent,
                                        AttributeSet a)
parent - 親要素a - 要素の属性| メソッドの詳細 | 
|---|
public void dump(PrintStream psOut,
                 int indentAmount)
psOut - 出力ストリームindentAmount - インデントレベル >= 0public int getAttributeCount()
AttributeSet 内の getAttributeCountAttributeSet.getAttributeCount()public boolean isDefined(Object attrName)
AttributeSet 内の isDefinedattrName - null 以外の属性名
AttributeSet.isDefined(java.lang.Object)public boolean isEqual(AttributeSet attr)
AttributeSet 内の isEqualattr - 比較の対象となる属性セット
AttributeSet.isEqual(javax.swing.text.AttributeSet)public AttributeSet copyAttributes()
AttributeSet 内の copyAttributesAttributeSet.copyAttributes()public Object getAttribute(Object attrName)
AttributeSet 内の getAttributeattrName - null 以外の属性名
AttributeSet.getAttribute(java.lang.Object)public Enumeration<?> getAttributeNames()
AttributeSet 内の getAttributeNamesAttributeSet.getAttributeNames()
public boolean containsAttribute(Object name,
                                 Object value)
AttributeSet 内の containsAttributename - null 以外の属性名value - 属性値
AttributeSet.containsAttribute(java.lang.Object, java.lang.Object)public boolean containsAttributes(AttributeSet attrs)
AttributeSet 内の containsAttributesattrs - チェック対象の属性
AttributeSet.containsAttributes(javax.swing.text.AttributeSet)public AttributeSet getResolveParent()
AttributeSet 内の getResolveParentnullAttributeSet.getResolveParent()
public void addAttribute(Object name,
                         Object value)
MutableAttributeSet 内の addAttributename - null 以外の属性名value - 属性値MutableAttributeSet.addAttribute(java.lang.Object, java.lang.Object)public void addAttributes(AttributeSet attr)
MutableAttributeSet 内の addAttributesattr - 追加する属性MutableAttributeSet.addAttribute(java.lang.Object, java.lang.Object)public void removeAttribute(Object name)
MutableAttributeSet 内の removeAttributename - null 以外の属性名MutableAttributeSet.removeAttribute(java.lang.Object)public void removeAttributes(Enumeration<?> names)
MutableAttributeSet 内の removeAttributesnames - 属性名MutableAttributeSet.removeAttributes(java.util.Enumeration>)public void removeAttributes(AttributeSet attrs)
MutableAttributeSet 内の removeAttributesattrs - 属性MutableAttributeSet.removeAttributes(java.util.Enumeration>)public void setResolveParent(AttributeSet parent)
MutableAttributeSet 内の setResolveParentparent - 親。ない場合は nullMutableAttributeSet.setResolveParent(javax.swing.text.AttributeSet)public Document getDocument()
Element 内の getDocumentpublic Element getParentElement()
Element 内の getParentElementpublic AttributeSet getAttributes()
Element 内の getAttributespublic String getName()
Element 内の getNamepublic abstract int getStartOffset()
Element 内の getStartOffsetDocument, 
AbstractDocumentpublic abstract int getEndOffset()
Element 内の getEndOffsetDocument, 
AbstractDocumentpublic abstract Element getElement(int index)
Element 内の getElementindex - 子のインデックス >= 0  && < getElementCount()
public abstract int getElementCount()
Element 内の getElementCountpublic abstract int getElementIndex(int offset)
Element 内の getElementIndexoffset - オフセット >= 0
public abstract boolean isLeaf()
Element 内の isLeafTreeNode 内の isLeafpublic TreeNode getChildAt(int childIndex)
childIndex にある子 TreeNode を返します。
TreeNode 内の getChildAtpublic int getChildCount()
TreeNode のレシーバが格納する子の数を返します。
TreeNode 内の getChildCountTreeNodews の レシーバが格納する子の数public TreeNode getParent()
TreeNode を返します。
TreeNode 内の getParentTreeNodepublic int getIndex(TreeNode node)
node のインデックスを返します。レシーバが node を格納しない場合は、-1 が返されます。
TreeNode 内の getIndexnode - 対象の位置
node のインデックス。 存在しない場合は -1public abstract boolean getAllowsChildren()
TreeNode 内の getAllowsChildrenpublic abstract Enumeration children()
Enumeration として返します。
TreeNode 内の childrenEnumeration)| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。