public abstract class CSSOMStoredStyleDeclaration extends CSSOMSVGStyleDeclaration implements CSSOMStyleDeclaration.ValueProvider, CSSOMStyleDeclaration.ModificationHandler, StyleDeclarationProvider
StyleDeclaration
.CSSOMSVGStyleDeclaration.StyleDeclarationColorValue, CSSOMSVGStyleDeclaration.StyleDeclarationPaintValue
CSSOMStyleDeclaration.ModificationHandler, CSSOMStyleDeclaration.StyleDeclarationValue, CSSOMStyleDeclaration.ValueProvider
Modifier and Type | Field and Description |
---|---|
protected StyleDeclaration |
declaration
The object storing the properties.
|
cssEngine
handler, parentRule, valueProvider, values
Constructor and Description |
---|
CSSOMStoredStyleDeclaration(CSSEngine eng)
Creates a new CSSOMStoredStyleDeclaration.
|
Modifier and Type | Method and Description |
---|---|
int |
getLength()
Returns the length of the declaration.
|
StyleDeclaration |
getStyleDeclaration()
Returns the object storing the properties of this style declaration.
|
java.lang.String |
getText()
Returns the text of the declaration.
|
Value |
getValue(java.lang.String name)
Returns the current value associated with this object.
|
boolean |
isImportant(java.lang.String name)
Tells whether the given property is important.
|
java.lang.String |
item(int idx)
Returns the value at the given.
|
void |
setStyleDeclaration(StyleDeclaration sd)
Sets the object storing the properties of this style declaration.
|
createCSSValue
getCssText, getCSSValue, getParentRule, getPropertyCSSValue, getPropertyPriority, getPropertyValue, removeProperty, setCssText, setModificationHandler, setProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
propertyChanged, propertyRemoved, textChanged
protected StyleDeclaration declaration
public CSSOMStoredStyleDeclaration(CSSEngine eng)
public StyleDeclaration getStyleDeclaration()
getStyleDeclaration
in interface StyleDeclarationProvider
public void setStyleDeclaration(StyleDeclaration sd)
setStyleDeclaration
in interface StyleDeclarationProvider
public Value getValue(java.lang.String name)
getValue
in interface CSSOMStyleDeclaration.ValueProvider
public boolean isImportant(java.lang.String name)
isImportant
in interface CSSOMStyleDeclaration.ValueProvider
public java.lang.String getText()
getText
in interface CSSOMStyleDeclaration.ValueProvider
public int getLength()
getLength
in interface CSSOMStyleDeclaration.ValueProvider
getLength
in interface CSSStyleDeclaration
getLength
in class CSSOMStyleDeclaration
public java.lang.String item(int idx)
item
in interface CSSOMStyleDeclaration.ValueProvider
item
in interface CSSStyleDeclaration
item
in class CSSOMStyleDeclaration
Copyright © 2022 Apache Software Foundation. All Rights Reserved.