net.sourceforge.jeuclid.dom
Interface ChangeTrackingInterface

All Known Subinterfaces:
JEuclidElement, JEuclidNode
All Known Implementing Classes:
AbstractChangeTrackingElement, AbstractContainer, AbstractElementWithDelegates, AbstractInvisibleJEuclidElement, AbstractJEuclidElement, AbstractMathElementWithChildren, AbstractRoot, AbstractRowLike, AbstractScriptElement, AbstractSubSuper, AbstractTokenWithStandardLayout, AbstractTokenWithTextLayout, AbstractUnderOver, Annotation, DocumentElement, Maction, Maligngroup, Malignmark, MathImpl, Menclose, Menclose.AbstractRowLikeNotation, Menclose.Downdiagonalstrike, Menclose.Longdiv, Menclose.Updiagonalstrike, Merror, Mfenced, Mfrac, Mglyph, Mi, Mlabeledtr, Mmultiscripts, Mn, Mo, Mover, Mpadded, Mphantom, Mprescripts, Mroot, Mrow, Ms, Mspace, Msqrt, Mstyle, Msub, Msubsup, Msup, Mtable, Mtd, Mtext, Mtr, Munder, Munderover, None, Semantics

public interface ChangeTrackingInterface

Interface for nodes which are capable of tracking changes.

Version:
$Revision: 310 $
Author:
Max Berger

Method Summary
 void addListener(ChangeTrackingInterface listener)
          Adds a change listener to this element.
 void fireChanged(boolean propagate)
          Called when the element has changed.
 void fireChangeForSubTree()
          fires a change on this element and all its children, but no listeners and parents.
 

Method Detail

fireChanged

void fireChanged(boolean propagate)
Called when the element has changed.

Parameters:
propagate - if set to true, change is also fired on parent and registered listeners.

addListener

void addListener(ChangeTrackingInterface listener)
Adds a change listener to this element.

Parameters:
listener - the element to be notified in case of changes (if propagate is set).

fireChangeForSubTree

void fireChangeForSubTree()
fires a change on this element and all its children, but no listeners and parents.



Copyright © 2002-2008 The JEuclid project. All Rights Reserved.