public static class CSSStyleDeclaration.StyleElement extends Object implements Comparable<CSSStyleDeclaration.StyleElement>, Serializable
Modifier | Constructor and Description |
---|---|
protected |
CSSStyleDeclaration.StyleElement(String name,
String value)
Creates a new default instance.
|
protected |
CSSStyleDeclaration.StyleElement(String name,
String value,
long index)
Creates a new instance.
|
protected |
CSSStyleDeclaration.StyleElement(String name,
String value,
String priority,
com.gargoylesoftware.htmlunit.javascript.host.css.SelectorSpecificity specificity,
long index)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(CSSStyleDeclaration.StyleElement e) |
long |
getIndex()
Returns the style element's index.
|
String |
getName()
Returns the style element's name.
|
String |
getPriority()
Returns the style element's priority.
|
com.gargoylesoftware.htmlunit.javascript.host.css.SelectorSpecificity |
getSpecificity()
Returns the specificity of the rule specifying this element.
|
String |
getValue()
Returns the style element's value.
|
boolean |
isDefault()
Returns true if this style element contains a default value.
|
String |
toString() |
protected CSSStyleDeclaration.StyleElement(String name, String value, String priority, com.gargoylesoftware.htmlunit.javascript.host.css.SelectorSpecificity specificity, long index)
name
- the style element's namevalue
- the style element's valuepriority
- the style element's priority like "important"specificity
- the specificity of the rule providing this style informationindex
- the style element's indexprotected CSSStyleDeclaration.StyleElement(String name, String value, long index)
name
- the style element's namevalue
- the style element's valueindex
- the style element's indexpublic String getName()
public String getValue()
public String getPriority()
public com.gargoylesoftware.htmlunit.javascript.host.css.SelectorSpecificity getSpecificity()
public long getIndex()
public boolean isDefault()
public int compareTo(CSSStyleDeclaration.StyleElement e)
compareTo
in interface Comparable<CSSStyleDeclaration.StyleElement>
Copyright © 2002–2015 Gargoyle Software Inc.. All rights reserved.