fi.hut.tml.xsmiles.mlfc.xforms.constraint
Class DynamicDependencyHandler

java.lang.Object
  extended byfi.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

Nested Class Summary
 class DynamicDependencyHandler.Dependency
           
 class DynamicDependencyHandler.ValueDependency
           
 
Field Summary
protected  XFormsContext context
           
protected  java.util.Hashtable dependencies
          current dependencies
protected  java.util.Vector dirtyDependencies
           
static int DIRTYINITIALSIZE
           
protected  java.util.Vector dirtyMIPS
           
protected  ModelElementImpl model
           
 
Constructor Summary
DynamicDependencyHandler(XFormsContext aContext, ModelElementImpl aModel)
           
 
Method Summary
 void addDependency(DynamicDependencyHandler.Dependency dep)
           
 void addDirtyDependency(DynamicDependencyHandler.Dependency dep)
           
 void addDirtyMIP(DynamicDependencyHandler.Dependency dep)
           
 DynamicDependencyHandler.Dependency createDependency(int aBindingType)
           
 void destroy()
           
 java.util.Vector getAndClearDirtyDependencies()
           
 java.util.Vector getAndClearDirtyMIPS()
           
 void markAllUIDependenciesDirty()
           
 void reevaluateDependencies()
          this is a rather costly operation that executes all XPath statements to see whether they have changed.
 void removeDependency(DynamicDependencyHandler.Dependency dep)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

DynamicDependencyHandler

public DynamicDependencyHandler(XFormsContext aContext,
                                ModelElementImpl aModel)
Method Detail

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