javax.swing.text.MutableAttributeSet |
![]() |
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);
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new attribute set similar to this one except that it contains
an attribute with the given name and value.
| |||||||||||
Creates a new attribute set similar to this one except that it contains
the given attributes and values.
| |||||||||||
Removes an attribute with the given
name . | |||||||||||
Removes an attribute set with the given
names . | |||||||||||
Removes a set of attributes with the given
name . | |||||||||||
Sets the resolving parent.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
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.
name | the name |
---|---|
value | the value |
Creates a new attribute set similar to this one except that it contains the given attributes and values.
attributes | the set of attributes |
---|
Removes an attribute with the given name
.
name | the attribute name |
---|
Removes an attribute set with the given names
.
names | the set of names |
---|
Removes a set of attributes with the given name
.
attributes | the set of attributes |
---|
Sets the resolving parent. This is the set of attributes to resolve through if an attribute isn't defined locally.
parent | the parent |
---|