- java.lang.Object
-
- javax.swing.text.SimpleAttributeSet
-
- All Implemented Interfaces:
Serializable
,Cloneable
,AttributeSet
,MutableAttributeSet
public class SimpleAttributeSet extends Object implements MutableAttributeSet, Serializable, Cloneable
A straightforward implementation of MutableAttributeSet using a hash table.Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the
java.beans
package. Please seeXMLEncoder
.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces declared in interface javax.swing.text.AttributeSet
AttributeSet.CharacterAttribute, AttributeSet.ColorAttribute, AttributeSet.FontAttribute, AttributeSet.ParagraphAttribute
-
-
Field Summary
Fields Modifier and Type Field Description static AttributeSet
EMPTY
An empty attribute set.-
Fields declared in interface javax.swing.text.AttributeSet
NameAttribute, ResolveAttribute
-
-
Constructor Summary
Constructors Constructor Description SimpleAttributeSet()
Creates a new attribute set.SimpleAttributeSet(AttributeSet source)
Creates a new attribute set based on a supplied set of attributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAttribute(Object name, Object value)
Adds an attribute to the list.void
addAttributes(AttributeSet attributes)
Adds a set of attributes to the list.Object
clone()
Clones a set of attributes.boolean
containsAttribute(Object name, Object value)
Checks whether the attribute list contains a specified attribute name/value pair.boolean
-