javax.swing.text.html
Class StyleSheet.SmallConversionSet
java.lang.Object
javax.swing.text.StyleContext.SmallAttributeSet
javax.swing.text.html.StyleSheet.SmallConversionSet
- All Implemented Interfaces:
- AttributeSet
- Enclosing class:
- StyleSheet
- class StyleSheet.SmallConversionSet
- extends StyleContext.SmallAttributeSet
Small set of attributes that does conversion of requests
for attributes of type StyleConstants.
Methods inherited from class javax.swing.text.StyleContext.SmallAttributeSet |
clone, containsAttribute, containsAttributes, copyAttributes, equals, getAttributeCount, getAttributeNames, getResolveParent, hashCode, isEqual, toString |
StyleSheet.SmallConversionSet
public StyleSheet.SmallConversionSet(AttributeSet attrs)
- Creates a new attribute set based on a supplied set of attributes.
isDefined
public boolean isDefined(Object key)
- Checks whether a given attribute is defined.
- Specified by:
isDefined
in interface AttributeSet
- Overrides:
isDefined
in class StyleContext.SmallAttributeSet
- Parameters:
key
- the attribute key
- Returns:
- true if the attribute is defined
- See Also:
AttributeSet.isDefined(java.lang.Object)
getAttribute
public Object getAttribute(Object key)
- Gets the value of an attribute.
- Specified by:
getAttribute
in interface AttributeSet
- Overrides:
getAttribute
in class StyleContext.SmallAttributeSet
- Parameters:
key
- the attribute name
- Returns:
- the attribute value
- See Also:
AttributeSet.getAttribute(java.lang.Object)