站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档

Java(TM) 2 Platform, Standard Edition, v1.2.2 API Specification: Class CSS - JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档

JavaTM 2 Platform
Standard Edition

javax.swing.text.html
Class CSS

java.lang.Object
  |
  +--javax.swing.text.html.CSS

public class CSS
extends Object

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.

See Also:
StyleSheet

Inner Class Summary
static class CSS.Attribute
          Definitions 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)
          Translate a string to a CSS.Attribute object.
 
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()
Return the set of all possible CSS attribute keys.

getAttribute

public static final CSS.Attribute getAttribute(String name)
Translate 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.

JavaTM 2 Platform
Standard Edition

Submit a bug or feature
Java, Java 2D, and JDBC are a trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.