Serializable
public class CSS extends Object implements Serializable
The following describes the CSS properties that are supported 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.
Modifier and Type | Class | Description |
---|---|---|
static final class |
CSS.Attribute |
Definitions to be used as a key on AttributeSet's that might hold CSS attributes. |
Constructor | Description |
---|---|
CSS() |
Constructs a CSS object. |
Modifier and Type | Method | Description |
---|---|---|
static CSS.Attribute[] |
getAllAttributeKeys() |
Return the set of all possible CSS attribute keys. |
static final CSS.Attribute |
getAttribute |
Translates a string to a CSS.Attribute object. |
public CSS()
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 forCSS.Attribute
object, or null
if the string doesn't represent a valid attribute key
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/swing/text/html/CSS.html