Commit 57e0f9f2 authored by Vivek's avatar Vivek

renderjs_interfaces: demo application to verify the interface implementation.

parent e7e4f662
erp5_web_renderjs_ui
\ No newline at end of file
Basic application for renderjs interface demo
\ No newline at end of file
web_page_module/interface_demo*
web_page_module/interface_gadget*
web_page_module/gadget_interfacedemo*
web_page_module/interface_test_correct*
web_site_module/interface_demo
web_site_module/interface_demo/**
\ No newline at end of file
web_page_module/interface_demo*
web_page_module/interface_gadget*
web_page_module/gadget_interfacedemo*
web_page_module/interface_test_correct*
web_site_module/interface_demo
web_site_module/interface_demo/**
\ No newline at end of file
web_page_module/gadget_interfacedemo*
web_page_module/interface_demo*
web_page_module/interface_gadget*
web_page_module/interface_test_correct*
web_site_module/interface_demo
web_site_module/interface_demo/**
\ No newline at end of file
erp5_web_interface_demo
\ No newline at end of file
001
\ No newline at end of file
......@@ -1060,6 +1060,7 @@ function loopEventListener(target, type, useCapture, callback) {\n
RenderJSGadget.prototype.__html = "";\n
RenderJSGadget.prototype.__required_css_list = [];\n
RenderJSGadget.prototype.__required_js_list = [];\n
RenderJSGadget.prototype.__declared_method_list = [];\n
\n
function createMonitor(g) {\n
if (g.__monitor !== undefined) {\n
......@@ -1136,6 +1137,10 @@ function loopEventListener(target, type, useCapture, callback) {\n
// RenderJSGadget.declareMethod\n
/////////////////////////////////////////////////////////////////\n
RenderJSGadget.declareMethod = function (name, callback) {\n
this.prototype.__declared_method_list.push({\n
name: arguments[0],\n
arg_len: arguments[1].length \n
});\n
this.prototype[name] = function () {\n
var context = this,\n
argument_list = arguments;\n
......@@ -1162,6 +1167,10 @@ function loopEventListener(target, type, useCapture, callback) {\n
// Returns a list of JS required by the gadget\n
return this.__required_js_list;\n
})\n
.declareMethod(\'getDeclaredMethodList\', function () {\n
// Returns a list of JS required by the gadget\n
return this.__declared_method_list;\n
})\n
.declareMethod(\'getPath\', function () {\n
// Returns the path of the code of a gadget\n
return this.__path;\n
......@@ -2021,6 +2030,7 @@ function loopEventListener(target, type, useCapture, callback) {\n
notifyDeclareMethod("getRequiredJSList");\n
notifyDeclareMethod("getPath");\n
notifyDeclareMethod("getTitle");\n
notifyDeclareMethod("getDeclaredMethodList");\n
\n
// Surcharge declareMethod to inform parent window\n
tmp_constructor.declareMethod = function (name, callback) {\n
......@@ -2390,7 +2400,7 @@ function loopEventListener(target, type, useCapture, callback) {\n
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>super_sven</string> </value>
<value> <string>zope</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
......@@ -2404,7 +2414,7 @@ function loopEventListener(target, type, useCapture, callback) {\n
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>939.51246.32089.52411</string> </value>
<value> <string>944.37512.8073.2781</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -2422,7 +2432,7 @@ function loopEventListener(target, type, useCapture, callback) {\n
</tuple>
<state>
<tuple>
<float>1419342867.69</float>
<float>1437746747.06</float>
<string>GMT</string>
</tuple>
</state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment