All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Interface java.text.MutableAttributeSet

public interface MutableAttributeSet
extends AttributeSet
A generic interface for a mutable collection of unique attributes.

Functions taking AttributeSet as an argument maintain no reference to the attribute set itself. Thus a mutable attribute set may be safely passed to these functions, and later modifications to that set will not affect the contents of this set.

Implementations will probably want to provide a constructor of the form:
public XXXMutableAttributeSet(AttributeSet source);

See Also:
TextAttributeSet

Method Index

 o add(AttributeSet)
Remove any existing attributes with the specified names, and add the new attributes.
 o add(String, Object)
Remove any existing attribute with the specified name, and add a new attribute with the specified name and value.
 o remove(Enumeration)
Remove any existing attributes with the specified names.
 o remove(String)
Remove any existing attribute with the specified name.
 o set(AttributeSet)
Remove all attributes and add the specified attributes.

Methods

 o add
public abstract void add(String name,
                         Object value)
Remove any existing attribute with the specified name, and add a new attribute with the specified name and value.

Parameters:
name - the name of the attribute to add
value - the value of the attribute to add
 o add
public abstract void add(AttributeSet attributes)
Remove any existing attributes with the specified names, and add the new attributes.

Parameters:
attributes - the set of attributes to add
 o remove
public abstract void remove(String name)
Remove any existing attribute with the specified name.

Parameters:
name - the name of the attribute to remove
 o remove
public abstract void remove(Enumeration names)
Remove any existing attributes with the specified names.

Parameters:
names - an enumeration over the names of attributes to remove. The elements of the enumeration are Strings.
 o set
public abstract void set(AttributeSet attributes)
Remove all attributes and add the specified attributes.

Parameters:
attributes - the set of attributes to add

All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Submit a bug or feature