|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.xerces.dom.NodeImpl
org.apache.xerces.dom.ChildNode
org.apache.xerces.dom.ParentNode
org.apache.xerces.dom.ElementImpl
org.apache.xerces.dom.ElementNSImpl
fi.hut.tml.xsmiles.dom.XSmilesElementImpl
fi.hut.tml.xsmiles.dom.VisualElementImpl
fi.hut.tml.xsmiles.mlfc.xforms.dom.XFormsElementImpl
fi.hut.tml.xsmiles.mlfc.xforms.dom.DynBoundElementImpl
The superclass of all XForms elements that are bound to an instance node It will listen for changes in the bound element, as well as all changes to the binding itself, and will signal these changes up in the presentation DOM.
| Nested Class Summary |
| Nested classes inherited from class fi.hut.tml.xsmiles.dom.XSmilesElementImpl |
XSmilesElementImpl.PseudoNodeList |
| Field Summary | |
protected BindElementImpl |
bind
|
static short |
BINDING_ATTRIBUTES_NOT_FOUND
state: bindind attributes not found |
static short |
BINDING_FAILED
state: bindind failed (fatal error) |
static short |
BINDING_OK
state: binding ok |
protected short |
binding_state
the current binding state, one of the above |
protected boolean |
bindingAttributesRequired
are binding attributes required (e.g. |
static short |
BOUND_NODE_NOT_FOUND
state: bound node was not found (non-relevant control) |
protected InstanceNode |
contextNode
Repeat may set this context node |
protected boolean |
init
are we initializing the control |
protected ModelElementImpl |
myModel
Gets my model element. |
protected XPathExpr |
refExpr
|
static short |
UNINITIALIZED
state: unitialized |
| Fields inherited from class fi.hut.tml.xsmiles.mlfc.xforms.dom.XFormsElementImpl |
debugEvents, EVENTS_NS, handler, inited, ownerDoc |
| Fields inherited from class fi.hut.tml.xsmiles.dom.VisualElementImpl |
views |
| Fields inherited from class fi.hut.tml.xsmiles.dom.XSmilesElementImpl |
DESTROYED, elementStatus, INITIALIZED, INITIALIZING, setPseudoClasses, style, xblpropname |
| Fields inherited from class org.apache.xerces.dom.ElementNSImpl |
localName, namespaceURI |
| Fields inherited from class org.apache.xerces.dom.ElementImpl |
attributes, name |
| Fields inherited from class org.apache.xerces.dom.ParentNode |
firstChild, fNodeListCache, ownerDocument |
| Fields inherited from class org.apache.xerces.dom.ChildNode |
nextSibling, previousSibling |
| Fields inherited from class org.apache.xerces.dom.NodeImpl |
DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_IS_CONTAINED, DOCUMENT_POSITION_PRECEDING, ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, ID, IGNORABLEWS, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, TREE_POSITION_ANCESTOR, TREE_POSITION_DESCENDANT, TREE_POSITION_DISCONNECTED, TREE_POSITION_EQUIVALENT, TREE_POSITION_FOLLOWING, TREE_POSITION_PRECEDING, TREE_POSITION_SAME_NODE, UNNORMALIZED |
| Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
| Constructor Summary | |
DynBoundElementImpl(XFormsElementHandler handler,
java.lang.String ns,
java.lang.String name)
|
|
| Method Summary | |
void |
bindingMaybeDirty()
the refresh processing notifies, that the binding might have changed, and it needs to be re-evaluated |
protected BindElement |
checkBindAttribute()
|
void |
checkBinding()
check if my binding has changed |
protected ModelElementImpl |
checkModelAttribute()
check that model attribute is sane, if it exists |
void |
checkStyling()
|
void |
checkVisibility()
This is called when a binding goes to zero nodes |
java.lang.Object |
clone()
|
void |
destroy()
Destroy this element and its descendants recursively. |
protected void |
destroyBinding()
|
InstanceNode |
evaluateRefNode()
an utility function for evaluating the ref or nodeset XPath once and returning the result. |
protected BindElementImpl |
getBind()
|
short |
getBindingState()
returns the current binding state |
int |
getBindingType()
|
org.w3c.dom.NodeList |
getBoundNodeset()
Search for my reference nodes this is multiple node binding |
java.lang.String |
getChildText()
iterate through output and text nodes |
InstanceNode |
getContextForDescendant()
an descendant asks for its context |
org.w3c.dom.Node |
getContextNode()
|
org.w3c.dom.NodeList |
getContextNodeList()
|
InstanceItemListener |
getInstanceItemListener()
|
ModelElementImpl |
getModel()
get this elements model (look for parents if model attribute not found) |
ModelContext |
getModelContext()
|
org.w3c.dom.Node |
getNamespaceContextNode()
|
protected static ElementWithContext |
getParentBoundElement(org.w3c.dom.Node start,
ElementWithContext refElem)
Used also by ModelBoundElement. |
java.lang.String |
getRef()
|
InstanceNode |
getRefNode()
|
protected java.lang.Object |
getRefNodeValue()
gets the reference instance node value |
XPathExpr |
getRefXPathExpr()
|
java.lang.String |
getTextWithPrecedence()
get text: use precedence : refNode, linking attributes, inline text |
XPathExpr |
getXPath()
get the XPath string to listen to |
XPathEngine |
getXPathEngine()
executes an arbitrary XPath expression |
boolean |
hasBindingAttributes()
is this element bound. |
protected static boolean |
isSameModel(ElementWithContext elem1,
ElementWithContext elem2)
|
boolean |
isSingleNodeBinding()
|
void |
notifyBindingChanged(org.w3c.dom.NodeList newBinding)
notifies the listener that the binding and the value changed |
protected void |
notifyBindingChangedRecursively(org.w3c.dom.Element elem)
|
void |
notifyParentBindingChanged(DynBoundElementImpl ancestor)
the ancestor may signal thru this method that its binding has changed, and therefore I should renew my context node and binding |
void |
renewBinding()
renew my bindings |
void |
resetContextNode()
reset my context node |
void |
setContextNode(InstanceNode node)
|
protected void |
setRefNodeValue(java.lang.Object value,
boolean valueChanging)
Sets the reference instance node value |
| Methods inherited from class fi.hut.tml.xsmiles.mlfc.xforms.dom.XFormsElementImpl |
debugNode, dispatch, dispatch, dispatchActivateEvent, dispatchClickEvent, dispatchEvent, findFirstRelevantControl, getBrowser, getClassName, getComponentFactory, getId, getModel, getModelId, getModelInScope, getSrc, getStyleAttrValue, getXMLDocument, handleXFormsException, init, initializeXMLEvents, isCSSLayoutDoc, moveNodes, printEvent, removeAllChildren, retrieveInstanceItem, retrieveResourceAsString, serializeNode, setClassName, setHandler, setId, setOwnerDoc |
| Methods inherited from class fi.hut.tml.xsmiles.dom.VisualElementImpl |
addView, belongsToTree, getViews, handleEvent, insertBefore, isCurrentlyVisible, isFocusPoint, isPseudoClass, isVisibleByCSSProperties, notifyPseudoRemoved, removeAllViews, removeAttribute, removeChild, replaceChild, setAttribute, setStatus, styleChanged, updateViews |
| Methods inherited from class org.apache.xerces.dom.ElementNSImpl |
getBaseURI, getLocalName, getNamespaceURI, getPrefix, getTypeName, getTypeNamespace, setPrefix, setType, setValues |
| Methods inherited from class org.apache.xerces.dom.ElementImpl |
cloneNode, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getDefaultAttributes, getElementsByTagName, getElementsByTagNameNS, getNodeName, getNodeType, getSchemaTypeInfo, getTagName, getXercesAttribute, hasAttribute, hasAttributeNS, hasAttributes, isEqualNode, normalize, reconcileDefaultAttributes, removeAttributeNode, removeAttributeNS, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setReadOnly, setupDefaultAttributes, setXercesAttributeNode, synchronizeData |
| Methods inherited from class org.apache.xerces.dom.ParentNode |
getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getOwnerDocument, getTextContent, hasChildNodes, item, setTextContent, synchronizeChildren |
| Methods inherited from class org.apache.xerces.dom.ChildNode |
getNextSibling, getParentNode, getPreviousSibling |
| Methods inherited from class org.apache.xerces.dom.NodeImpl |
addEventListener, appendChild, changed, changes, compareDocumentPosition, compareTreePosition, getContainer, getFeature, getNodeNumber, getNodeValue, getReadOnly, getUserData, getUserData, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, removeEventListener, setNodeValue, setUserData, setUserData, toString |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.w3c.dom.Element |
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS |
| Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
| Methods inherited from interface fi.hut.tml.xsmiles.dom.StylableElement |
getRuleNode, getStyle, hasStyle, isPseudoClass, setRuleNode, setStyle |
| Methods inherited from interface fi.hut.tml.xsmiles.dom.VisualElement |
getStyle |
| Methods inherited from interface fi.hut.tml.xsmiles.dom.PseudoClassController |
getPseudoClass, setPseudoClass |
| Field Detail |
public static final short UNINITIALIZED
public static final short BINDING_ATTRIBUTES_NOT_FOUND
public static final short BOUND_NODE_NOT_FOUND
public static final short BINDING_FAILED
public static final short BINDING_OK
protected short binding_state
protected boolean bindingAttributesRequired
protected InstanceNode contextNode
protected BindElementImpl bind
protected boolean init
protected ModelElementImpl myModel
protected XPathExpr refExpr
| Constructor Detail |
public DynBoundElementImpl(XFormsElementHandler handler,
java.lang.String ns,
java.lang.String name)
| Method Detail |
protected ModelElementImpl checkModelAttribute()
throws XFormsBindingException
XFormsBindingException
protected BindElement checkBindAttribute()
throws XFormsBindingException
XFormsBindingExceptionprotected BindElementImpl getBind()
public int getBindingType()
public void bindingMaybeDirty()
bindingMaybeDirty in interface DynamicDependencyListenerpublic void resetContextNode()
ElementWithContext
resetContextNode in interface ElementWithContextpublic void renewBinding()
ElementWithContext
renewBinding in interface ElementWithContextprotected void destroyBinding()
public short getBindingState()
getBindingState in interface ElementWithContextpublic org.w3c.dom.NodeList getBoundNodeset()
getBoundNodeset in interface DynamicDependencyListenerpublic InstanceNode getContextForDescendant()
ElementWithContext
getContextForDescendant in interface ElementWithContextpublic void destroy()
XSmilesElementImpl
destroy in interface XFormsElementdestroy in class XSmilesElementImpl
protected void setRefNodeValue(java.lang.Object value,
boolean valueChanging)
protected java.lang.Object getRefNodeValue()
public InstanceNode getRefNode()
getRefNode in interface DynamicDependencyListenerpublic java.lang.String getRef()
protected static ElementWithContext getParentBoundElement(org.w3c.dom.Node start,
ElementWithContext refElem)
public void setContextNode(InstanceNode node)
public org.w3c.dom.Node getContextNode()
getContextNode in interface ExpressionContainerpublic XPathEngine getXPathEngine()
ExpressionContainer
getXPathEngine in interface ExpressionContainerpublic ModelElementImpl getModel()
ElementWithContext
getModel in interface ElementWithContextgetModel in class XFormsElementImplpublic ModelContext getModelContext()
getModelContext in interface ExpressionContainerpublic org.w3c.dom.Node getNamespaceContextNode()
getNamespaceContextNode in interface ExpressionContainerpublic XPathExpr getXPath()
getXPath in interface DynamicDependencyListenerpublic boolean isSingleNodeBinding()
isSingleNodeBinding in interface DynamicDependencyListenerpublic XPathExpr getRefXPathExpr()
public void checkVisibility()
public void checkStyling()
public void notifyBindingChanged(org.w3c.dom.NodeList newBinding)
notifyBindingChanged in interface DynamicDependencyListenerpublic void notifyParentBindingChanged(DynBoundElementImpl ancestor)
notifyParentBindingChanged in interface ElementWithContextprotected void notifyBindingChangedRecursively(org.w3c.dom.Element elem)
protected static boolean isSameModel(ElementWithContext elem1,
ElementWithContext elem2)
public InstanceItemListener getInstanceItemListener()
getInstanceItemListener in interface DynamicDependencyListenerpublic void checkBinding()
checkBinding in interface ElementWithContextpublic boolean hasBindingAttributes()
hasBindingAttributes in interface ElementWithContext
public InstanceNode evaluateRefNode()
throws java.lang.Exception,
org.xml.sax.SAXException
java.lang.Exception
org.xml.sax.SAXException
public java.lang.String getTextWithPrecedence()
throws XFormsLinkException
getTextWithPrecedence in interface ElementWithContextXFormsLinkExceptionpublic java.lang.String getChildText()
public org.w3c.dom.NodeList getContextNodeList()
getContextNodeList in interface ExpressionContainer
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class XSmilesElementImpljava.lang.CloneNotSupportedException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||