| 
 | Java™ Platform Standard Ed. 6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.text.html.CSS
public class CSS
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:
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.
StyleSheet| Nested Class Summary | |
|---|---|
| static class | CSS.AttributeDefinitions to be used as a key on AttributeSet's that might hold CSS attributes. | 
| Constructor Summary | |
|---|---|
| CSS() | |
| Method Summary | |
|---|---|
| static CSS.Attribute[] | getAllAttributeKeys()Return the set of all possible CSS attribute keys. | 
| static CSS.Attribute | getAttribute(String name)Translates a string to a CSS.Attributeobject. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public CSS()
| Method Detail | 
|---|
public static CSS.Attribute[] getAllAttributeKeys()
public static final CSS.Attribute getAttribute(String name)
CSS.Attribute object.
 This will return null if there is no attribute
 by the given name.
name - the name of the CSS attribute to fetch the
  typesafe enumeration for
CSS.Attribute object,
  or null if the string
  doesn't represent a valid attribute key| 
 | Java™ Platform Standard Ed. 6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.