fi.hut.tml.xsmiles.mlfc.xforms.constraint
Class DynamicDependencyHandler
java.lang.Object
fi.hut.tml.xsmiles.mlfc.xforms.constraint.DynamicDependencyHandler
- public class DynamicDependencyHandler
- extends java.lang.Object
The handler for dynamic UI dependencies
This handler will notify if the bound nodeset changes as well
as the bound node value changes.
in expression /root[name='mikko']/length, the bound node will be length, and all the name
nodes will be referred nodes.
- Author:
- Mikko Honkala
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dependencies
protected java.util.Hashtable dependencies
- current dependencies
context
protected XFormsContext context
model
protected ModelElementImpl model
DIRTYINITIALSIZE
public static final int DIRTYINITIALSIZE
- See Also:
- Constant Field Values
dirtyMIPS
protected java.util.Vector dirtyMIPS
dirtyDependencies
protected java.util.Vector dirtyDependencies
DynamicDependencyHandler
public DynamicDependencyHandler(XFormsContext aContext,
ModelElementImpl aModel)
addDependency
public void addDependency(DynamicDependencyHandler.Dependency dep)
removeDependency
public void removeDependency(DynamicDependencyHandler.Dependency dep)
addDirtyDependency
public void addDirtyDependency(DynamicDependencyHandler.Dependency dep)
addDirtyMIP
public void addDirtyMIP(DynamicDependencyHandler.Dependency dep)
getAndClearDirtyMIPS
public java.util.Vector getAndClearDirtyMIPS()
getAndClearDirtyDependencies
public java.util.Vector getAndClearDirtyDependencies()
createDependency
public DynamicDependencyHandler.Dependency createDependency(int aBindingType)
throws java.lang.Exception
- Throws:
java.lang.Exception
reevaluateDependencies
public void reevaluateDependencies()
throws java.lang.Exception
- this is a rather costly operation that executes all XPath statements to
see whether they have changed. Call this after insertion or deletion of a
node
- Throws:
java.lang.Exception
destroy
public void destroy()
markAllUIDependenciesDirty
public void markAllUIDependenciesDirty()
X-Smiles 1.2