javax.swing.text.html
Class CSS
java.lang.Object
javax.swing.text.html.CSS
- All Implemented Interfaces:
- Serializable
public class CSS
- extends Object
- implements Serializable
Provides CSS attributes to be used by the HTML view classes. The constants
defined here are used as keys for text attributes for use in
AttributeSet
s of Element
s.
- See Also:
- Serialized Form
Constructor Summary |
CSS()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CSS
public CSS()
getAllAttributeKeys
public static CSS.Attribute[] getAllAttributeKeys()
- Returns an array of all CSS attributes.
- Returns:
- All available CSS.Attribute objects.
getAttribute
public static CSS.Attribute getAttribute(String name)
- Returns an a given CSS attribute.
- Parameters:
name
- - The name of the attribute.
- Returns:
- The CSS attribute with the given name, or
null
if
no attribute with that name exists.