public interface MutableAttributeSet
独特属性的可变集合的通用接口。 实现可能需要提供以下形式的构造方法:public XXXAttributeSet(ConstAttributeSet source);
| 嵌套类摘要 |
|---|
| 从接口 javax.swing.text.AttributeSet 继承的嵌套类/接口 |
|---|
AttributeSet.CharacterAttribute, AttributeSet.ColorAttribute, AttributeSet.FontAttribute, AttributeSet.ParagraphAttribute |
| 字段摘要 |
|---|
| 从接口 javax.swing.text.AttributeSet 继承的字段 |
|---|
NameAttribute, ResolveAttribute |
| 方法摘要 | |
|---|---|
void |
addAttribute(Object name, Object value) 创建一个与此属性集类似的新属性集,不同之处在于它包含具有给定名称和值的属性。 |
void |
addAttributes(AttributeSet attributes) 创建一个与此属性集类似的新属性集,不同之处在于它包含具有给定名称和值的属性。 |
void |
removeAttribute(Object name) 移除具有给定 name 的属性。 |
void |
removeAttributes(AttributeSet attributes) 移除具有给定 name 的属性集。 |
void |
removeAttributes(Enumeration<?> names) 移除具有给定 name 的属性集。 |
void |
setResolveParent(AttributeSet parent) 设置正解析的父级。 |
| 从接口 javax.swing.text.AttributeSet 继承的方法 |
|---|
containsAttribute, containsAttributes, copyAttributes, getAttribute, getAttributeCount, getAttributeNames, getResolveParent, isDefined, isEqual |
| 方法详细信息 |
|---|
void addAttribute(Object name, Object value)
name - 名称
value - 值
void addAttributes(AttributeSet attributes)
attributes - 属性集
void removeAttribute(Object name)
name 的属性。
name - 属性名称
void removeAttributes(Enumeration<?> names)
name 的属性集。
names - 名称集
void removeAttributes(AttributeSet attributes)
name 的属性集。
attributes - 属性集
void setResolveParent(AttributeSet parent)
parent - 父级