Echo.Serial
Class Method Summary | |
---|---|
Public | addPropertyTranslator() Adds a property translator for a specific class name. |
Public | addPropertyTranslatorByType() Adds a property translator for a specific constructor. |
Public | getPropertyTranslator() Retrieves a property translator for a specific class name. |
Public | getPropertyTranslatorByType() Retrieves a property translator for a specific constructor. |
Public | loadComponent() Deserializes an XML representation of a component into a component instance. |
Internal | _loadComponentEvent() Processes an event registration directive element. |
Public | loadProperty() Deserializes an XML representation of a property into an instance, and assigns it to the specified object. |
Public | loadStyleSheet() Deserializes an XML representation of a style sheet into a StyleSheet instance. |
Public | storeProperty() Serializes a property value into an XML representation. |
className
(String)
- the class nametranslator
(Echo.Serial.PropertyTranslator)
- the property translator singleton (static class)type
(Function)
- the constructortranslator
(Echo.Serial.PropertyTranslator)
- the property translator singleton (static class)className
(String)
- the class nametype
(Function)
- the constructorclient
(Echo.Client)
- the containing clientcElement
(Element)
- the 'c' DOM element to deserializepropertyMap
- (optional) a mapping between property identifiers and property values for referenced properties
(properties which were rendered elsewhere in the document and are potentially referenced by multiple components)styleMap
- (optional) a mapping between style identifiers and style values for referenced styles (styles which were
rendered elsewhere in the document and are potentially referenced by multiple components)client
(Echo.Client)
- the clienteventElement
(Element)
- the event elementthe
(Echo.Component)
- componentclient
(Echo.Client)
- the containing clientpElement
(Element)
- the property element to parseobject
- the object on which the properties should be set (this object
must contain set() and setIndex() methodsstyleData
- (optional) an associative array on which properties can
be directly setpropertyMap
- (optional) a mapping between property identifiers and property values for referenced properties
(properties which were rendered elsewhere in the document and are potentially referenced by multiple components)styleMap
- (optional) a mapping between style identifiers and style values for referenced styles (styles which were
rendered elsewhere in the document and are potentially referenced by multiple components)client
(Echo.Client)
- the client instancessElement
(Element)
- the "ss" element representing the root of the style sheetpropertyMap
- the (optional) property map containing referenced property informationclient
(Echo.Client)
- the client instancepElement
(Element)
- the "p" element representing the propertyvalue
- the value to render to the "p" element