Modifier and Type | Field and Description |
---|---|
public Dictionary |
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
public void | addAttribute(Object
the name name, Object the value value)Implements javax. Creates a new attribute set similar to this one except that it contains an attribute with the given name and value. |
public void | addAttributes(AttributeSet
the set of attributes attr)Implements javax. Creates a new attribute set similar to this one except that it contains the given attributes and values. |
public boolean | containsAttribute(Object
the non-null attribute name name, Object the value value)Implements javax. Returns |
public boolean | containsAttributes(AttributeSet
the set of attributes to check against attr)Implements javax. Returns |
public AttributeSet | copyAttributes()
Implements javax. Returns an attribute set that is guaranteed not to change over time. |
public Object | getAttribute(Object
the non-null key of the attribute binding name)Implements javax. Fetches the value of the given attribute. |
public int | getAttributeCount()
Implements javax. Returns the number of attributes that are defined locally in this set. |
public Enumeration | getAttributeNames()
Implements javax. Returns an enumeration over the names of the attributes that are defined locally in the set. |
public AttributeSet | getResolveParent()
Implements javax. Gets the resolving parent. |
public boolean | isDefined(Object
the attribute name name)Implements javax. Checks whether the named attribute has a value specified in the set without resolving through another attribute set. |
public boolean | |
public boolean | isEqual(AttributeSet
an attribute set attr)Implements javax. Determines if the two attribute sets are equivalent. |
public void | removeAttribute(Object
the attribute name name)Implements javax. Removes an attribute with the given |
public void | removeAttributes(AttributeSet
the set of attributes attr)Implements javax. Removes a set of attributes with the given |
public void | removeAttributes(Enumeration<?>
the set of names en)Implements javax. Removes an attribute set with the given |
public void | setResolveParent(AttributeSet
the parent pp)Implements javax. Sets the resolving parent. |
backing | back to summary |
---|---|
public Dictionary<Object, Object> backing |
MockAttributeSet | back to summary |
---|---|
pack-priv MockAttributeSet() |
addAttribute | back to summary |
---|---|
public void addAttribute(Object name, Object value) Implements javax. Doc from javax. Creates a new attribute set similar to this one except that it contains an attribute with the given name and value. The object must be immutable, or not mutated by any client. |
addAttributes | back to summary |
---|---|
public void addAttributes(AttributeSet attr) Implements javax. Doc from javax. Creates a new attribute set similar to this one except that it contains the given attributes and values.
|
containsAttribute | back to summary |
---|---|
public boolean containsAttribute(Object name, Object value) Implements javax. Doc from javax. Returns |
containsAttributes | back to summary |
---|---|
public boolean containsAttributes(AttributeSet attr) Implements javax. Doc from javax. Returns
|
copyAttributes | back to summary |
---|---|
public AttributeSet copyAttributes() Implements javax. Doc from javax. Returns an attribute set that is guaranteed not to change over time.
|
getAttribute | back to summary |
---|---|
public Object getAttribute(Object name) Implements javax. Doc from javax. Fetches the value of the given attribute. If the value is not found locally, the search is continued upward through the resolving parent (if one exists) until the value is either found or there are no more parents. If the value is not found, null is returned. |
getAttributeCount | back to summary |
---|---|
public int getAttributeCount() Implements javax. Doc from javax. Returns the number of attributes that are defined locally in this set. Attributes that are defined in the parent set are not included.
|
getAttributeNames | back to summary |
---|---|
public Enumeration Implements javax. Doc from javax. Returns an enumeration over the names of the attributes that are
defined locally in the set. Names of attributes defined in the
resolving parent, if any, are not included. The values of the
This method never returns
|
getResolveParent | back to summary |
---|---|
public AttributeSet getResolveParent() Implements javax. Doc from javax. Gets the resolving parent.
|
isDefined | back to summary |
---|---|
public boolean isDefined(Object name) Implements javax. Doc from javax. Checks whether the named attribute has a value specified in the set without resolving through another attribute set.
|
isEmpty | back to summary |
---|---|
public boolean isEmpty() |
isEqual | back to summary |
---|---|
public boolean isEqual(AttributeSet attr) Implements javax. Doc from javax. Determines if the two attribute sets are equivalent.
|
removeAttribute | back to summary |
---|---|
public void removeAttribute(Object name) Implements javax. Doc from javax. Removes an attribute with the given
|
removeAttributes | back to summary |
---|---|
public void removeAttributes(AttributeSet attr) Implements javax. Doc from javax. Removes a set of attributes with the given
|
removeAttributes | back to summary |
---|---|
public void removeAttributes(Enumeration<?> en) Implements javax. Doc from javax. Removes an attribute set with the given
|
setResolveParent | back to summary |
---|---|
public void setResolveParent(AttributeSet pp) Implements javax. Doc from javax. Sets the resolving parent. This is the set of attributes to resolve through if an attribute isn't defined locally.
|