Package org.htmlunit.css
Class StyleAttributes
- java.lang.Object
-
- org.htmlunit.css.StyleAttributes
-
- All Implemented Interfaces:
java.io.Serializable
public final class StyleAttributes extends java.lang.Object implements java.io.SerializableContains information about the style attribute defined for different browser as well as their default values.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStyleAttributes.DefinitionHolds information about a style attribute (CSS name, property name, browser availability, default computed value.
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Map<java.lang.String,StyleAttributes.Definition>styles_
-
Constructor Summary
Constructors Modifier Constructor Description privateStyleAttributes()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StyleAttributes.DefinitiongetDefinition(java.lang.String propertyName, BrowserVersion browserVersion)Gets the style attributes definition with the given name for the specified browser version.static java.util.List<StyleAttributes.Definition>getDefinitions(BrowserVersion browserVersion)Gets the style attributes definitions for the specified browser version.
-
-
-
Field Detail
-
styles_
private static final java.util.Map<java.lang.String,StyleAttributes.Definition> styles_
-
-
Method Detail
-
getDefinition
public static StyleAttributes.Definition getDefinition(java.lang.String propertyName, BrowserVersion browserVersion)
Gets the style attributes definition with the given name for the specified browser version.- Parameters:
propertyName- the name of the propertybrowserVersion- the browser version- Returns:
nullif no definition exists for this browser version
-
getDefinitions
public static java.util.List<StyleAttributes.Definition> getDefinitions(BrowserVersion browserVersion)
Gets the style attributes definitions for the specified browser version.- Parameters:
browserVersion- the browser version- Returns:
- the list
-
-