[OBCHW] Added html widget module.
authorGorka Ion Damián <gorkaion.damian@openbravo.com>
Mon, 03 Jan 2011 17:49:04 +0100
changeset 9499 37a293da438e
parent 9498 7fd9eda9afd0
child 9500 14b93cdae72b
[OBCHW] Added html widget module.
modules/org.openbravo.client.htmlwidget/src-db/database/sourcedata/AD_MODULE.xml
modules/org.openbravo.client.htmlwidget/src-db/database/sourcedata/AD_MODULE_DBPREFIX.xml
modules/org.openbravo.client.htmlwidget/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
modules/org.openbravo.client.htmlwidget/src-db/database/sourcedata/AD_PACKAGE.xml
modules/org.openbravo.client.htmlwidget/src-db/database/sourcedata/OBKMO_WIDGET_CLASS.xml
modules/org.openbravo.client.htmlwidget/src-db/database/sourcedata/OBUIAPP_PARAMETER.xml
modules/org.openbravo.client.htmlwidget/src/org/openbravo/client/htmlwidget/HTMLWidgetComponentProvider.java
modules/org.openbravo.client.htmlwidget/src/org/openbravo/client/htmlwidget/HTMLWidgetProvider.java
modules/org.openbravo.client.htmlwidget/web/org.openbravo.client.htmlwidget/js/ob-html-widget.js
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/modules/org.openbravo.client.htmlwidget/src-db/database/sourcedata/AD_MODULE.xml	Mon Jan 03 17:49:04 2011 +0100
@@ -0,0 +1,27 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<data>
+<!--D393BE6F22BB44B7B728259B34FC795A--><AD_MODULE>
+<!--D393BE6F22BB44B7B728259B34FC795A-->  <AD_MODULE_ID><![CDATA[D393BE6F22BB44B7B728259B34FC795A]]></AD_MODULE_ID>
+<!--D393BE6F22BB44B7B728259B34FC795A-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--D393BE6F22BB44B7B728259B34FC795A-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--D393BE6F22BB44B7B728259B34FC795A-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--D393BE6F22BB44B7B728259B34FC795A-->  <NAME><![CDATA[HTML Widget]]></NAME>
+<!--D393BE6F22BB44B7B728259B34FC795A-->  <VERSION><![CDATA[0.0.1]]></VERSION>
+<!--D393BE6F22BB44B7B728259B34FC795A-->  <DESCRIPTION><![CDATA[Provides the HTML Widget superclass that allows to create widget classes that embed the html code.]]></DESCRIPTION>
+<!--D393BE6F22BB44B7B728259B34FC795A-->  <HELP><![CDATA[With this module you can define your own widget classes just setting up your own html code or the html code provided by third parties.]]></HELP>
+<!--D393BE6F22BB44B7B728259B34FC795A-->  <URL><![CDATA[http://forge.openbravo.com/projects/htmlwidget]]></URL>
+<!--D393BE6F22BB44B7B728259B34FC795A-->  <TYPE><![CDATA[M]]></TYPE>
+<!--D393BE6F22BB44B7B728259B34FC795A-->  <LICENSE><![CDATA[Licensed under the Openbravo Public License version 1.1.
+You may obtain a copy of the License at http://www.openbravo.com/legal/license.html or in the legal folder of the Openbravo ERP core distribution. ]]></LICENSE>
+<!--D393BE6F22BB44B7B728259B34FC795A-->  <JAVAPACKAGE><![CDATA[org.openbravo.client.htmlwidget]]></JAVAPACKAGE>
+<!--D393BE6F22BB44B7B728259B34FC795A-->  <LICENSETYPE><![CDATA[OBPL]]></LICENSETYPE>
+<!--D393BE6F22BB44B7B728259B34FC795A-->  <AUTHOR><![CDATA[Openbravo S.L.U.]]></AUTHOR>
+<!--D393BE6F22BB44B7B728259B34FC795A-->  <ISTRANSLATIONREQUIRED><![CDATA[Y]]></ISTRANSLATIONREQUIRED>
+<!--D393BE6F22BB44B7B728259B34FC795A-->  <AD_LANGUAGE><![CDATA[en_US]]></AD_LANGUAGE>
+<!--D393BE6F22BB44B7B728259B34FC795A-->  <HASCHARTOFACCOUNTS><![CDATA[N]]></HASCHARTOFACCOUNTS>
+<!--D393BE6F22BB44B7B728259B34FC795A-->  <ISTRANSLATIONMODULE><![CDATA[N]]></ISTRANSLATIONMODULE>
+<!--D393BE6F22BB44B7B728259B34FC795A-->  <HASREFERENCEDATA><![CDATA[N]]></HASREFERENCEDATA>
+<!--D393BE6F22BB44B7B728259B34FC795A-->  <ISCOMMERCIAL><![CDATA[N]]></ISCOMMERCIAL>
+<!--D393BE6F22BB44B7B728259B34FC795A--></AD_MODULE>
+
+</data>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/modules/org.openbravo.client.htmlwidget/src-db/database/sourcedata/AD_MODULE_DBPREFIX.xml	Mon Jan 03 17:49:04 2011 +0100
@@ -0,0 +1,12 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<data>
+<!--518FCEE244DB436DB442F218A74081AA--><AD_MODULE_DBPREFIX>
+<!--518FCEE244DB436DB442F218A74081AA-->  <AD_MODULE_DBPREFIX_ID><![CDATA[518FCEE244DB436DB442F218A74081AA]]></AD_MODULE_DBPREFIX_ID>
+<!--518FCEE244DB436DB442F218A74081AA-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--518FCEE244DB436DB442F218A74081AA-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--518FCEE244DB436DB442F218A74081AA-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--518FCEE244DB436DB442F218A74081AA-->  <AD_MODULE_ID><![CDATA[D393BE6F22BB44B7B728259B34FC795A]]></AD_MODULE_ID>
+<!--518FCEE244DB436DB442F218A74081AA-->  <NAME><![CDATA[OBCHW]]></NAME>
+<!--518FCEE244DB436DB442F218A74081AA--></AD_MODULE_DBPREFIX>
+
+</data>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/modules/org.openbravo.client.htmlwidget/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml	Mon Jan 03 17:49:04 2011 +0100
@@ -0,0 +1,17 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<data>
+<!--DCE798FBC5B648F7A3C81A6941720A57--><AD_MODULE_DEPENDENCY>
+<!--DCE798FBC5B648F7A3C81A6941720A57-->  <AD_MODULE_DEPENDENCY_ID><![CDATA[DCE798FBC5B648F7A3C81A6941720A57]]></AD_MODULE_DEPENDENCY_ID>
+<!--DCE798FBC5B648F7A3C81A6941720A57-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--DCE798FBC5B648F7A3C81A6941720A57-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--DCE798FBC5B648F7A3C81A6941720A57-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--DCE798FBC5B648F7A3C81A6941720A57-->  <AD_MODULE_ID><![CDATA[D393BE6F22BB44B7B728259B34FC795A]]></AD_MODULE_ID>
+<!--DCE798FBC5B648F7A3C81A6941720A57-->  <AD_DEPENDENT_MODULE_ID><![CDATA[2758CD25B2704AF6BBAD10365FC82C06]]></AD_DEPENDENT_MODULE_ID>
+<!--DCE798FBC5B648F7A3C81A6941720A57-->  <STARTVERSION><![CDATA[2.1.0]]></STARTVERSION>
+<!--DCE798FBC5B648F7A3C81A6941720A57-->  <ISINCLUDED><![CDATA[N]]></ISINCLUDED>
+<!--DCE798FBC5B648F7A3C81A6941720A57-->  <DEPENDANT_MODULE_NAME><![CDATA[My Openbravo Tab]]></DEPENDANT_MODULE_NAME>
+<!--DCE798FBC5B648F7A3C81A6941720A57-->  <DEPENDENCY_ENFORCEMENT><![CDATA[MAJOR]]></DEPENDENCY_ENFORCEMENT>
+<!--DCE798FBC5B648F7A3C81A6941720A57-->  <USER_EDITABLE_ENFORCEMENT><![CDATA[N]]></USER_EDITABLE_ENFORCEMENT>
+<!--DCE798FBC5B648F7A3C81A6941720A57--></AD_MODULE_DEPENDENCY>
+
+</data>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/modules/org.openbravo.client.htmlwidget/src-db/database/sourcedata/AD_PACKAGE.xml	Mon Jan 03 17:49:04 2011 +0100
@@ -0,0 +1,13 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<data>
+<!--9A516C4924394997A433B119BD8AA0C1--><AD_PACKAGE>
+<!--9A516C4924394997A433B119BD8AA0C1-->  <AD_PACKAGE_ID><![CDATA[9A516C4924394997A433B119BD8AA0C1]]></AD_PACKAGE_ID>
+<!--9A516C4924394997A433B119BD8AA0C1-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--9A516C4924394997A433B119BD8AA0C1-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--9A516C4924394997A433B119BD8AA0C1-->  <NAME><![CDATA[org.openbravo.client.htmlwidget]]></NAME>
+<!--9A516C4924394997A433B119BD8AA0C1-->  <JAVAPACKAGE><![CDATA[org.openbravo.client.htmlwidget]]></JAVAPACKAGE>
+<!--9A516C4924394997A433B119BD8AA0C1-->  <AD_MODULE_ID><![CDATA[D393BE6F22BB44B7B728259B34FC795A]]></AD_MODULE_ID>
+<!--9A516C4924394997A433B119BD8AA0C1-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--9A516C4924394997A433B119BD8AA0C1--></AD_PACKAGE>
+
+</data>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/modules/org.openbravo.client.htmlwidget/src-db/database/sourcedata/OBKMO_WIDGET_CLASS.xml	Mon Jan 03 17:49:04 2011 +0100
@@ -0,0 +1,31 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<data>
+<!--10DE6579FF7A4864AEB31FE957849461--><OBKMO_WIDGET_CLASS>
+<!--10DE6579FF7A4864AEB31FE957849461-->  <OBKMO_WIDGET_CLASS_ID><![CDATA[10DE6579FF7A4864AEB31FE957849461]]></OBKMO_WIDGET_CLASS_ID>
+<!--10DE6579FF7A4864AEB31FE957849461-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--10DE6579FF7A4864AEB31FE957849461-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--10DE6579FF7A4864AEB31FE957849461-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--10DE6579FF7A4864AEB31FE957849461-->  <AD_MODULE_ID><![CDATA[D393BE6F22BB44B7B728259B34FC795A]]></AD_MODULE_ID>
+<!--10DE6579FF7A4864AEB31FE957849461-->  <TITLE><![CDATA[HTML Widget]]></TITLE>
+<!--10DE6579FF7A4864AEB31FE957849461-->  <JAVACLASS><![CDATA[org.openbravo.client.htmlwidget.HTMLWidgetProvider]]></JAVACLASS>
+<!--10DE6579FF7A4864AEB31FE957849461-->  <HEIGHT><![CDATA[300]]></HEIGHT>
+<!--10DE6579FF7A4864AEB31FE957849461-->  <ALLOW_ANONYMOUS_ACCESS><![CDATA[N]]></ALLOW_ANONYMOUS_ACCESS>
+<!--10DE6579FF7A4864AEB31FE957849461-->  <ISSUPERCLASS><![CDATA[Y]]></ISSUPERCLASS>
+<!--10DE6579FF7A4864AEB31FE957849461-->  <CAN_MAXIMIZE><![CDATA[N]]></CAN_MAXIMIZE>
+<!--10DE6579FF7A4864AEB31FE957849461--></OBKMO_WIDGET_CLASS>
+
+<!--E4C82D04605C4256A74258B770AA8867--><OBKMO_WIDGET_CLASS>
+<!--E4C82D04605C4256A74258B770AA8867-->  <OBKMO_WIDGET_CLASS_ID><![CDATA[E4C82D04605C4256A74258B770AA8867]]></OBKMO_WIDGET_CLASS_ID>
+<!--E4C82D04605C4256A74258B770AA8867-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--E4C82D04605C4256A74258B770AA8867-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--E4C82D04605C4256A74258B770AA8867-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--E4C82D04605C4256A74258B770AA8867-->  <AD_MODULE_ID><![CDATA[D393BE6F22BB44B7B728259B34FC795A]]></AD_MODULE_ID>
+<!--E4C82D04605C4256A74258B770AA8867-->  <TITLE><![CDATA[User defined HTML Widget]]></TITLE>
+<!--E4C82D04605C4256A74258B770AA8867-->  <HEIGHT><![CDATA[300]]></HEIGHT>
+<!--E4C82D04605C4256A74258B770AA8867-->  <ALLOW_ANONYMOUS_ACCESS><![CDATA[Y]]></ALLOW_ANONYMOUS_ACCESS>
+<!--E4C82D04605C4256A74258B770AA8867-->  <ISSUPERCLASS><![CDATA[N]]></ISSUPERCLASS>
+<!--E4C82D04605C4256A74258B770AA8867-->  <WIDGET_SUPERCLASS_ID><![CDATA[10DE6579FF7A4864AEB31FE957849461]]></WIDGET_SUPERCLASS_ID>
+<!--E4C82D04605C4256A74258B770AA8867-->  <CAN_MAXIMIZE><![CDATA[N]]></CAN_MAXIMIZE>
+<!--E4C82D04605C4256A74258B770AA8867--></OBKMO_WIDGET_CLASS>
+
+</data>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/modules/org.openbravo.client.htmlwidget/src-db/database/sourcedata/OBUIAPP_PARAMETER.xml	Mon Jan 03 17:49:04 2011 +0100
@@ -0,0 +1,114 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<data>
+<!--04A58154C5824860BF661F20E1133B35--><OBUIAPP_PARAMETER>
+<!--04A58154C5824860BF661F20E1133B35-->  <OBUIAPP_PARAMETER_ID><![CDATA[04A58154C5824860BF661F20E1133B35]]></OBUIAPP_PARAMETER_ID>
+<!--04A58154C5824860BF661F20E1133B35-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--04A58154C5824860BF661F20E1133B35-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--04A58154C5824860BF661F20E1133B35-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--04A58154C5824860BF661F20E1133B35-->  <AD_MODULE_ID><![CDATA[D393BE6F22BB44B7B728259B34FC795A]]></AD_MODULE_ID>
+<!--04A58154C5824860BF661F20E1133B35-->  <NAME><![CDATA[Height]]></NAME>
+<!--04A58154C5824860BF661F20E1133B35-->  <SEQNO><![CDATA[10]]></SEQNO>
+<!--04A58154C5824860BF661F20E1133B35-->  <AD_REFERENCE_ID><![CDATA[11]]></AD_REFERENCE_ID>
+<!--04A58154C5824860BF661F20E1133B35-->  <COLUMNNAME><![CDATA[widgetHeight]]></COLUMNNAME>
+<!--04A58154C5824860BF661F20E1133B35-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--04A58154C5824860BF661F20E1133B35-->  <FIELDLENGTH><![CDATA[3]]></FIELDLENGTH>
+<!--04A58154C5824860BF661F20E1133B35-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--04A58154C5824860BF661F20E1133B35-->  <ISFIXED><![CDATA[Y]]></ISFIXED>
+<!--04A58154C5824860BF661F20E1133B35-->  <FIXEDVALUE><![CDATA[300]]></FIXEDVALUE>
+<!--04A58154C5824860BF661F20E1133B35-->  <EVALUATEFIXEDVALUE><![CDATA[N]]></EVALUATEFIXEDVALUE>
+<!--04A58154C5824860BF661F20E1133B35-->  <EM_OBKMO_WIDGET_CLASS_ID><![CDATA[10DE6579FF7A4864AEB31FE957849461]]></EM_OBKMO_WIDGET_CLASS_ID>
+<!--04A58154C5824860BF661F20E1133B35--></OBUIAPP_PARAMETER>
+
+<!--6F083818BA9242D5A6FDF7BE49DB8340--><OBUIAPP_PARAMETER>
+<!--6F083818BA9242D5A6FDF7BE49DB8340-->  <OBUIAPP_PARAMETER_ID><![CDATA[6F083818BA9242D5A6FDF7BE49DB8340]]></OBUIAPP_PARAMETER_ID>
+<!--6F083818BA9242D5A6FDF7BE49DB8340-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--6F083818BA9242D5A6FDF7BE49DB8340-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--6F083818BA9242D5A6FDF7BE49DB8340-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--6F083818BA9242D5A6FDF7BE49DB8340-->  <AD_MODULE_ID><![CDATA[D393BE6F22BB44B7B728259B34FC795A]]></AD_MODULE_ID>
+<!--6F083818BA9242D5A6FDF7BE49DB8340-->  <NAME><![CDATA[Widget Title]]></NAME>
+<!--6F083818BA9242D5A6FDF7BE49DB8340-->  <SEQNO><![CDATA[0]]></SEQNO>
+<!--6F083818BA9242D5A6FDF7BE49DB8340-->  <AD_REFERENCE_ID><![CDATA[10]]></AD_REFERENCE_ID>
+<!--6F083818BA9242D5A6FDF7BE49DB8340-->  <COLUMNNAME><![CDATA[widgetTitle]]></COLUMNNAME>
+<!--6F083818BA9242D5A6FDF7BE49DB8340-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--6F083818BA9242D5A6FDF7BE49DB8340-->  <FIELDLENGTH><![CDATA[60]]></FIELDLENGTH>
+<!--6F083818BA9242D5A6FDF7BE49DB8340-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--6F083818BA9242D5A6FDF7BE49DB8340-->  <ISFIXED><![CDATA[N]]></ISFIXED>
+<!--6F083818BA9242D5A6FDF7BE49DB8340-->  <EVALUATEFIXEDVALUE><![CDATA[N]]></EVALUATEFIXEDVALUE>
+<!--6F083818BA9242D5A6FDF7BE49DB8340-->  <EM_OBKMO_WIDGET_CLASS_ID><![CDATA[E4C82D04605C4256A74258B770AA8867]]></EM_OBKMO_WIDGET_CLASS_ID>
+<!--6F083818BA9242D5A6FDF7BE49DB8340--></OBUIAPP_PARAMETER>
+
+<!--98F17ED69EDDE56FE040007F01002FE9--><OBUIAPP_PARAMETER>
+<!--98F17ED69EDDE56FE040007F01002FE9-->  <OBUIAPP_PARAMETER_ID><![CDATA[98F17ED69EDDE56FE040007F01002FE9]]></OBUIAPP_PARAMETER_ID>
+<!--98F17ED69EDDE56FE040007F01002FE9-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--98F17ED69EDDE56FE040007F01002FE9-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--98F17ED69EDDE56FE040007F01002FE9-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--98F17ED69EDDE56FE040007F01002FE9-->  <AD_MODULE_ID><![CDATA[D393BE6F22BB44B7B728259B34FC795A]]></AD_MODULE_ID>
+<!--98F17ED69EDDE56FE040007F01002FE9-->  <NAME><![CDATA[Height]]></NAME>
+<!--98F17ED69EDDE56FE040007F01002FE9-->  <SEQNO><![CDATA[10]]></SEQNO>
+<!--98F17ED69EDDE56FE040007F01002FE9-->  <AD_REFERENCE_ID><![CDATA[11]]></AD_REFERENCE_ID>
+<!--98F17ED69EDDE56FE040007F01002FE9-->  <COLUMNNAME><![CDATA[widgetHeight]]></COLUMNNAME>
+<!--98F17ED69EDDE56FE040007F01002FE9-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--98F17ED69EDDE56FE040007F01002FE9-->  <FIELDLENGTH><![CDATA[10]]></FIELDLENGTH>
+<!--98F17ED69EDDE56FE040007F01002FE9-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--98F17ED69EDDE56FE040007F01002FE9-->  <DEFAULTVALUE><![CDATA[300]]></DEFAULTVALUE>
+<!--98F17ED69EDDE56FE040007F01002FE9-->  <ISFIXED><![CDATA[N]]></ISFIXED>
+<!--98F17ED69EDDE56FE040007F01002FE9-->  <FIXEDVALUE><![CDATA[300]]></FIXEDVALUE>
+<!--98F17ED69EDDE56FE040007F01002FE9-->  <EVALUATEFIXEDVALUE><![CDATA[N]]></EVALUATEFIXEDVALUE>
+<!--98F17ED69EDDE56FE040007F01002FE9-->  <EM_OBKMO_WIDGET_CLASS_ID><![CDATA[E4C82D04605C4256A74258B770AA8867]]></EM_OBKMO_WIDGET_CLASS_ID>
+<!--98F17ED69EDDE56FE040007F01002FE9--></OBUIAPP_PARAMETER>
+
+<!--98F17ED69EDFE56FE040007F01002FE9--><OBUIAPP_PARAMETER>
+<!--98F17ED69EDFE56FE040007F01002FE9-->  <OBUIAPP_PARAMETER_ID><![CDATA[98F17ED69EDFE56FE040007F01002FE9]]></OBUIAPP_PARAMETER_ID>
+<!--98F17ED69EDFE56FE040007F01002FE9-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--98F17ED69EDFE56FE040007F01002FE9-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--98F17ED69EDFE56FE040007F01002FE9-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--98F17ED69EDFE56FE040007F01002FE9-->  <AD_MODULE_ID><![CDATA[D393BE6F22BB44B7B728259B34FC795A]]></AD_MODULE_ID>
+<!--98F17ED69EDFE56FE040007F01002FE9-->  <NAME><![CDATA[HTML Code]]></NAME>
+<!--98F17ED69EDFE56FE040007F01002FE9-->  <SEQNO><![CDATA[20]]></SEQNO>
+<!--98F17ED69EDFE56FE040007F01002FE9-->  <AD_REFERENCE_ID><![CDATA[14]]></AD_REFERENCE_ID>
+<!--98F17ED69EDFE56FE040007F01002FE9-->  <COLUMNNAME><![CDATA[htmlcode]]></COLUMNNAME>
+<!--98F17ED69EDFE56FE040007F01002FE9-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--98F17ED69EDFE56FE040007F01002FE9-->  <FIELDLENGTH><![CDATA[2000]]></FIELDLENGTH>
+<!--98F17ED69EDFE56FE040007F01002FE9-->  <ISMANDATORY><![CDATA[Y]]></ISMANDATORY>
+<!--98F17ED69EDFE56FE040007F01002FE9-->  <ISFIXED><![CDATA[N]]></ISFIXED>
+<!--98F17ED69EDFE56FE040007F01002FE9-->  <EVALUATEFIXEDVALUE><![CDATA[N]]></EVALUATEFIXEDVALUE>
+<!--98F17ED69EDFE56FE040007F01002FE9-->  <EM_OBKMO_WIDGET_CLASS_ID><![CDATA[E4C82D04605C4256A74258B770AA8867]]></EM_OBKMO_WIDGET_CLASS_ID>
+<!--98F17ED69EDFE56FE040007F01002FE9--></OBUIAPP_PARAMETER>
+
+<!--C536ED2B36AF452AB6F222EED1BB154C--><OBUIAPP_PARAMETER>
+<!--C536ED2B36AF452AB6F222EED1BB154C-->  <OBUIAPP_PARAMETER_ID><![CDATA[C536ED2B36AF452AB6F222EED1BB154C]]></OBUIAPP_PARAMETER_ID>
+<!--C536ED2B36AF452AB6F222EED1BB154C-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--C536ED2B36AF452AB6F222EED1BB154C-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--C536ED2B36AF452AB6F222EED1BB154C-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--C536ED2B36AF452AB6F222EED1BB154C-->  <AD_MODULE_ID><![CDATA[D393BE6F22BB44B7B728259B34FC795A]]></AD_MODULE_ID>
+<!--C536ED2B36AF452AB6F222EED1BB154C-->  <NAME><![CDATA[Widget title]]></NAME>
+<!--C536ED2B36AF452AB6F222EED1BB154C-->  <SEQNO><![CDATA[0]]></SEQNO>
+<!--C536ED2B36AF452AB6F222EED1BB154C-->  <AD_REFERENCE_ID><![CDATA[10]]></AD_REFERENCE_ID>
+<!--C536ED2B36AF452AB6F222EED1BB154C-->  <COLUMNNAME><![CDATA[widgetTitle]]></COLUMNNAME>
+<!--C536ED2B36AF452AB6F222EED1BB154C-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--C536ED2B36AF452AB6F222EED1BB154C-->  <FIELDLENGTH><![CDATA[60]]></FIELDLENGTH>
+<!--C536ED2B36AF452AB6F222EED1BB154C-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--C536ED2B36AF452AB6F222EED1BB154C-->  <ISFIXED><![CDATA[Y]]></ISFIXED>
+<!--C536ED2B36AF452AB6F222EED1BB154C-->  <EVALUATEFIXEDVALUE><![CDATA[N]]></EVALUATEFIXEDVALUE>
+<!--C536ED2B36AF452AB6F222EED1BB154C-->  <EM_OBKMO_WIDGET_CLASS_ID><![CDATA[10DE6579FF7A4864AEB31FE957849461]]></EM_OBKMO_WIDGET_CLASS_ID>
+<!--C536ED2B36AF452AB6F222EED1BB154C--></OBUIAPP_PARAMETER>
+
+<!--EBBE09DD0FB74309B16B50584570CF62--><OBUIAPP_PARAMETER>
+<!--EBBE09DD0FB74309B16B50584570CF62-->  <OBUIAPP_PARAMETER_ID><![CDATA[EBBE09DD0FB74309B16B50584570CF62]]></OBUIAPP_PARAMETER_ID>
+<!--EBBE09DD0FB74309B16B50584570CF62-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--EBBE09DD0FB74309B16B50584570CF62-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--EBBE09DD0FB74309B16B50584570CF62-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--EBBE09DD0FB74309B16B50584570CF62-->  <AD_MODULE_ID><![CDATA[D393BE6F22BB44B7B728259B34FC795A]]></AD_MODULE_ID>
+<!--EBBE09DD0FB74309B16B50584570CF62-->  <NAME><![CDATA[HTML Code]]></NAME>
+<!--EBBE09DD0FB74309B16B50584570CF62-->  <SEQNO><![CDATA[20]]></SEQNO>
+<!--EBBE09DD0FB74309B16B50584570CF62-->  <AD_REFERENCE_ID><![CDATA[14]]></AD_REFERENCE_ID>
+<!--EBBE09DD0FB74309B16B50584570CF62-->  <COLUMNNAME><![CDATA[htmlcode]]></COLUMNNAME>
+<!--EBBE09DD0FB74309B16B50584570CF62-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--EBBE09DD0FB74309B16B50584570CF62-->  <FIELDLENGTH><![CDATA[2000]]></FIELDLENGTH>
+<!--EBBE09DD0FB74309B16B50584570CF62-->  <ISMANDATORY><![CDATA[Y]]></ISMANDATORY>
+<!--EBBE09DD0FB74309B16B50584570CF62-->  <ISFIXED><![CDATA[Y]]></ISFIXED>
+<!--EBBE09DD0FB74309B16B50584570CF62-->  <EVALUATEFIXEDVALUE><![CDATA[N]]></EVALUATEFIXEDVALUE>
+<!--EBBE09DD0FB74309B16B50584570CF62-->  <EM_OBKMO_WIDGET_CLASS_ID><![CDATA[10DE6579FF7A4864AEB31FE957849461]]></EM_OBKMO_WIDGET_CLASS_ID>
+<!--EBBE09DD0FB74309B16B50584570CF62--></OBUIAPP_PARAMETER>
+
+</data>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/modules/org.openbravo.client.htmlwidget/src/org/openbravo/client/htmlwidget/HTMLWidgetComponentProvider.java	Mon Jan 03 17:49:04 2011 +0100
@@ -0,0 +1,58 @@
+/*
+ *************************************************************************
+ * The contents of this file are subject to the Openbravo  Public  License
+ * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
+ * Version 1.1  with a permitted attribution clause; you may not  use this
+ * file except in compliance with the License. You  may  obtain  a copy of
+ * the License at http://www.openbravo.com/legal/license.html
+ * Software distributed under the License  is  distributed  on  an "AS IS"
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
+ * License for the specific  language  governing  rights  and  limitations
+ * under the License.
+ * The Original Code is Openbravo ERP.
+ * The Initial Developer of the Original Code is Openbravo SLU
+ * All portions are Copyright (C) 2011 Openbravo SLU
+ * All Rights Reserved.
+ * Contributor(s):  ______________________________________.
+ ************************************************************************
+ */
+package org.openbravo.client.htmlwidget;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+
+import javax.enterprise.context.ApplicationScoped;
+
+import org.openbravo.client.kernel.BaseComponentProvider;
+import org.openbravo.client.kernel.Component;
+import org.openbravo.client.kernel.ComponentProvider;
+
+/**
+ * 
+ * @author gorkaion
+ */
+@ApplicationScoped
+@ComponentProvider.Qualifier(HTMLWidgetComponentProvider.COMPONENT_TYPE)
+public class HTMLWidgetComponentProvider extends BaseComponentProvider {
+  public static final String COMPONENT_TYPE = "OBCHW_HTML";
+
+  @Override
+  public Component getComponent(String componentId, Map<String, Object> parameters) {
+    throw new IllegalArgumentException("Component id " + componentId + " not supported.");
+  }
+
+  @Override
+  public List<ComponentResource> getGlobalComponentResources() {
+    final List<ComponentResource> globalResources = new ArrayList<ComponentResource>();
+    globalResources.add(createStaticResource(
+        "web/org.openbravo.client.htmlwidget/js/ob-html-widget.js", false));
+    return globalResources;
+  }
+
+  @Override
+  public List<String> getTestResources() {
+    final List<String> testResources = new ArrayList<String>();
+    return testResources;
+  }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/modules/org.openbravo.client.htmlwidget/src/org/openbravo/client/htmlwidget/HTMLWidgetProvider.java	Mon Jan 03 17:49:04 2011 +0100
@@ -0,0 +1,41 @@
+/*
+ *************************************************************************
+ * The contents of this file are subject to the Openbravo  Public  License
+ * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
+ * Version 1.1  with a permitted attribution clause; you may not  use this
+ * file except in compliance with the License. You  may  obtain  a copy of
+ * the License at http://www.openbravo.com/legal/license.html
+ * Software distributed under the License  is  distributed  on  an "AS IS"
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
+ * License for the specific  language  governing  rights  and  limitations
+ * under the License.
+ * The Original Code is Openbravo ERP.
+ * The Initial Developer of the Original Code is Openbravo SLU
+ * All portions are Copyright (C) 2011 Openbravo SLU
+ * All Rights Reserved.
+ * Contributor(s):  ______________________________________.
+ ************************************************************************
+ */
+package org.openbravo.client.htmlwidget;
+
+import org.openbravo.client.myob.WidgetProvider;
+
+/**
+ * Responsible for creating the Query/List Widgets.
+ * 
+ * @author gorkaion
+ */
+public class HTMLWidgetProvider extends WidgetProvider {
+  private static final String HTMLWIDGETCLASSNAME = "OBHTMLWidget";
+
+  @Override
+  public String generate() {
+    throw new UnsupportedOperationException(
+        "HTMLWidget definition should be pre-loaded on the client");
+  }
+
+  @Override
+  public String getClientSideWidgetClassName() {
+    return HTMLWIDGETCLASSNAME;
+  }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/modules/org.openbravo.client.htmlwidget/web/org.openbravo.client.htmlwidget/js/ob-html-widget.js	Mon Jan 03 17:49:04 2011 +0100
@@ -0,0 +1,71 @@
+/*
+ *************************************************************************
+ * The contents of this file are subject to the Openbravo  Public  License
+ * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
+ * Version 1.1  with a permitted attribution clause; you may not  use this
+ * file except in compliance with the License. You  may  obtain  a copy of
+ * the License at http://www.openbravo.com/legal/license.html
+ * Software distributed under the License  is  distributed  on  an "AS IS"
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
+ * License for the specific  language  governing  rights  and  limitations
+ * under the License.
+ * The Original Code is Openbravo ERP.
+ * The Initial Developer of the Original Code is Openbravo SLU
+ * All portions are Copyright (C) 2011 Openbravo SLU
+ * All Rights Reserved.
+ * Contributor(s):  ______________________________________.
+ ************************************************************************
+ */
+// = OBHTMLWidget =
+//
+// Implements the HTML widget superclass.
+//
+isc.defineClass('OBHTMLWidget', isc.OBWidget).addProperties({
+  contentSource: null,
+
+  initWidget: function(){
+    this.Super('initWidget', arguments);
+    this.setWidgetHeight();
+  },
+
+  createWindowContents: function(){
+    if (!this.contentSource && this.parameters.htmlcode) {
+      this.contentSource = this.evaluateContents(this.parameters.htmlcode);
+    }
+    if (this.parameters.widgetTitle) {
+      this.setTitle(this.parameters.widgetTitle);
+    }
+    return isc.HTMLFlow.create({
+      contents: this.contentSource,
+      height: '100%',
+      width: '100%'
+    });
+  },
+
+  refresh: function(){
+    this.setWidgetHeight();
+    if (this.parameters.widgetTitle) {
+      this.setTitle(this.parameters.widgetTitle);
+    }
+    if (!this.contentSource && this.parameters.htmlcode) {
+      this.contentSource = this.evaluateContents(this.parameters.htmlcode);
+    }
+    this.windowContents.contents = this.contentSource;
+  },
+
+  setWidgetHeight: function (){
+    if (!isc.isA.Number(this.parameters.widgetHeight)) {
+      return;
+    }
+    var currentHeight = this.getHeight(),
+        contentHeight = this.parameters.widgetHeight,
+        headerHeight = this.headerDefaults.height,
+        newHeight = contentHeight + headerHeight + 13;
+    this.setHeight(newHeight);
+    if (this.parentElement) {
+      var heightDiff = newHeight - currentHeight,
+          parentHeight = this.parentElement.getHeight();
+      this.parentElement.setHeight(parentHeight + heightDiff);
+    }
+  }
+});
\ No newline at end of file