StyleContext
, StyleSheet
public static interface AbstractDocument.AttributeContext
getAttributeContext
should be implemented to
return the object responsible for implementing the desired
compression technique.StyleContext
Modifier and Type | Method | Description |
---|---|---|
AttributeSet |
addAttribute(AttributeSet old,
Object name,
Object value) |
Adds an attribute to the given set, and returns
the new representative set.
|
AttributeSet |
addAttributes(AttributeSet old,
AttributeSet attr) |
Adds a set of attributes to the element.
|
AttributeSet |
getEmptySet() |
Fetches an empty AttributeSet.
|
void |
reclaim(AttributeSet a) |
Reclaims an attribute set.
|
AttributeSet |
removeAttribute(AttributeSet old,
Object name) |
Removes an attribute from the set.
|
AttributeSet |
removeAttributes(AttributeSet old,
Enumeration<?> names) |
Removes a set of attributes for the element.
|
AttributeSet |
removeAttributes(AttributeSet old,
AttributeSet attrs) |
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 valueMutableAttributeSet.addAttribute(java.lang.Object, java.lang.Object)
AttributeSet addAttributes(AttributeSet old, AttributeSet attr)
old
- the old attribute setattr
- the attributes to addMutableAttributeSet.addAttribute(java.lang.Object, java.lang.Object)
AttributeSet removeAttribute(AttributeSet old, Object name)
old
- the old attribute setname
- the non-null attribute nameMutableAttributeSet.removeAttribute(java.lang.Object)
AttributeSet removeAttributes(AttributeSet old, Enumeration<?> names)
old
- the old attribute setnames
- the attribute namesMutableAttributeSet.removeAttributes(java.util.Enumeration<?>)
AttributeSet removeAttributes(AttributeSet old, AttributeSet attrs)
old
- the old attribute setattrs
- the attributesMutableAttributeSet.removeAttributes(java.util.Enumeration<?>)
AttributeSet getEmptySet()
void reclaim(AttributeSet a)
a
- the attribute set to reclaim Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-internal+0-adhoc.mlchung.jdk9-jdeps