|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gargoylesoftware.htmlunit.javascript.host.css.CSSStyleDeclaration.StyleElement
protected static class CSSStyleDeclaration.StyleElement
Contains information about a single style element, including its name, its value, and an index which can be compared against other indices in order to determine precedence.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 indexprotected CSSStyleDeclaration.StyleElement(String name, String value)
name
- the style element's namevalue
- the style element's valueMethod Detail |
---|
public String getName()
public String getValue()
public String getPriority()
public com.gargoylesoftware.htmlunit.javascript.host.css.SelectorSpecificity getSpecificity()
public long getIndex()
public boolean isDefault()
public String toString()
toString
in class Object
public int compareTo(CSSStyleDeclaration.StyleElement e)
compareTo
in interface Comparable<CSSStyleDeclaration.StyleElement>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |