JavaTM Platform
Standard Ed. 6

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

すべてのスーパーインタフェース:
AttributeSet
既知のサブインタフェースの一覧:
Style
既知の実装クラスの一覧:
AbstractDocument.AbstractElement, AbstractDocument.BranchElement, AbstractDocument.LeafElement, DefaultStyledDocument.SectionElement, HTMLDocument.BlockElement, HTMLDocument.RunElement, SimpleAttributeSet, StyleContext.NamedStyle

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)
          指定した name を持つ属性を削除します。
 void removeAttributes(AttributeSet attributes)
          指定した name を持つ属性セットを削除します。
 void removeAttributes(Enumeration<?> names)
          指定した name を持つ属性セットを削除します。
 void setResolveParent(AttributeSet parent)
          解釈処理側の親を設定します。
 
インタフェース javax.swing.text.AttributeSet から継承されたメソッド
containsAttribute, containsAttributes, copyAttributes, getAttribute, getAttributeCount, getAttributeNames, getResolveParent, isDefined, isEqual
 

メソッドの詳細

addAttribute

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

パラメータ:
name - 名前
value - 値

addAttributes

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

パラメータ:
attributes - 属性セット

removeAttribute

void removeAttribute(Object name)
指定した name を持つ属性を削除します。

パラメータ:
name - 属性名

removeAttributes

void removeAttributes(Enumeration<?> names)
指定した name を持つ属性セットを削除します。

パラメータ:
names - 名前のセット

removeAttributes

void removeAttributes(AttributeSet attributes)
指定した name を持つ属性セットを削除します。

パラメータ:
attributes - 属性セット

setResolveParent

void setResolveParent(AttributeSet parent)
解釈処理側の親を設定します。これは、属性がローカルで定義されていない場合に解釈処理する属性セットです。

パラメータ:
parent - 親

JavaTM Platform
Standard Ed. 6

バグの報告と機能のリクエスト
さらに詳しい API リファレンスおよび開発者ドキュメントについては、Java SE 開発者用ドキュメントを参照してください。開発者向けの詳細な解説、概念の概要、用語の定義、バグの回避策、およびコード実例が含まれています。

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。