インタフェース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 -
メソッドのサマリー
修飾子と型メソッド説明voidaddAttribute(Object name, Object value) 指定された名前と値を持つ属性を保持することを除いて、これと同じ新しい属性セットを作成します。voidaddAttributes(AttributeSet attributes) 指定された属性と値を持つことを除いて、これと同じ新しい属性セットを作成します。voidremoveAttribute(Object name) 指定したnameを持つ属性を削除します。voidremoveAttributes(Enumeration<?> names) 指定したnamesを持つ属性セットを削除します。voidremoveAttributes(AttributeSet attributes) 指定したnameを持つ属性セットを削除します。voidsetResolveParent(AttributeSet parent) 解釈処理側の親を設定します。インタフェースjavax.swing.text.AttributeSetで宣言されたメソッド
containsAttribute, containsAttributes, copyAttributes, getAttribute, getAttributeCount, getAttributeNames, getResolveParent, isDefined, isEqual
-
メソッドの詳細
-
addAttribute
-
addAttributes
void addAttributes(AttributeSet attributes) 指定された属性と値を持つことを除いて、これと同じ新しい属性セットを作成します。- パラメータ:
attributes- 属性セット
-
removeAttribute
-
removeAttributes
-
removeAttributes
-
setResolveParent
void setResolveParent(AttributeSet parent) 解釈処理側の親を設定します。 これは、属性がローカルで定義されていない場合に解釈処理する属性セットです。- パラメータ:
parent- 親
-