Class PTXMLCompositor
Object
|
+--PTXMLCompositor
- <private> class
PTXMLCompositor
Static class for expanding an XML tree structure into an ordered grouping of JavaScript objects.
Defined in PTXMLCompositor.js
Requires:
|
Constructor Summary |
PTXMLCompositor
()
PTXMLCompositor static Object constructor
|
|
Method Summary |
<static> <private> Object
|
expandComponent(parentNode,node,w)
Expands special component nodes (for example PTTableControl)
|
<static> Object
|
expandFromXML(xml,w,obj)
Expands JavaScript objects from XML DOM object
|
<static> <private> Object
|
inflateNode(node,obj,w,parentObj,onFinishCompositorID)
Inflates JavaScript properties from a DOM node
|
<static> <private> Object
|
inflateObject(objName,node,w,mode,obj)
Inflates a single JavaScript object from a DOM node
|
<static> <private> String
|
unescapeTokens(str)
Finds tokens and unescapes their contents
|
nextUID
<private> <static> Number nextUID
URLNodes
<private> <static> Hash URLNodes
VALUE_AUTOSET
<static> <final> String VALUE_AUTOSET
VERSION
<static> <final> Object VERSION
PTXMLCompositor
PTXMLCompositor()
PTXMLCompositor static Object constructor
Returns:
New PTXMLCompositor Object. Author Patrick Corcoran
expandComponent
<static> <private> Object expandComponent(parentNode,node,w)
Expands special component nodes (for example PTTableControl)
Parameters:
parentNode - Parent node (XML DOM Node)
node - Component node (XML DOM Node)
w - XML wrapper instance (PTXMLWrapper object)
Returns:
an object representing a PTStandaloneComponent subclass
expandFromXML
<static> Object expandFromXML(xml,w,obj)
Expands JavaScript objects from XML DOM object
Parameters:
xml - XML DOM object to expand (XML DOM object)
w - XML wrapper instance (PTXMLWrapper object)
obj - existing object whose properties will be expanded from the XML (Optional)
Returns:
an Object created from the input XML
inflateNode
<static> <private> Object inflateNode(node,obj,w,parentObj,onFinishCompositorID)
Inflates JavaScript properties from a DOM node
Parameters:
node - XML node (XML DOM node)
obj - Object which will receive the properties (Object)
w - XML wrapper instance (PTXMLWrapper object)
parentObj - The parent object of obj (Object)
onFinishCompositorID - Unique ID of event which will be triggered when compositor has finished (string)
Returns:
Object, type dependent upon input xml
inflateObject
<static> <private> Object inflateObject(objName,node,w,mode,obj)
Inflates a single JavaScript object from a DOM node
Parameters:
objName - Name of the object (string)
node - An XML DOM node (XML DOM object)
w - XML wrapper instance (PTXMLWrapper object)
unescapeTokens
<static> <private> String unescapeTokens(str)
Finds tokens and unescapes their contents
Parameters:
str - String to unescape (string)
Returns:
a String with the tokens unescaped
Deprecated this method simply returns string argument.
Documentation generated by
JSDoc on Tue Sep 21 02:04:06 2010