JavaTM 2 Platform
Std. Ed. v1.3

javax.swing.text
インタフェース MutableAttributeSet

すべてのスーパーインタフェース:
AttributeSet
既知のサブインタフェースの一覧:
Style
既知の実装クラスの一覧:
SimpleAttributeSet, AbstractDocument.AbstractElement

public interface MutableAttributeSet
extends AttributeSet

一意な属性を集めた可変コレクションの汎用インタフェースです。 実装はおそらく、次の形式のコンストラクタを提供しようとします。public XXXAttributeSet(ConstAttributeSet source);


クラス javax.swing.text.AttributeSet から継承した内部クラス
AttributeSet.CharacterAttribute, AttributeSet.ColorAttribute, AttributeSet.FontAttribute, AttributeSet.ParagraphAttribute
 
インタフェース javax.swing.text.AttributeSet から継承したフィールド
NameAttribute, ResolveAttribute
 
メソッドの概要
 void addAttribute(Object name, Object value)
          指定された名前と値を持つ属性を保持することを除いて、これと同じ新しい属性セットを作成します。
 void addAttributes(AttributeSet attributes)
          指定された属性と値を持つことを除いて、これと同じ新しい属性セットを作成します。
 void removeAttribute(Object name)
          指定された名前の属性を持たないことを除いて、これと同じ新しい属性セットを作成します。
 void removeAttributes(AttributeSet attributes)
          指定された名前と値のどれかを持つ属性を保持しないことを除いて、これと同じ新しい属性セットを作成します。
 void removeAttributes(Enumeration names)
          指定された名前のどれかを持つ属性を保持しないことを除いて、これと同じ新しい属性セットを作成します。
 void setResolveParent(AttributeSet parent)
          解釈処理側の親を設定します。
 
インタフェース javax.swing.text.AttributeSet から継承したメソッド
containsAttribute, containsAttributes, copyAttributes, getAttribute, getAttributeCount, getAttributeNames, getResolveParent, isDefined, isEqual
 

メソッドの詳細

addAttribute

public void addAttribute(Object name,
                         Object value)
指定された名前と値を持つ属性を保持することを除いて、これと同じ新しい属性セットを作成します。オブジェクトは不変でなければなりません。つまり、どのクライアントによっても変更できません。
パラメータ:
name - 名前
value - 値

addAttributes

public void addAttributes(AttributeSet attributes)
指定された属性と値を持つことを除いて、これと同じ新しい属性セットを作成します。
パラメータ:
attributes - 属性セット

removeAttribute

public void removeAttribute(Object name)
指定された名前の属性を持たないことを除いて、これと同じ新しい属性セットを作成します。
パラメータ:
name - 属性名

removeAttributes

public void removeAttributes(Enumeration names)
指定された名前のどれかを持つ属性を保持しないことを除いて、これと同じ新しい属性セットを作成します。
パラメータ:
names - 名前のセット

removeAttributes

public void removeAttributes(AttributeSet attributes)
指定された名前と値のどれかを持つ属性を保持しないことを除いて、これと同じ新しい属性セットを作成します。同じ名前と異なる値を持つ既存の属性は残ります。
パラメータ:
attributes - 属性セット

setResolveParent

public void setResolveParent(AttributeSet parent)
解釈処理側の親を設定します。これは、属性がローカルに定義されていないかどうかを解釈処理するための属性セットです。
パラメータ:
parent - 親

JavaTM 2 Platform
Std. Ed. v1.3

バグや機能要求の報告
さらに詳しい API リファレンスおよび開発者ドキュメントについては、 Java 2 SDK SE Developer Documentation を参照してください。このドキュメントには、概念、用語の定義、回避策、 実用的なコード例など、開発者を対象にした詳細な解説が掲載されています。

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.