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删除一组
name 。
|
void |
removeAttributes(Enumeration<?> names)
删除与给定
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 。
name - 属性名称
void removeAttributes(Enumeration<?> names)
names设置的
names 。
names - 一组名称
void removeAttributes(AttributeSet attributes)
name删除一组
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.