| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
public interface Style
与文档中某个元素相关的属性集合。因为这些通常用于字符和段落样式与元素之间的关联,所以就提供了这方面的操作。取得与元素关联的其他自定义属性将有效地成为层次结构中的名称-值对,并且如果没有在本地找到名称(键),则会把请求转发给父级。常用的属性被分离了出来,以便采用更有效的替代实现。
| 嵌套类摘要 | 
|---|
| 从接口 javax.swing.text.AttributeSet 继承的嵌套类/接口 | 
|---|
| AttributeSet.CharacterAttribute, AttributeSet.ColorAttribute, AttributeSet.FontAttribute, AttributeSet.ParagraphAttribute | 
| 字段摘要 | 
|---|
| 从接口 javax.swing.text.AttributeSet 继承的字段 | 
|---|
| NameAttribute, ResolveAttribute | 
| 方法摘要 | |
|---|---|
|  void | addChangeListener(ChangeListener l)添加一个侦听器,以便随时跟踪属性的更改。 | 
|  String | getName()获取样式名称。 | 
|  void | removeChangeListener(ChangeListener l)移除跟踪属性更改的侦听器。 | 
| 从接口 javax.swing.text.MutableAttributeSet 继承的方法 | 
|---|
| addAttribute, addAttributes, removeAttribute, removeAttributes, removeAttributes, setResolveParent | 
| 从接口 javax.swing.text.AttributeSet 继承的方法 | 
|---|
| containsAttribute, containsAttributes, copyAttributes, getAttribute, getAttributeCount, getAttributeNames, getResolveParent, isDefined, isEqual | 
| 方法详细信息 | 
|---|
String getName()
null。
void addChangeListener(ChangeListener l)
l - 更改侦听器void removeChangeListener(ChangeListener l)
l - 更改侦听器| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。