|
|||||||||||
| 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
The superclass of all XForms elements
| Nested Class Summary |
| Nested classes inherited from class fi.hut.tml.xsmiles.dom.XSmilesElementImpl |
XSmilesElementImpl.PseudoNodeList |
| Field Summary | |
boolean |
debugEvents
whether to debug messages for each event dispatch |
protected static java.lang.String |
EVENTS_NS
|
protected XFormsElementHandler |
handler
|
protected boolean |
inited
|
protected ExtendedDocument |
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, UNINITIALIZED, 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 | |
XFormsElementImpl(XFormsElementHandler handler,
java.lang.String ns,
java.lang.String name)
|
|
| Method Summary | |
static void |
debugNode(org.w3c.dom.Node n)
|
protected boolean |
dispatch(org.w3c.dom.events.Event evt)
Dispatch the event to DOM for this element. |
protected boolean |
dispatch(java.lang.String type)
Dispatch the event to DOM for this element. |
void |
dispatchActivateEvent()
|
void |
dispatchClickEvent()
|
boolean |
dispatchEvent(org.w3c.dom.events.Event event)
This method is overridden so that we could do event debugging. |
protected XFormsControl |
findFirstRelevantControl(org.w3c.dom.Element start)
|
BrowserWindow |
getBrowser()
|
java.lang.String |
getClassName()
The class attribute. |
ComponentFactory |
getComponentFactory()
|
java.lang.String |
getId()
The unique id. |
ModelElementImpl |
getModel()
Gets the default XForm element |
ModelElementImpl |
getModel(java.lang.String id)
|
java.lang.String |
getModelId()
The id of the xform of the reference node |
ModelElementImpl |
getModelInScope(org.w3c.dom.Element elem)
starts with an element and goes down the tree to find a scoped model. |
protected java.lang.String |
getSrc()
retrieve the resource attribute string or null if not existing |
java.lang.String |
getStyleAttrValue()
Support the style attribute in XForms |
XMLDocument |
getXMLDocument()
|
void |
handleXFormsException(XFormsException e)
handle any XFormsException that's dispatched for this element |
void |
init()
Initialize this element. |
protected void |
initializeXMLEvents(org.w3c.dom.Element root)
this is a kludge method to initialize child XML events listeners, because XForms will dispatch events at the intialization phase so this method will provide at least basic functionality while still preserving "one-pass" initialization |
boolean |
isCSSLayoutDoc()
|
protected static void |
moveNodes(org.w3c.dom.Element parent,
org.w3c.dom.Node insertBefore,
org.w3c.dom.Element from,
java.util.Vector nodeVector)
move the children of 'parent' before the element 'insertBefore' this is called by init |
void |
printEvent(org.w3c.dom.events.Event evt)
|
static void |
removeAllChildren(org.w3c.dom.Element elem)
|
static InstanceItem |
retrieveInstanceItem(org.w3c.dom.Node n)
|
protected java.lang.String |
retrieveResourceAsString(java.net.URL url)
retrieve a string fetched from this URL with GET |
static java.lang.String |
serializeNode(org.w3c.dom.Node n)
|
void |
setClassName(java.lang.String cl)
|
protected void |
setHandler(XFormsElementHandler a_handler)
|
void |
setId(java.lang.String id)
|
protected void |
setOwnerDoc(ExtendedDocument owner)
|
| 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.xforms10.XFormsElement |
destroy |
| Methods inherited from interface fi.hut.tml.xsmiles.dom.StylableElement |
getRuleNode, getStyle, hasStyle, isPseudoClass, setRuleNode, setStyle |
| 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.VisualElement |
getStyle |
| Methods inherited from interface fi.hut.tml.xsmiles.dom.PseudoClassController |
getPseudoClass, setPseudoClass |
| Field Detail |
protected ExtendedDocument ownerDoc
protected XFormsElementHandler handler
protected boolean inited
public boolean debugEvents
protected static final java.lang.String EVENTS_NS
| Constructor Detail |
public XFormsElementImpl(XFormsElementHandler handler,
java.lang.String ns,
java.lang.String name)
| Method Detail |
public boolean isCSSLayoutDoc()
public java.lang.String getStyleAttrValue()
getStyleAttrValue in interface StylableElementgetStyleAttrValue in class XSmilesElementImplpublic void init()
XSmilesElementImpl
init in interface XFormsElementinit in class VisualElementImplprotected void setOwnerDoc(ExtendedDocument owner)
protected void setHandler(XFormsElementHandler a_handler)
public XMLDocument getXMLDocument()
public ComponentFactory getComponentFactory()
public BrowserWindow getBrowser()
public ModelElementImpl getModel(java.lang.String id)
public ModelElementImpl getModelInScope(org.w3c.dom.Element elem)
public java.lang.String getId()
XFormsElement
getId in interface XFormsElementgetId in class XSmilesElementImpl
public void setId(java.lang.String id)
throws org.w3c.dom.DOMException
setId in interface XFormsElementorg.w3c.dom.DOMExceptionpublic java.lang.String getClassName()
getClassName in interface XFormsElementorg.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
public void setClassName(java.lang.String cl)
throws org.w3c.dom.DOMException
setClassName in interface XFormsElementorg.w3c.dom.DOMExceptionprotected boolean dispatch(java.lang.String type)
protected void initializeXMLEvents(org.w3c.dom.Element root)
protected boolean dispatch(org.w3c.dom.events.Event evt)
public boolean dispatchEvent(org.w3c.dom.events.Event event)
dispatchEvent in interface org.w3c.dom.events.EventTargetpublic static void debugNode(org.w3c.dom.Node n)
public static java.lang.String serializeNode(org.w3c.dom.Node n)
public ModelElementImpl getModel()
public java.lang.String getModelId()
protected static void moveNodes(org.w3c.dom.Element parent,
org.w3c.dom.Node insertBefore,
org.w3c.dom.Element from,
java.util.Vector nodeVector)
public void handleXFormsException(XFormsException e)
public void printEvent(org.w3c.dom.events.Event evt)
public void dispatchActivateEvent()
public void dispatchClickEvent()
protected java.lang.String getSrc()
protected java.lang.String retrieveResourceAsString(java.net.URL url)
throws java.lang.Exception
java.lang.Exceptionprotected XFormsControl findFirstRelevantControl(org.w3c.dom.Element start)
public static void removeAllChildren(org.w3c.dom.Element elem)
public static InstanceItem retrieveInstanceItem(org.w3c.dom.Node n)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||