public class SVGStylableElement.StyleDeclaration extends CSSOMStoredStyleDeclaration implements LiveAttributeValue, CSSEngine.MainPropertyReceiver
CSSOMSVGStyleDeclaration.StyleDeclarationColorValue, CSSOMSVGStyleDeclaration.StyleDeclarationPaintValue
CSSOMStyleDeclaration.ModificationHandler, CSSOMStyleDeclaration.StyleDeclarationValue, CSSOMStyleDeclaration.ValueProvider
Modifier and Type | Field and Description |
---|---|
protected boolean |
mutate
Whether the mutation comes from this object.
|
declaration
cssEngine
handler, parentRule, valueProvider, values
Constructor and Description |
---|
StyleDeclaration(CSSEngine eng)
Creates a new StyleDeclaration.
|
Modifier and Type | Method and Description |
---|---|
void |
attrAdded(Attr node,
java.lang.String newv)
Called when an Attr node has been added.
|
void |
attrModified(Attr node,
java.lang.String oldv,
java.lang.String newv)
Called when an Attr node has been modified.
|
void |
attrRemoved(Attr node,
java.lang.String oldv)
Called when an Attr node has been removed.
|
void |
propertyChanged(java.lang.String name,
java.lang.String value,
java.lang.String prio)
Called when a property was changed.
|
void |
propertyRemoved(java.lang.String name)
Called when a property was removed.
|
void |
setMainProperty(java.lang.String name,
Value v,
boolean important)
Sets a main property value in response to a shorthand property
being set.
|
void |
textChanged(java.lang.String text)
Called when the value text has changed.
|
getLength, getStyleDeclaration, getText, getValue, isImportant, item, setStyleDeclaration
createCSSValue
getCssText, getCSSValue, getParentRule, getPropertyCSSValue, getPropertyPriority, getPropertyValue, removeProperty, setCssText, setModificationHandler, setProperty
public StyleDeclaration(CSSEngine eng)
public void attrAdded(Attr node, java.lang.String newv)
attrAdded
in interface LiveAttributeValue
public void attrModified(Attr node, java.lang.String oldv, java.lang.String newv)
attrModified
in interface LiveAttributeValue
public void attrRemoved(Attr node, java.lang.String oldv)
attrRemoved
in interface LiveAttributeValue
public void textChanged(java.lang.String text) throws DOMException
textChanged
in interface CSSOMStyleDeclaration.ModificationHandler
DOMException
public void propertyRemoved(java.lang.String name) throws DOMException
propertyRemoved
in interface CSSOMStyleDeclaration.ModificationHandler
DOMException
public void propertyChanged(java.lang.String name, java.lang.String value, java.lang.String prio) throws DOMException
propertyChanged
in interface CSSOMStyleDeclaration.ModificationHandler
DOMException
public void setMainProperty(java.lang.String name, Value v, boolean important)
setMainProperty
in interface CSSEngine.MainPropertyReceiver
Copyright © 2022 Apache Software Foundation. All Rights Reserved.