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.