public interface Style extends MutableAttributeSet
AttributeSet.CharacterAttribute, AttributeSet.ColorAttribute, AttributeSet.FontAttribute, AttributeSet.ParagraphAttributeNameAttribute, ResolveAttribute| Modifier and Type | Method and Description | 
|---|---|
| void | addChangeListener(ChangeListener l)
              添加一个监听器,以便在属性被更改时跟踪。 
             | 
| String | getName()
              获取样式的名称。 
             | 
| void | removeChangeListener(ChangeListener l)
              删除跟踪属性更改的侦听器。 
             | 
addAttribute, addAttributes, removeAttribute, removeAttributes, removeAttributes, setResolveParentcontainsAttribute, containsAttributes, copyAttributes, getAttribute, getAttributeCount, getAttributeNames, getResolveParent, isDefined, isEqualString getName()
null如果没有与样式关联的名称被返回。 
          void addChangeListener(ChangeListener l)
l - 变更听众 
           void removeChangeListener(ChangeListener l)
l - 变更听众 
            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.