Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
PREV | NEXT | SHOW LISTS | HIDE LISTS |
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);
Method Summary | |
void | add(String name,
Object value)
|
void | add(AttributeSet attributes)
|
void | remove(String name)
|
void | remove(Enumeration names)
|
void | set(AttributeSet attributes)
|
Method Detail |
public void add(String name, Object value)
name
- the name of the attribute to add
value
- the value of the attribute to add
public void add(AttributeSet attributes)
attributes
- the set of attributes to add
public void remove(String name)
name
- the name of the attribute to remove
public void remove(Enumeration names)
names
- an enumeration over the names of attributes to remove. The
elements of the enumeration are Strings.
public void set(AttributeSet attributes)
attributes
- the set of attributes to add
Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
PREV | NEXT | SHOW LISTS | HIDE LISTS |