javax.swing.text.html

Class CSS

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 {@link javax.swing.text.AttributeSet}s of {@link javax.swing.text.Element}s.
Nested Class Summary
static classCSS.Attribute
Method Summary
static CSS.Attribute[]getAllAttributeKeys()
Returns an array of all CSS attributes.
static CSS.AttributegetAttribute(String name)
Returns an a given CSS attribute.

Method Detail

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.