|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
, StyleSheet


public static interface AbstractDocument.AttributeContext
An interface that can be used to allow MutableAttributeSet
implementations to use pluggable attribute compression
techniques. Each mutation of the attribute set can be
used to exchange a previous AttributeSet instance with
another, preserving the possibility of the AttributeSet
remaining immutable. An implementation is provided by
the StyleContext class.
The Element implementations provided by this class use
this interface to provide their MutableAttributeSet
implementations, so that different AttributeSet compression
techniques can be employed. The method
getAttributeContext should be implemented to
return the object responsible for implementing the desired
compression technique.
StyleContext

| Method Summary | |
|---|---|
AttributeSet |
addAttribute
Adds an attribute to the given set, and returns the new representative set. |
AttributeSet |
addAttributes
Adds a set of attributes to the element. |
AttributeSet |
getEmptySet
Fetches an empty AttributeSet. |
void |
reclaim
Reclaims an attribute set. |
AttributeSet |
removeAttribute
Removes an attribute from the set. |
AttributeSet |
removeAttributes
Removes a set of attributes for the element. |
AttributeSet |
removeAttributes
Removes a set of attributes for the element. |
| Method Detail |
|---|

AttributeSet![]()
![]()
addAttribute(AttributeSet
![]()
![]()
old, Object
![]()
![]()
name, Object
![]()
![]()
value)
old - the old attribute setname - the non-null attribute namevalue - the attribute value
MutableAttributeSet.addAttribute(java.lang.Object, java.lang.Object)


AttributeSet![]()
![]()
addAttributes(AttributeSet
![]()
![]()
old, AttributeSet
![]()
![]()
attr)
old - the old attribute setattr - the attributes to add
MutableAttributeSet.addAttribute(java.lang.Object, java.lang.Object)


AttributeSet![]()
![]()
removeAttribute(AttributeSet
![]()
![]()
old, Object
![]()
![]()
name)
old - the old attribute setname - the non-null attribute name
MutableAttributeSet.removeAttribute(java.lang.Object)


AttributeSet![]()
![]()
removeAttributes(AttributeSet
![]()
![]()
old, Enumeration
![]()
![]()
<?> names)
old - the old attribute setnames - the attribute names
MutableAttributeSet.removeAttributes(java.util.Enumeration>)


AttributeSet![]()
![]()
removeAttributes(AttributeSet
![]()
![]()
old, AttributeSet
![]()
![]()
attrs)
old - the old attribute setattrs - the attributes
MutableAttributeSet.removeAttributes(java.util.Enumeration>)


AttributeSet![]()
![]()
getEmptySet()

void reclaim(AttributeSet![]()
![]()
a)
a - the attribute set to reclaim
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||