public static interface AbstractDocument.AttributeContext 
      getAttributeContext以返回负责实现所需压缩技术的对象。 
      StyleContext 
       | Modifier and Type | Method and Description | 
|---|---|
| AttributeSet | addAttribute(AttributeSet old, Object name, Object value)
              向给定集添加属性,并返回新的代表集。 
             | 
| AttributeSet | addAttributes(AttributeSet old, AttributeSet attr)
              向元素添加一组属性。 
             | 
| AttributeSet | getEmptySet()
              获取一个空的AttributeSet。 
             | 
| void | reclaim(AttributeSet a)
              回收一个属性集。 
             | 
| AttributeSet | removeAttribute(AttributeSet old, Object name)
              从集合中删除属性。 
             | 
| AttributeSet | removeAttributes(AttributeSet old, AttributeSet attrs)
              删除元素的一组属性。 
             | 
| AttributeSet | removeAttributes(AttributeSet old, Enumeration<?> names)
              删除元素的一组属性。 
             | 
AttributeSet addAttribute(AttributeSet old, Object name, Object value)
old - 旧属性集 
           name - 非空属性名称 
           value - 属性值 
           MutableAttributeSet.addAttribute(java.lang.Object, java.lang.Object) 
           AttributeSet addAttributes(AttributeSet old, AttributeSet attr)
old - 旧属性集 
           attr - 要添加的属性 
           MutableAttributeSet.addAttribute(java.lang.Object, java.lang.Object) 
           AttributeSet removeAttribute(AttributeSet old, Object name)
old - 旧属性集 
           name - 非空属性名称 
           MutableAttributeSet.removeAttribute(java.lang.Object) 
           AttributeSet removeAttributes(AttributeSet old, Enumeration<?> names)
old - 旧属性集 
           names - 属性名称 
           MutableAttributeSet.removeAttributes(java.util.Enumeration<?>) 
           AttributeSet removeAttributes(AttributeSet old, AttributeSet attrs)
old - 旧属性集 
           attrs - 属性 
           MutableAttributeSet.removeAttributes(java.util.Enumeration<?>) 
           AttributeSet getEmptySet()
void reclaim(AttributeSet a)
a - 设置为回收的属性 
            Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.