StyleContext
, StyleSheet
AbstractDocument
public static interface AbstractDocument.AttributeContext
getAttributeContext
should be implemented to return the object responsible for implementing the desired compression technique.Modifier and Type | Method | Description |
---|---|---|
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. |
AttributeSet addAttribute(AttributeSet old, Object name, Object value)
old
- the old attribute setname
- the non-null attribute namevalue
- the attribute valueAttributeSet addAttributes(AttributeSet old, AttributeSet attr)
old
- the old attribute setattr
- the attributes to addAttributeSet removeAttribute(AttributeSet old, Object name)
old
- the old attribute setname
- the non-null attribute nameAttributeSet removeAttributes(AttributeSet old, Enumeration<?> names)
old
- the old attribute setnames
- the attribute namesAttributeSet removeAttributes(AttributeSet old, AttributeSet attrs)
old
- the old attribute setattrs
- the attributesAttributeSet getEmptySet()
void reclaim(AttributeSet a)
a
- the attribute set to reclaim
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/swing/text/AbstractDocument.AttributeContext.html