public class CssStyleDeclaration extends CssBase<CssStyle> implements org.w3c.dom.css.CSSStyleDeclaration
CssBase.CharacterState| Constructor and Description |
|---|
CssStyleDeclaration()
Creates a new instance of the CssStyleProperty using he given parent.
|
CssStyleDeclaration(boolean isModifiable)
Creates a new instance of the CssStyleProperty using the given modifiable.
|
CssStyleDeclaration(CssStyle parent)
Creates a new instance of the CssStyleProperty using he given parent.
|
| Modifier and Type | Method and Description |
|---|---|
void |
consumeCssText(String cssText)
Will be called when the given cssText should be consumed by this element.
|
String
|
createCssText()
Creates the cssText for this element, this should be based upon the current status of the element.
|
int |
getLength() |
org.w3c.dom.css.CSSRule
|
getParentRule() |
<TData> TData |
getPropertyAs(Enumerations.CssStyleProperty declaration,
Function<String,TData> converter)
Returns the desired supported declaration as the desired type if it exits.
|
<TData> TData |
getPropertyAs(String key,
Function<String,TData> converter)
Returns the desired declaration as the desired type if it exits.
|
org.w3c.dom.css.CSSValue
|
getPropertyCSSValue(String propertyName) |
String
|
getPropertyPriority(String propertyName) |
String
|
getPropertyValue(String propertyName)
The value is stripped of its lengthType
|
String
|
item(int index)
|
String
|
removeProperty(String propertyName) |
void |
setProperty(String propertyName,
String value,
String priority)
|
filterCommentAndString,
getCssText, getIsModifiable, getParent, setCssText, setNeedsUpdateCssTextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCssText, setCssTextpublic CssStyleDeclaration()
public CssStyleDeclaration(boolean isModifiable)
isModifiable - determines if the CssStyleProperty is modifiablepublic CssStyleDeclaration(CssStyle parent)
parent - parent to use may be null if not neededpublic <TData> TData getPropertyAs(Enumerations.CssStyleProperty declaration, Function<String,TData> converter)
TData - type of the datadeclaration - declaration to be usedconverter - converter interfaces to be usedpublic <TData> TData getPropertyAs(String key, Function<String,TData> converter)
TData - type of the datakey - key to be usedconverter - converter interfaces to be usedpublic String getPropertyValue(String propertyName)
getPropertyValue in interface org.w3c.dom.css.CSSStyleDeclaration
public org.w3c.dom.css.CSSValue getPropertyCSSValue(String propertyName)
getPropertyCSSValue in interface org.w3c.dom.css.CSSStyleDeclaration
public String removeProperty(String propertyName) throws DOMException
removeProperty in interface org.w3c.dom.css.CSSStyleDeclaration
DOMExceptionpublic String getPropertyPriority(String propertyName)
getPropertyPriority in interface org.w3c.dom.css.CSSStyleDeclaration
public void setProperty(String propertyName, String value, String priority) throws DOMException
setProperty in interface org.w3c.dom.css.CSSStyleDeclaration
DOMExceptionpublic int getLength()
getLength in interface org.w3c.dom.css.CSSStyleDeclarationpublic String item(int index)
item in interface org.w3c.dom.css.CSSStyleDeclarationpublic org.w3c.dom.css.CSSRule getParentRule()
getParentRule in interface org.w3c.dom.css.CSSStyleDeclaration
public void consumeCssText(String cssText) throws DOMException
consumeCssText in class CssBase<CssStyle>cssText - the cssText to be consumedDOMException - if an error during consumption occurs
public String createCssText()
CssBasecreateCssText in class CssBase<CssStyle>Copyright © 2015 Saxonia Systems AG. All rights reserved.