org.apache.batik.css.engine

Class CSSEngine.CSSNavigableDocumentHandler

protected class CSSEngine.CSSNavigableDocumentHandler extends Object implements CSSNavigableDocumentListener, CSSEngine.MainPropertyReceiver

To handle mutations of a CSSNavigableDocument.
Field Summary
protected StyleDeclarationdeclaration
The StyleDeclaration to use from the MainPropertyReceiver.
protected boolean[]mainPropertiesChanged
Array to hold which properties have been changed by a call to setMainProperties.
Method Summary
voidattrModified(Element e, Attr attr, short attrChange, String prevValue, String newValue)
An attribute has changed in the CSSNavigableDocument.
voidcharacterDataModified(Node text)
Character data in the CSSNavigableDocument tree has been modified.
voidnodeInserted(Node newNode)
A node has been inserted into the CSSNavigableDocument tree.
voidnodeToBeRemoved(Node oldNode)
A node is about to be removed from the CSSNavigableDocument tree.
voidoverrideStylePropertyChanged(CSSStylableElement elt, String name, String val, String prio)
A property in the override style declaration has been changed.
voidoverrideStylePropertyRemoved(CSSStylableElement elt, String name)
A property in the override style declaration has been removed.
voidoverrideStyleTextChanged(CSSStylableElement elt, String text)
The text of the override style declaration for this element has been modified.
voidsetMainProperty(String name, Value v, boolean important)
Sets a main property value in response to a shorthand property being set.
voidsubtreeModified(Node rootOfModifications)
A subtree of the CSSNavigableDocument tree has been modified in some way.

Field Detail

declaration

protected StyleDeclaration declaration
The StyleDeclaration to use from the MainPropertyReceiver.

mainPropertiesChanged

protected boolean[] mainPropertiesChanged
Array to hold which properties have been changed by a call to setMainProperties.

Method Detail

attrModified

public void attrModified(Element e, Attr attr, short attrChange, String prevValue, String newValue)
An attribute has changed in the CSSNavigableDocument.

characterDataModified

public void characterDataModified(Node text)
Character data in the CSSNavigableDocument tree has been modified.

nodeInserted

public void nodeInserted(Node newNode)
A node has been inserted into the CSSNavigableDocument tree.

nodeToBeRemoved

public void nodeToBeRemoved(Node oldNode)
A node is about to be removed from the CSSNavigableDocument tree.

overrideStylePropertyChanged

public void overrideStylePropertyChanged(CSSStylableElement elt, String name, String val, String prio)
A property in the override style declaration has been changed.

overrideStylePropertyRemoved

public void overrideStylePropertyRemoved(CSSStylableElement elt, String name)
A property in the override style declaration has been removed.

overrideStyleTextChanged

public void overrideStyleTextChanged(CSSStylableElement elt, String text)
The text of the override style declaration for this element has been modified.

setMainProperty

public void setMainProperty(String name, Value v, boolean important)
Sets a main property value in response to a shorthand property being set.

subtreeModified

public void subtreeModified(Node rootOfModifications)
A subtree of the CSSNavigableDocument tree has been modified in some way.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.