public class SVGStylableElement.StyleDeclaration extends CSSOMStoredStyleDeclaration implements LiveAttributeValue, CSSEngine.MainPropertyReceiver
CSSOMSVGStyleDeclaration.StyleDeclarationColorValue, CSSOMSVGStyleDeclaration.StyleDeclarationPaintValueCSSOMStyleDeclaration.ModificationHandler, CSSOMStyleDeclaration.StyleDeclarationValue, CSSOMStyleDeclaration.ValueProvider| Modifier and Type | Field and Description |
|---|---|
protected boolean |
mutate
Whether the mutation comes from this object.
|
declarationcssEnginehandler, 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, setStyleDeclarationcreateCSSValuegetCssText, getCSSValue, getParentRule, getPropertyCSSValue, getPropertyPriority, getPropertyValue, removeProperty, setCssText, setModificationHandler, setPropertypublic StyleDeclaration(CSSEngine eng)
public void attrAdded(Attr node, java.lang.String newv)
attrAdded in interface LiveAttributeValuepublic void attrModified(Attr node, java.lang.String oldv, java.lang.String newv)
attrModified in interface LiveAttributeValuepublic void attrRemoved(Attr node, java.lang.String oldv)
attrRemoved in interface LiveAttributeValuepublic void textChanged(java.lang.String text)
throws DOMException
textChanged in interface CSSOMStyleDeclaration.ModificationHandlerDOMExceptionpublic void propertyRemoved(java.lang.String name)
throws DOMException
propertyRemoved in interface CSSOMStyleDeclaration.ModificationHandlerDOMExceptionpublic void propertyChanged(java.lang.String name,
java.lang.String value,
java.lang.String prio)
throws DOMException
propertyChanged in interface CSSOMStyleDeclaration.ModificationHandlerDOMExceptionpublic void setMainProperty(java.lang.String name,
Value v,
boolean important)
setMainProperty in interface CSSEngine.MainPropertyReceiverCopyright © 2022 Apache Software Foundation. All Rights Reserved.