-  
       
- All Superinterfaces:
 -  
         
AttributeSet 
- All Known Subinterfaces:
 -  
         
Style 
- 所有已知实现类:
 -  
         
AbstractDocument.AbstractElement,AbstractDocument.BranchElement,AbstractDocument.LeafElement,DefaultStyledDocument.SectionElement,HTMLDocument.BlockElement,HTMLDocument.RunElement,SimpleAttributeSet,StyleContext.NamedStyle 
public interface MutableAttributeSet extends AttributeSet
用于可变集合的唯一属性的通用接口。 实现可能希望提供以下形式的构造函数:public XXXAttributeSet(ConstAttributeSet source); 
-  
        
       
-  
             
嵌套类汇总
-  
               
Nested classes/interfaces declared in interface javax.swing.text.AttributeSet
AttributeSet.CharacterAttribute, AttributeSet.ColorAttribute, AttributeSet.FontAttribute, AttributeSet.ParagraphAttribute 
 -  
               
 
-  
             
字段汇总
-  
               
Fields declared in interface javax.swing.text.AttributeSet
NameAttribute, ResolveAttribute 
 -  
               
 
-  
             
方法摘要
所有方法 实例方法 抽象方法 变量和类型 方法 描述 voidaddAttribute(Object name, Object value)创建一个与此类似的新属性集,但它包含具有给定名称和值的属性。voidaddAttributes(AttributeSet attributes)创建一个与此类似的新属性集,但它包含给定的属性和值。voidremoveAttribute(Object name)删除给定name的属性。voidremoveAttributes(Enumeration<?> names)删除使用给定names设置的属性。voidremoveAttributes(AttributeSet attributes)使用给定的name删除一组属性。voidsetResolveParent(AttributeSet parent)设置解析父级。-  
               
声明方法的接口 javax.swing.text.AttributeSet
containsAttribute, containsAttributes, copyAttributes, getAttribute, getAttributeCount, getAttributeNames, getResolveParent, isDefined, isEqual 
 -  
               
 
 -  
             
 
-  
        
       
-  
             
方法详细信息
-  
addAttribute
void addAttribute(Object name, Object value)
创建一个与此类似的新属性集,但它包含具有给定名称和值的属性。 对象必须是不可变的,或者不被任何客户端变异。- 参数
 -  
              
name- 名字 -  
              
value- 该值 
 
-  
addAttributes
void addAttributes(AttributeSet attributes)
创建一个与此类似的新属性集,但它包含给定的属性和值。- 参数
 -  
              
attributes- 属性集 
 
-  
removeAttribute
void removeAttribute(Object name)
删除给定name的属性。- 参数
 -  
              
name- 属性名称 
 
-  
removeAttributes
void removeAttributes(Enumeration<?> names)
删除使用给定names设置的属性。- 参数
 -  
              
names- 名称集 
 
-  
removeAttributes
void removeAttributes(AttributeSet attributes)
使用给定的name删除一组属性。- 参数
 -  
              
attributes- 属性集 
 
-  
setResolveParent
void setResolveParent(AttributeSet parent)
设置解析父级。 如果未在本地定义属性,则这是要解析的属性集。- 参数
 -  
              
parent- 父母 
 
 -  
 
 -