public class CSSOMStyleDeclaration extends Object implements org.w3c.dom.css.CSSStyleDeclaration
| Modifier and Type | Class and Description |
|---|---|
static interface |
CSSOMStyleDeclaration.ModificationHandler
To manage the modifications on a CSS value.
|
class |
CSSOMStyleDeclaration.StyleDeclarationValue
This class represents a CSS value returned by this declaration.
|
static interface |
CSSOMStyleDeclaration.ValueProvider
To provides the values.
|
| Modifier and Type | Field and Description |
|---|---|
protected CSSOMStyleDeclaration.ModificationHandler |
handler
The modifications handler.
|
protected org.w3c.dom.css.CSSRule |
parentRule
The parent rule.
|
protected CSSOMStyleDeclaration.ValueProvider |
valueProvider
The associated value.
|
protected Map |
values
The values.
|
| Constructor and Description |
|---|
CSSOMStyleDeclaration(CSSOMStyleDeclaration.ValueProvider vp,
org.w3c.dom.css.CSSRule parent)
Creates a new style declaration.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.w3c.dom.css.CSSValue |
createCSSValue(String name)
Creates the CSS value associated with the given property.
|
String |
getCssText()
DOM: Implements
CSSStyleDeclaration.getCssText(). |
protected org.w3c.dom.css.CSSValue |
getCSSValue(String name)
Gets the CSS value associated with the given property.
|
int |
getLength()
DOM: Implements
CSSStyleDeclaration.getLength(). |
org.w3c.dom.css.CSSRule |
getParentRule()
DOM: Implements
CSSStyleDeclaration.getParentRule(). |
org.w3c.dom.css.CSSValue |
getPropertyCSSValue(String propertyName)
DOM: Implements
CSSStyleDeclaration.getPropertyCSSValue(String). |
String |
getPropertyPriority(String propertyName)
DOM: Implements
CSSStyleDeclaration.getPropertyPriority(String). |
String |
getPropertyValue(String propertyName)
DOM: Implements
CSSStyleDeclaration.getPropertyValue(String). |
String |
item(int index)
DOM: Implements
CSSStyleDeclaration.item(int). |
String |
removeProperty(String propertyName)
DOM: Implements
CSSStyleDeclaration.removeProperty(String). |
void |
setCssText(String cssText)
DOM: Implements
CSSStyleDeclaration.setCssText(String). |
void |
setModificationHandler(CSSOMStyleDeclaration.ModificationHandler h)
Sets the modification handler of this value.
|
void |
setProperty(String propertyName,
String value,
String prio)
DOM: Implements
CSSStyleDeclaration.setProperty(String,String,String). |
protected CSSOMStyleDeclaration.ValueProvider valueProvider
protected CSSOMStyleDeclaration.ModificationHandler handler
protected org.w3c.dom.css.CSSRule parentRule
protected Map values
public CSSOMStyleDeclaration(CSSOMStyleDeclaration.ValueProvider vp, org.w3c.dom.css.CSSRule parent)
public void setModificationHandler(CSSOMStyleDeclaration.ModificationHandler h)
public String getCssText()
CSSStyleDeclaration.getCssText().getCssText in interface org.w3c.dom.css.CSSStyleDeclarationpublic void setCssText(String cssText) throws DOMException
CSSStyleDeclaration.setCssText(String).setCssText in interface org.w3c.dom.css.CSSStyleDeclarationDOMExceptionpublic String getPropertyValue(String propertyName)
CSSStyleDeclaration.getPropertyValue(String).getPropertyValue in interface org.w3c.dom.css.CSSStyleDeclarationpublic org.w3c.dom.css.CSSValue getPropertyCSSValue(String propertyName)
CSSStyleDeclaration.getPropertyCSSValue(String).getPropertyCSSValue in interface org.w3c.dom.css.CSSStyleDeclarationpublic String removeProperty(String propertyName) throws DOMException
CSSStyleDeclaration.removeProperty(String).removeProperty in interface org.w3c.dom.css.CSSStyleDeclarationDOMExceptionpublic String getPropertyPriority(String propertyName)
CSSStyleDeclaration.getPropertyPriority(String).getPropertyPriority in interface org.w3c.dom.css.CSSStyleDeclarationpublic void setProperty(String propertyName, String value, String prio) throws DOMException
CSSStyleDeclaration.setProperty(String,String,String).setProperty in interface org.w3c.dom.css.CSSStyleDeclarationDOMExceptionpublic int getLength()
CSSStyleDeclaration.getLength().getLength in interface org.w3c.dom.css.CSSStyleDeclarationpublic String item(int index)
CSSStyleDeclaration.item(int).item in interface org.w3c.dom.css.CSSStyleDeclarationpublic org.w3c.dom.css.CSSRule getParentRule()
CSSStyleDeclaration.getParentRule().getParentRule in interface org.w3c.dom.css.CSSStyleDeclarationprotected org.w3c.dom.css.CSSValue getCSSValue(String name)
protected org.w3c.dom.css.CSSValue createCSSValue(String name)
Copyright © 2000–2024 Apache Software Foundation. All rights reserved.