Package org.apache.batik.css.engine
Class CSSEngine.CSSNavigableDocumentHandler
java.lang.Object
org.apache.batik.css.engine.CSSEngine.CSSNavigableDocumentHandler
- All Implemented Interfaces:
CSSEngine.MainPropertyReceiver
,CSSNavigableDocumentListener
- Enclosing class:
CSSEngine
protected class CSSEngine.CSSNavigableDocumentHandler
extends Object
implements CSSNavigableDocumentListener, CSSEngine.MainPropertyReceiver
To handle mutations of a CSSNavigableDocument.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StyleDeclaration
The StyleDeclaration to use from the MainPropertyReceiver.protected boolean[]
Array to hold which properties have been changed by a call to setMainProperties. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
attrModified
(Element e, Attr attr, short attrChange, String prevValue, String newValue) An attribute has changed in the CSSNavigableDocument.void
characterDataModified
(Node text) Character data in the CSSNavigableDocument tree has been modified.void
nodeInserted
(Node newNode) A node has been inserted into the CSSNavigableDocument tree.void
nodeToBeRemoved
(Node oldNode) A node is about to be removed from the CSSNavigableDocument tree.void
overrideStylePropertyChanged
(CSSStylableElement elt, String name, String val, String prio) A property in the override style declaration has been changed.void
overrideStylePropertyRemoved
(CSSStylableElement elt, String name) A property in the override style declaration has been removed.void
overrideStyleTextChanged
(CSSStylableElement elt, String text) The text of the override style declaration for this element has been modified.void
setMainProperty
(String name, Value v, boolean important) Sets a main property value in response to a shorthand property being set.void
subtreeModified
(Node rootOfModifications) A subtree of the CSSNavigableDocument tree has been modified in some way.
-
Field Details
-
mainPropertiesChanged
protected boolean[] mainPropertiesChangedArray to hold which properties have been changed by a call to setMainProperties. -
declaration
The StyleDeclaration to use from the MainPropertyReceiver.
-
-
Constructor Details
-
CSSNavigableDocumentHandler
protected CSSNavigableDocumentHandler()
-
-
Method Details
-
nodeInserted
A node has been inserted into the CSSNavigableDocument tree.- Specified by:
nodeInserted
in interfaceCSSNavigableDocumentListener
-
nodeToBeRemoved
A node is about to be removed from the CSSNavigableDocument tree.- Specified by:
nodeToBeRemoved
in interfaceCSSNavigableDocumentListener
-
subtreeModified
A subtree of the CSSNavigableDocument tree has been modified in some way.- Specified by:
subtreeModified
in interfaceCSSNavigableDocumentListener
-
characterDataModified
Character data in the CSSNavigableDocument tree has been modified.- Specified by:
characterDataModified
in interfaceCSSNavigableDocumentListener
-
attrModified
An attribute has changed in the CSSNavigableDocument.- Specified by:
attrModified
in interfaceCSSNavigableDocumentListener
-
overrideStyleTextChanged
The text of the override style declaration for this element has been modified.- Specified by:
overrideStyleTextChanged
in interfaceCSSNavigableDocumentListener
-
overrideStylePropertyRemoved
A property in the override style declaration has been removed.- Specified by:
overrideStylePropertyRemoved
in interfaceCSSNavigableDocumentListener
-
overrideStylePropertyChanged
public void overrideStylePropertyChanged(CSSStylableElement elt, String name, String val, String prio) A property in the override style declaration has been changed.- Specified by:
overrideStylePropertyChanged
in interfaceCSSNavigableDocumentListener
-
setMainProperty
Sets a main property value in response to a shorthand property being set.- Specified by:
setMainProperty
in interfaceCSSEngine.MainPropertyReceiver
-