FileDocCategorySizeDatePackage
MutableAttributeSet.javaAPI DocJava SE 5 API1951Fri Aug 26 14:58:16 BST 2005javax.swing.text

MutableAttributeSet

public interface MutableAttributeSet implements AttributeSet
A generic interface for a mutable collection of unique attributes. Implementations will probably want to provide a constructor of the form: public XXXAttributeSet(ConstAttributeSet source);
version
1.17 05/05/04

Fields Summary
Constructors Summary
Methods Summary
public voidaddAttribute(java.lang.Object name, java.lang.Object value)
Creates a new attribute set similar to this one except that it contains an attribute with the given name and value. The object must be immutable, or not mutated by any client.

param
name the name
param
value the value

public voidaddAttributes(javax.swing.text.AttributeSet attributes)
Creates a new attribute set similar to this one except that it contains the given attributes and values.

param
attributes the set of attributes

public voidremoveAttribute(java.lang.Object name)
Removes an attribute with the given name.

param
name the attribute name

public voidremoveAttributes(java.util.Enumeration names)
Removes an attribute set with the given names.

param
names the set of names

public voidremoveAttributes(javax.swing.text.AttributeSet attributes)
Removes a set of attributes with the given name.

param
attributes the set of attributes

public voidsetResolveParent(javax.swing.text.AttributeSet parent)
Sets the resolving parent. This is the set of attributes to resolve through if an attribute isn't defined locally.

param
parent the parent