AttributeSet that can multiplex
across a set of AttributeSets.
| Modifier and Type | Class and Description |
|---|---|
| private class | MuxingAttributeSet.
An Enumeration of the Attribute names in a MuxingAttributeSet. |
| Modifier and Type | Field and Description |
|---|---|
| private AttributeSet[] | attrs
The |
| Access | Constructor and Description |
|---|---|
| public | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the name/value is definedthe attribute name name, Object the attribute value value)Implements javax. Checks whether a given attribute name/value is defined. |
| public boolean | Returns: true if the element contains all the attributesthe attributes to check attrs)Implements javax. Checks whether the attribute set contains all of the given attributes. |
| public AttributeSet | Returns: the copyImplements javax. Copies a set of attributes. |
| public Object | Returns: the attribute valuethe attribute name key)Implements javax. Gets the value of an attribute. |
| public int | Returns: the number of attributesImplements javax. Gets the number of attributes that are defined. |
| public Enumeration | Returns: the attribute namesImplements javax. Gets the names of all attributes. |
| protected synchronized AttributeSet[] | |
| public AttributeSet | getResolveParent()
Implements javax. Returns null, subclasses may wish to do something more intelligent with this. |
| protected synchronized void | |
| public boolean | Returns: true if the attribute is definedthe attribute key key)Implements javax. Checks whether a given attribute is defined. |
| public boolean | Returns: true if the samethe attribute set to check against attr)Implements javax. Checks whether two attribute sets are equal. |
| protected synchronized void | |
| protected synchronized void | setAttributes(AttributeSet[] attrs)
Directly sets the |
| attrs | back to summary |
|---|---|
| private AttributeSet[] attrs The | |
| MuxingAttributeSet | back to summary |
|---|---|
| public MuxingAttributeSet(AttributeSet[] attrs) Creates a | |
| MuxingAttributeSet | back to summary |
|---|---|
| protected MuxingAttributeSet() Creates an empty | |
| containsAttribute | back to summary |
|---|---|
| public boolean containsAttribute(Object name, Object value) Implements javax. Checks whether a given attribute name/value is defined.
| |
| containsAttributes | back to summary |
|---|---|
| public boolean containsAttributes(AttributeSet attrs) Implements javax. Checks whether the attribute set contains all of the given attributes.
| |
| copyAttributes | back to summary |
|---|---|
| public AttributeSet copyAttributes() Implements javax. Copies a set of attributes.
| |
| getAttribute | back to summary |
|---|---|
| public Object getAttribute(Object key) Implements javax. Gets the value of an attribute. If the requested attribute is a StyleConstants attribute that has a CSS mapping, the request will be converted.
| |
| getAttributeCount | back to summary |
|---|---|
| public int getAttributeCount() Implements javax. Gets the number of attributes that are defined.
| |
| getAttributeNames | back to summary |
|---|---|
| public Enumeration Implements javax. Gets the names of all attributes.
| |
| getAttributes | back to summary |
|---|---|
| protected synchronized AttributeSet[] getAttributes() Returns the | |
| getResolveParent | back to summary |
|---|---|
| public AttributeSet getResolveParent() Implements javax. Returns null, subclasses may wish to do something more intelligent with this. | |
| insertAttributeSetAt | back to summary |
|---|---|
| protected synchronized void insertAttributeSetAt(AttributeSet as, int index) Inserts | |
| isDefined | back to summary |
|---|---|
| public boolean isDefined(Object key) Implements javax. Checks whether a given attribute is defined. This will convert the key over to CSS if the key is a StyleConstants key that has a CSS mapping.
| |
| isEqual | back to summary |
|---|---|
| public boolean isEqual(AttributeSet attr) Implements javax. Checks whether two attribute sets are equal.
| |
| removeAttributeSetAt | back to summary |
|---|---|
| protected synchronized void removeAttributeSetAt(int index) Removes the AttributeSet at | |
| setAttributes | back to summary |
|---|---|
| protected synchronized void setAttributes(AttributeSet[] attrs) Directly sets the | |
| Modifier and Type | Field and Description |
|---|---|
| private int | attrIndex
Index into attrs the current Enumeration came from. |
| private Enumeration | currentEnum
Enumeration from attrs. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | hasMoreElements()
Implements java. Tests if this enumeration contains more elements. |
| public Object | nextElement()
Implements java. Returns the next element of this enumeration if this enumeration object has at least one more element to provide. |
| pack-priv void |
| attrIndex | back to summary |
|---|---|
| private int attrIndex Index into attrs the current Enumeration came from. | |
| currentEnum | back to summary |
|---|---|
| private Enumeration<?> currentEnum Enumeration from attrs. | |
| MuxingAttributeNameEnumeration | back to summary |
|---|---|
| pack-priv MuxingAttributeNameEnumeration() | |
| hasMoreElements | back to summary |
|---|---|
| public boolean hasMoreElements() Implements java. Doc from java. Tests if this enumeration contains more elements. | |
| nextElement | back to summary |
|---|---|
| public Object nextElement() Implements java. Doc from java. Returns the next element of this enumeration if this enumeration object has at least one more element to provide. | |
| updateEnum | back to summary |
|---|---|
| pack-priv void updateEnum() | |