-  
       - 所有已知实现类:
-  
         StyleContext,StyleSheet
 - Enclosing class:
- AbstractDocument
 
 public static interface AbstractDocument.AttributeContext可用于允许MutableAttributeSet实现使用可插入属性压缩技术的接口。 属性集的每个变异都可用于将先前的AttributeSet实例与另一个进行交换,从而保留AttributeSet保持不可变的可能性。 StyleContext类提供了一个实现。 此类提供的Element实现使用此接口来提供其MutableAttributeSet实现,以便可以使用不同的AttributeSet压缩技术。 应该实现方法getAttributeContext以返回负责实现所需压缩技术的对象。- 另请参见:
-  
         StyleContext
 
-  
        
       -  
             方法摘要所有方法 实例方法 抽象方法 变量和类型 方法 描述 AttributeSetaddAttribute(AttributeSet old, Object name, Object value)将属性添加到给定集,并返回新的代表集。AttributeSetaddAttributes(AttributeSet old, AttributeSet attr)向元素添加一组属性。AttributeSetgetEmptySet()获取一个空的AttributeSet。voidreclaim(AttributeSet a)回收属性集。AttributeSetremoveAttribute(AttributeSet old, Object name)从集合中删除属性。AttributeSetremoveAttributes(AttributeSet old, Enumeration<?> names)删除元素的一组属性。AttributeSetremoveAttributes(AttributeSet old, AttributeSet attrs)删除元素的一组属性。
 
-  
             
-  
        
       -  
             方法详细信息-  addAttributeAttributeSet addAttribute(AttributeSet old, Object name, Object value) 将属性添加到给定集,并返回新的代表集。- 参数
-  
              old- 旧属性集
-  
              name- 非null属性名称
-  
              value- 属性值
- 结果
- 更新的属性集
- 另请参见:
-  
              MutableAttributeSet.addAttribute(java.lang.Object, java.lang.Object)
 
 -  addAttributesAttributeSet addAttributes(AttributeSet old, AttributeSet attr) 向元素添加一组属性。- 参数
-  
              old- 旧属性集
-  
              attr- 要添加的属性
- 结果
- 更新的属性集
- 另请参见:
-  
              MutableAttributeSet.addAttribute(java.lang.Object, java.lang.Object)
 
 -  removeAttributeAttributeSet removeAttribute(AttributeSet old, Object name) 从集合中删除属性。- 参数
-  
              old- 旧属性集
-  
              name- 非null属性名称
- 结果
- 更新的属性集
- 另请参见:
-  
              MutableAttributeSet.removeAttribute(java.lang.Object)
 
 -  removeAttributesAttributeSet removeAttributes(AttributeSet old, Enumeration<?> names) 删除元素的一组属性。- 参数
-  
              old- 旧属性集
-  
              names- 属性名称
- 结果
- 更新的属性集
- 另请参见:
-  
              MutableAttributeSet.removeAttributes(java.util.Enumeration<?>)
 
 -  removeAttributesAttributeSet removeAttributes(AttributeSet old, AttributeSet attrs) 删除元素的一组属性。- 参数
-  
              old- 旧属性集
-  
              attrs- 属性
- 结果
- 更新的属性集
- 另请参见:
-  
              MutableAttributeSet.removeAttributes(java.util.Enumeration<?>)
 
 -  getEmptySetAttributeSet getEmptySet() 获取一个空的AttributeSet。- 结果
- 属性集
 
 -  reclaimvoid reclaim(AttributeSet a) 回收属性集。 这是MutableAttributeSet标记它不再需要特定的不可变集的一种方法。 只有在没有弱引用的1.1中才需要这样做。 1.1实现将在其finalize方法中调用它。- 参数
-  
              a- 设置为reclaim的属性
 
 
-  
 
-