javax.swing.text.html
Class CSS

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.swing.text.html.CSS
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable

public class CSS
extends Object sample code for java.lang.Object definition code for java.lang.Object
implements Serializable sample code for java.io.Serializable definition code for java.io.Serializable

Defines a set of CSS attributes as a typesafe enumeration. The HTML View implementations use CSS attributes to determine how they will render. This also defines methods to map between CSS/HTML/StyleConstants. Any shorthand properties, such as font, are mapped to the intrinsic properties.

The following describes the CSS properties that are suppored by the rendering engine:

The following are modeled, but currently not rendered.

Note: for the time being we do not fully support relative units, unless noted, so that p { margin-top: 10% } will be treated as if no margin-top was specified.

See Also:
StyleSheet sample code for javax.swing.text.html.StyleSheet definition code for javax.swing.text.html.StyleSheet , Serialized Form

Nested Class Summary
static class CSS.Attribute sample code for javax.swing.text.html.CSS.Attribute definition code for javax.swing.text.html.CSS.Attribute
          Definitions to be used as a key on AttributeSet's that might hold CSS attributes.
 
Constructor Summary
CSS sample code for javax.swing.text.html.CSS.CSS() definition code for javax.swing.text.html.CSS.CSS() ()
           
 
Method Summary
static CSS.Attribute sample code for javax.swing.text.html.CSS.Attribute definition code for javax.swing.text.html.CSS.Attribute [] getAllAttributeKeys sample code for javax.swing.text.html.CSS.getAllAttributeKeys() definition code for javax.swing.text.html.CSS.getAllAttributeKeys() ()
          Return the set of all possible CSS attribute keys.
static CSS.Attribute sample code for javax.swing.text.html.CSS.Attribute definition code for javax.swing.text.html.CSS.Attribute getAttribute sample code for javax.swing.text.html.CSS.getAttribute(java.lang.String) definition code for javax.swing.text.html.CSS.getAttribute(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  name)
          Translates a string to a CSS.Attribute object.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

CSS sample code for javax.swing.text.html.CSS() definition code for javax.swing.text.html.CSS()

public CSS()
Method Detail

getAllAttributeKeys sample code for javax.swing.text.html.CSS.getAllAttributeKeys() definition code for javax.swing.text.html.CSS.getAllAttributeKeys()

public static CSS.Attribute sample code for javax.swing.text.html.CSS.Attribute definition code for javax.swing.text.html.CSS.Attribute [] getAllAttributeKeys()
Return the set of all possible CSS attribute keys.


getAttribute sample code for javax.swing.text.html.CSS.getAttribute(java.lang.String) definition code for javax.swing.text.html.CSS.getAttribute(java.lang.String)

public static final CSS.Attribute sample code for javax.swing.text.html.CSS.Attribute definition code for javax.swing.text.html.CSS.Attribute  getAttribute(String sample code for java.lang.String definition code for java.lang.String  name)
Translates a string to a CSS.Attribute object. This will return null if there is no attribute by the given name.

Parameters:
name - the name of the CSS attribute to fetch the typesafe enumeration for
Returns:
the CSS.Attribute object, or null if the string doesn't represent a valid attribute key