| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public class StyleContext.SmallAttributeSet extends Object implements AttributeSet
This class holds a small number of attributes in an array. The storage format is key, value, key, value, etc. The size of the set is the length of the array divided by two. By default, this is the class that will be used to store attributes when held in the compact sharable form.
Constructor Summary | |
---|---|
|
|
StyleContext.SmallAttributeSet(Object[] attributes) |
Method Summary | |
---|---|
Object |
clone() Clones a set of attributes. |
boolean |
containsAttribute(Object name, Object value) Checks whether a given attribute name/value is defined. |
boolean |
containsAttributes(AttributeSet attrs) Checks whether the attribute set contains all of the given attributes. |
AttributeSet |
Copies a set of attributes. |
boolean |
Compares this object to the specifed object. |
Object |
getAttribute(Object key) Gets the value of an attribute. |
int |
Gets the number of attributes that are defined. |
Enumeration |
Gets the names of all attributes. |
AttributeSet |
If not overriden, the resolving parent defaults to the parent element. |
int |
hashCode() Returns a hashcode for this set of attributes. |
boolean |
Checks whether a given attribute is defined. |
boolean |
isEqual(AttributeSet attr) Checks whether two attribute sets are equal. |
String |
toString() Returns a string showing the key/value pairs |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StyleContext.SmallAttributeSet(AttributeSet attrs)
attrs
public StyleContext.SmallAttributeSet(Object[] attributes)
attributes
Method Detail |
---|
public Object clone()
clone
in class Object
public boolean containsAttribute(Object name, Object value)
name
- the attribute namevalue
- the attribute valuepublic boolean containsAttributes(AttributeSet attrs)
attrs
- the attributes to checkpublic AttributeSet copyAttributes()
public boolean equals(Object obj)
true
if the object is an equivalent
set of attributes.
equals
in class Object
obj
- the object to compare with.true
if the objects are equal;
false
otherwise.public Object getAttribute(Object key)
key
- the attribute namepublic int getAttributeCount()
public Enumeration getAttributeNames()
public AttributeSet getResolveParent()
public int hashCode()
hashCode
in class Object
public boolean isDefined(Object key)
key
- the attribute keypublic boolean isEqual(AttributeSet attr)
attr
- the attribute set to check againstpublic String toString()
toString
in class Object
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |