public class StyleContext.SmallAttributeSet extends Object implements AttributeSet
AttributeSet.CharacterAttribute, AttributeSet.ColorAttribute, AttributeSet.FontAttribute, AttributeSet.ParagraphAttributeNameAttribute, ResolveAttribute| Constructor and Description | 
|---|
| SmallAttributeSet(AttributeSet attrs) | 
| SmallAttributeSet(Object[] attributes) | 
| Modifier and Type | Method and Description | 
|---|---|
| Object | clone()
              克隆一组属性。 
             | 
| boolean | containsAttribute(Object name, Object value)
              检查是否定义了一个给定的属性名称/值。 
             | 
| boolean | containsAttributes(AttributeSet attrs)
              检查属性集是否包含所有给定的属性。 
             | 
| AttributeSet | copyAttributes()
              复制一组属性。 
             | 
| boolean | equals(Object obj)
              将此对象与指定的对象进行比较。 
             | 
| Object | getAttribute(Object key)
              获取属性的值。 
             | 
| int | getAttributeCount()
              获取定义的属性数。 
             | 
| Enumeration<?> | getAttributeNames()
              获取所有属性的名称。 
             | 
| AttributeSet | getResolveParent()
              如果未覆盖,则解析父项默认为父元素。 
             | 
| int | hashCode()
              返回此属性集的哈希码。 
             | 
| boolean | isDefined(Object key)
              检查给定属性是否被定义。 
             | 
| boolean | isEqual(AttributeSet attr)
              检查两个属性集是否相等。 
             | 
| String | toString()
              返回一个显示键/值对的字符串 
             | 
public SmallAttributeSet(Object[] attributes)
public SmallAttributeSet(AttributeSet attrs)
public int hashCode()
hashCode在 
            Object类 
           Object.equals(java.lang.Object) , 
            System.identityHashCode(java.lang.Object) 
           public boolean equals(Object obj)
true如果对象是一组等价的属性。 
          equals在 
            Object 
           obj - 要比较的对象。 
           true如果对象相等; 
            false否则。 
           Object.hashCode() , HashMap 
           public Object clone()
public int getAttributeCount()
getAttributeCount在界面 
            AttributeSet 
           AttributeSet.getAttributeCount() 
           public boolean isDefined(Object key)
isDefined在界面 
            AttributeSet 
           key - 属性键 
           AttributeSet.isDefined(java.lang.Object) 
           public boolean isEqual(AttributeSet attr)
isEqual在界面 
            AttributeSet 
           attr - 要检查的属性集 
           AttributeSet.isEqual(javax.swing.text.AttributeSet) 
           public AttributeSet copyAttributes()
copyAttributes在界面 
            AttributeSet 
           AttributeSet.copyAttributes() 
           public Object getAttribute(Object key)
getAttribute在界面 
            AttributeSet 
           key - 属性名称 
           AttributeSet.getAttribute(java.lang.Object) 
           public Enumeration<?> getAttributeNames()
getAttributeNames中的 
            AttributeSet 
           AttributeSet.getAttributeNames() 
           public boolean containsAttribute(Object name, Object value)
containsAttribute在界面 
            AttributeSet 
           name - 属性名称 
           value - 属性值 
           AttributeSet.containsAttribute(java.lang.Object, java.lang.Object) 
           public boolean containsAttributes(AttributeSet attrs)
containsAttributes在界面 
            AttributeSet 
           attrs - 要检查的属性 
           AttributeSet.containsAttributes(javax.swing.text.AttributeSet) 
           public AttributeSet getResolveParent()
getResolveParent在界面 
            AttributeSet 
           AttributeSet.getResolveParent() 
            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.