|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfi.hut.tml.xsmiles.mlfc.xforms.constraint.DynamicDependencyHandler.Dependency
| Nested Class Summary | |
class |
DynamicDependencyHandler.Dependency.RealNodeList
|
class |
DynamicDependencyHandler.Dependency.ValueChangeListener
this class listens for the change in the referred nodeset |
| Field Summary | |
protected static int |
afterValueChangeState
|
protected short |
binding_state
the current binding state, one of the above |
int |
bindingType
|
protected static int |
defaultDirtyState
|
protected int |
dirtyState
|
protected boolean |
hasFunctionReferences
|
protected DynamicDependencyListener |
listener
|
static int |
NODESET_BINDING
|
static int |
READONLY_DIRTY
|
static int |
RELEVANT_DIRTY
|
static int |
REQUIRED_DIRTY
|
static int |
SINGLENODE_BINDING
|
static int |
VALID_DIRTY
|
static int |
VALUE_BINDING
|
static int |
VALUE_DIRTY
|
protected DynamicDependencyHandler.Dependency.ValueChangeListener |
valueChangeListener
|
protected LookupResult |
xpathresult
|
| Constructor Summary | |
DynamicDependencyHandler.Dependency(int aBindingType)
|
|
| Method Summary | |
void |
checkStyling()
|
void |
checkValidity(InstanceItem item)
An instance item instructs the control to check its status, when the status changes |
void |
checkVisibility(InstanceItem item)
An instance item instructs the control to check its status, when the status changes |
void |
clearAllDirtyFlags()
|
protected org.w3c.dom.NodeList |
convertToTrueNodeList(org.w3c.dom.NodeList nodes)
|
void |
destroy()
|
protected void |
dumpList(org.w3c.dom.NodeList list)
dump list contents |
protected org.w3c.dom.NodeList |
executeAndGetBoundNodeset(DynamicDependencyListener l)
|
protected void |
executeAndGetReferredNodes(DynamicDependencyListener l,
LookupResult result)
|
void |
functionValueChanged(java.lang.String function)
|
short |
getBindingState()
|
int |
getBindingType()
|
org.w3c.dom.NodeList |
getBoundNodes()
|
DynamicDependencyListener |
getDependencyListener()
|
org.w3c.dom.Node |
getRefNode()
|
boolean |
hasDirtyFlags()
|
protected boolean |
hasNode(org.w3c.dom.Node n,
org.w3c.dom.NodeList list)
see, if a node is contained in a nodelist |
void |
init(DynamicDependencyListener depListener)
|
protected boolean |
isDifferentSet(org.w3c.dom.NodeList nl1,
org.w3c.dom.NodeList nl2)
compares two sets |
void |
notifyError(java.lang.Exception e,
boolean atSubmission)
notify this listener that there was an error in the value of the instance item. |
void |
reevaluateBinding()
execute the XPath and see if the bound nodeset has changed. |
protected void |
removeBoundListeners()
|
protected void |
removeNodeListFromVector(org.w3c.dom.NodeList list,
java.util.Vector vect)
|
protected void |
removeRefListeners()
|
void |
setDirtyState(int stateids,
boolean val,
boolean addToDirtyList)
|
void |
setReadonly(boolean readonly)
|
void |
setRequired(boolean required)
|
boolean |
testAndClearDirtyState(int stateid)
|
boolean |
testDirtyState(int stateids)
|
void |
valueChanged(java.lang.String newValue)
The value of this instanceItem has changed |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected LookupResult xpathresult
public static final int SINGLENODE_BINDING
public static final int NODESET_BINDING
public static final int VALUE_BINDING
public int bindingType
protected boolean hasFunctionReferences
protected DynamicDependencyListener listener
protected DynamicDependencyHandler.Dependency.ValueChangeListener valueChangeListener
protected short binding_state
public static final int VALID_DIRTY
public static final int REQUIRED_DIRTY
public static final int READONLY_DIRTY
public static final int RELEVANT_DIRTY
public static final int VALUE_DIRTY
protected static final int defaultDirtyState
protected static final int afterValueChangeState
protected int dirtyState
| Constructor Detail |
public DynamicDependencyHandler.Dependency(int aBindingType)
| Method Detail |
public void init(DynamicDependencyListener depListener)
throws java.lang.Exception
java.lang.Exceptionpublic DynamicDependencyListener getDependencyListener()
public short getBindingState()
public boolean testDirtyState(int stateids)
public void setDirtyState(int stateids,
boolean val,
boolean addToDirtyList)
public boolean hasDirtyFlags()
public boolean testAndClearDirtyState(int stateid)
protected void executeAndGetReferredNodes(DynamicDependencyListener l,
LookupResult result)
throws java.lang.Exception
java.lang.Exception
protected org.w3c.dom.NodeList executeAndGetBoundNodeset(DynamicDependencyListener l)
throws java.lang.Exception
java.lang.Exception
protected void removeNodeListFromVector(org.w3c.dom.NodeList list,
java.util.Vector vect)
protected void dumpList(org.w3c.dom.NodeList list)
protected boolean isDifferentSet(org.w3c.dom.NodeList nl1,
org.w3c.dom.NodeList nl2)
protected boolean hasNode(org.w3c.dom.Node n,
org.w3c.dom.NodeList list)
public org.w3c.dom.NodeList getBoundNodes()
public org.w3c.dom.Node getRefNode()
protected org.w3c.dom.NodeList convertToTrueNodeList(org.w3c.dom.NodeList nodes)
public void reevaluateBinding()
throws java.lang.Exception
java.lang.Exceptionprotected void removeBoundListeners()
protected void removeRefListeners()
public void destroy()
public void checkValidity(InstanceItem item)
checkValidity in interface InstanceItemListenerpublic void checkVisibility(InstanceItem item)
checkVisibility in interface InstanceItemListener
public void notifyError(java.lang.Exception e,
boolean atSubmission)
notifyError in interface InstanceItemListenerpublic void setReadonly(boolean readonly)
setReadonly in interface InstanceItemListenerpublic void setRequired(boolean required)
setRequired in interface InstanceItemListenerpublic void valueChanged(java.lang.String newValue)
valueChanged in interface InstanceItemListenerpublic int getBindingType()
public void functionValueChanged(java.lang.String function)
functionValueChanged in interface FunctionChangeListenerpublic void checkStyling()
checkStyling in interface InstanceItemListenerpublic void clearAllDirtyFlags()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||