javax.swing.text.html
Class CSS

java.lang.Object
  extended by 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 AttributeSets of Elements.

See Also:
Serialized Form

Nested Class Summary
static class CSS.Attribute
           
 
Constructor Summary
CSS()
           
 
Method Summary
static CSS.Attribute[] getAllAttributeKeys()
          Returns an array of all CSS attributes.
static CSS.Attribute getAttribute(String name)
          Returns an a given CSS attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSS

public CSS()
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.