public interface MutableAttributeSet extends AttributeSet
AttributeSet.CharacterAttribute, AttributeSet.ColorAttribute, AttributeSet.FontAttribute, AttributeSet.ParagraphAttributeNameAttribute, ResolveAttribute| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(Object name, Object value)
创建一个与此类似的新的属性集,但它包含一个给定的名称和值的属性。
|
void |
addAttributes(AttributeSet attributes)
创建一个与此类似的新属性集,但它包含了给定的属性和值。
|
void |
removeAttribute(Object name)
删除与给定的
name属性。
|
void |
removeAttributes(AttributeSet attributes)
删除一组给定的
name属性。
|
void |
removeAttributes(Enumeration<?> names)
删除一个属性集和给定的
names。
|
void |
setResolveParent(AttributeSet parent)
设置解决父。
|
containsAttribute, containsAttributes, copyAttributes, getAttribute, getAttributeCount, getAttributeNames, getResolveParent, isDefined, isEqualvoid addAttribute(Object name, Object value)
name -名称
value -价值
void addAttributes(AttributeSet attributes)
attributes -属性设置
void removeAttribute(Object name)
name属性。
name -属性名称
void removeAttributes(Enumeration<?> names)
names。
names -名字集
void removeAttributes(AttributeSet attributes)
name属性。
attributes -属性设置
void setResolveParent(AttributeSet parent)
parent -母
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.