Implements _can maximize_ option in widget classes
authorIván Perdomo <ivan.perdomo@openbravo.com>
Tue, 14 Dec 2010 10:35:53 +0100
changeset 9115 e6d5130ae738
parent 9114 49e9e8c16002
child 9116 79d70b18309e
Implements _can maximize_ option in widget classes
modules/org.openbravo.client.myob/src-db/database/model/tables/OBKMO_WIDGET_CLASS.xml
modules/org.openbravo.client.myob/src-db/database/sourcedata/AD_COLUMN.xml
modules/org.openbravo.client.myob/src-db/database/sourcedata/AD_ELEMENT.xml
modules/org.openbravo.client.myob/src-db/database/sourcedata/AD_FIELD.xml
modules/org.openbravo.client.myob/src-db/database/sourcedata/OBKMO_WIDGET_CLASS.xml
modules/org.openbravo.client.myob/src/org/openbravo/client/myob/MyOpenbravoComponent.java
modules/org.openbravo.client.myob/src/org/openbravo/client/myob/WidgetProvider.java
modules/org.openbravo.client.myob/web/org.openbravo.client.myob/js/ob-myopenbravo.js
modules/org.openbravo.client.myob/web/org.openbravo.client.myob/js/ob-widget.js
modules/org.openbravo.client.querylist/src-db/database/sourcedata/OBKMO_WIDGET_CLASS.xml
--- a/modules/org.openbravo.client.myob/src-db/database/model/tables/OBKMO_WIDGET_CLASS.xml	Tue Dec 14 09:49:50 2010 +0100
+++ b/modules/org.openbravo.client.myob/src-db/database/model/tables/OBKMO_WIDGET_CLASS.xml	Tue Dec 14 10:35:53 2010 +0100
@@ -65,6 +65,10 @@
         <default/>
         <onCreateDefault/>
       </column>
+      <column name="CAN_MAXIMIZE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
+        <default><![CDATA[N]]></default>
+        <onCreateDefault><![CDATA['N']]></onCreateDefault>
+      </column>
       <foreign-key foreignTable="AD_CLIENT" name="OBKMO_WIDGET_CLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
--- a/modules/org.openbravo.client.myob/src-db/database/sourcedata/AD_COLUMN.xml	Tue Dec 14 09:49:50 2010 +0100
+++ b/modules/org.openbravo.client.myob/src-db/database/sourcedata/AD_COLUMN.xml	Tue Dec 14 10:35:53 2010 +0100
@@ -1,5 +1,39 @@
 <?xml version='1.0' encoding='UTF-8'?>
 <data>
+<!--05AD6D94F1E3475A9DF6315DE259FB22--><AD_COLUMN>
+<!--05AD6D94F1E3475A9DF6315DE259FB22-->  <AD_COLUMN_ID><![CDATA[05AD6D94F1E3475A9DF6315DE259FB22]]></AD_COLUMN_ID>
+<!--05AD6D94F1E3475A9DF6315DE259FB22-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--05AD6D94F1E3475A9DF6315DE259FB22-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--05AD6D94F1E3475A9DF6315DE259FB22-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--05AD6D94F1E3475A9DF6315DE259FB22-->  <NAME><![CDATA[Can Maximize]]></NAME>
+<!--05AD6D94F1E3475A9DF6315DE259FB22-->  <DESCRIPTION><![CDATA[If the widget has the hability to maximize]]></DESCRIPTION>
+<!--05AD6D94F1E3475A9DF6315DE259FB22-->  <HELP><![CDATA[When is true, the maximize button appears in the widget's header toolbar, next to the menu options]]></HELP>
+<!--05AD6D94F1E3475A9DF6315DE259FB22-->  <COLUMNNAME><![CDATA[CAN_Maximize]]></COLUMNNAME>
+<!--05AD6D94F1E3475A9DF6315DE259FB22-->  <AD_TABLE_ID><![CDATA[5F20F3D554CA408891C1BA6545114D4D]]></AD_TABLE_ID>
+<!--05AD6D94F1E3475A9DF6315DE259FB22-->  <AD_REFERENCE_ID><![CDATA[20]]></AD_REFERENCE_ID>
+<!--05AD6D94F1E3475A9DF6315DE259FB22-->  <FIELDLENGTH><![CDATA[1]]></FIELDLENGTH>
+<!--05AD6D94F1E3475A9DF6315DE259FB22-->  <DEFAULTVALUE><![CDATA[N]]></DEFAULTVALUE>
+<!--05AD6D94F1E3475A9DF6315DE259FB22-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--05AD6D94F1E3475A9DF6315DE259FB22-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--05AD6D94F1E3475A9DF6315DE259FB22-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--05AD6D94F1E3475A9DF6315DE259FB22-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--05AD6D94F1E3475A9DF6315DE259FB22-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--05AD6D94F1E3475A9DF6315DE259FB22-->  <SEQNO><![CDATA[170]]></SEQNO>
+<!--05AD6D94F1E3475A9DF6315DE259FB22-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--05AD6D94F1E3475A9DF6315DE259FB22-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--05AD6D94F1E3475A9DF6315DE259FB22-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--05AD6D94F1E3475A9DF6315DE259FB22-->  <AD_ELEMENT_ID><![CDATA[3153A04AAFDD4E4D92ED3F2A84E82EDC]]></AD_ELEMENT_ID>
+<!--05AD6D94F1E3475A9DF6315DE259FB22-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--05AD6D94F1E3475A9DF6315DE259FB22-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--05AD6D94F1E3475A9DF6315DE259FB22-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--05AD6D94F1E3475A9DF6315DE259FB22-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--05AD6D94F1E3475A9DF6315DE259FB22-->  <AD_MODULE_ID><![CDATA[2758CD25B2704AF6BBAD10365FC82C06]]></AD_MODULE_ID>
+<!--05AD6D94F1E3475A9DF6315DE259FB22-->  <POSITION><![CDATA[17]]></POSITION>
+<!--05AD6D94F1E3475A9DF6315DE259FB22-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--05AD6D94F1E3475A9DF6315DE259FB22-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--05AD6D94F1E3475A9DF6315DE259FB22-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--05AD6D94F1E3475A9DF6315DE259FB22--></AD_COLUMN>
+
 <!--927D0D118B82EF36E040A8C0CF071CF5--><AD_COLUMN>
 <!--927D0D118B82EF36E040A8C0CF071CF5-->  <AD_COLUMN_ID><![CDATA[927D0D118B82EF36E040A8C0CF071CF5]]></AD_COLUMN_ID>
 <!--927D0D118B82EF36E040A8C0CF071CF5-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/modules/org.openbravo.client.myob/src-db/database/sourcedata/AD_ELEMENT.xml	Tue Dec 14 09:49:50 2010 +0100
+++ b/modules/org.openbravo.client.myob/src-db/database/sourcedata/AD_ELEMENT.xml	Tue Dec 14 10:35:53 2010 +0100
@@ -1,5 +1,18 @@
 <?xml version='1.0' encoding='UTF-8'?>
 <data>
+<!--3153A04AAFDD4E4D92ED3F2A84E82EDC--><AD_ELEMENT>
+<!--3153A04AAFDD4E4D92ED3F2A84E82EDC-->  <AD_ELEMENT_ID><![CDATA[3153A04AAFDD4E4D92ED3F2A84E82EDC]]></AD_ELEMENT_ID>
+<!--3153A04AAFDD4E4D92ED3F2A84E82EDC-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--3153A04AAFDD4E4D92ED3F2A84E82EDC-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--3153A04AAFDD4E4D92ED3F2A84E82EDC-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--3153A04AAFDD4E4D92ED3F2A84E82EDC-->  <COLUMNNAME><![CDATA[CAN_Maximize]]></COLUMNNAME>
+<!--3153A04AAFDD4E4D92ED3F2A84E82EDC-->  <NAME><![CDATA[Can Maximize]]></NAME>
+<!--3153A04AAFDD4E4D92ED3F2A84E82EDC-->  <PRINTNAME><![CDATA[Can Maximize]]></PRINTNAME>
+<!--3153A04AAFDD4E4D92ED3F2A84E82EDC-->  <DESCRIPTION><![CDATA[If the widget has the hability to maximize]]></DESCRIPTION>
+<!--3153A04AAFDD4E4D92ED3F2A84E82EDC-->  <HELP><![CDATA[When is true, the maximize button appears in the widget's header toolbar, next to the menu options]]></HELP>
+<!--3153A04AAFDD4E4D92ED3F2A84E82EDC-->  <AD_MODULE_ID><![CDATA[2758CD25B2704AF6BBAD10365FC82C06]]></AD_MODULE_ID>
+<!--3153A04AAFDD4E4D92ED3F2A84E82EDC--></AD_ELEMENT>
+
 <!--3D9BA8FD0DEC4BC8BDE7862EFD0AECC5--><AD_ELEMENT>
 <!--3D9BA8FD0DEC4BC8BDE7862EFD0AECC5-->  <AD_ELEMENT_ID><![CDATA[3D9BA8FD0DEC4BC8BDE7862EFD0AECC5]]></AD_ELEMENT_ID>
 <!--3D9BA8FD0DEC4BC8BDE7862EFD0AECC5-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/modules/org.openbravo.client.myob/src-db/database/sourcedata/AD_FIELD.xml	Tue Dec 14 09:49:50 2010 +0100
+++ b/modules/org.openbravo.client.myob/src-db/database/sourcedata/AD_FIELD.xml	Tue Dec 14 10:35:53 2010 +0100
@@ -1,5 +1,28 @@
 <?xml version='1.0' encoding='UTF-8'?>
 <data>
+<!--15A99A769F5D452182733291FE082260--><AD_FIELD>
+<!--15A99A769F5D452182733291FE082260-->  <AD_FIELD_ID><![CDATA[15A99A769F5D452182733291FE082260]]></AD_FIELD_ID>
+<!--15A99A769F5D452182733291FE082260-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--15A99A769F5D452182733291FE082260-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--15A99A769F5D452182733291FE082260-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--15A99A769F5D452182733291FE082260-->  <NAME><![CDATA[Can Maximize]]></NAME>
+<!--15A99A769F5D452182733291FE082260-->  <DESCRIPTION><![CDATA[If the widget has the hability to maximize]]></DESCRIPTION>
+<!--15A99A769F5D452182733291FE082260-->  <HELP><![CDATA[When is true, the maximize button appears in the widget's header toolbar, next to the menu options]]></HELP>
+<!--15A99A769F5D452182733291FE082260-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--15A99A769F5D452182733291FE082260-->  <AD_TAB_ID><![CDATA[EA867498578C4E98A4935A53A3A5F6AE]]></AD_TAB_ID>
+<!--15A99A769F5D452182733291FE082260-->  <AD_COLUMN_ID><![CDATA[05AD6D94F1E3475A9DF6315DE259FB22]]></AD_COLUMN_ID>
+<!--15A99A769F5D452182733291FE082260-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--15A99A769F5D452182733291FE082260-->  <DISPLAYLENGTH><![CDATA[1]]></DISPLAYLENGTH>
+<!--15A99A769F5D452182733291FE082260-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
+<!--15A99A769F5D452182733291FE082260-->  <SEQNO><![CDATA[100]]></SEQNO>
+<!--15A99A769F5D452182733291FE082260-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--15A99A769F5D452182733291FE082260-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--15A99A769F5D452182733291FE082260-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--15A99A769F5D452182733291FE082260-->  <SHOWINRELATION><![CDATA[Y]]></SHOWINRELATION>
+<!--15A99A769F5D452182733291FE082260-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--15A99A769F5D452182733291FE082260-->  <AD_MODULE_ID><![CDATA[2758CD25B2704AF6BBAD10365FC82C06]]></AD_MODULE_ID>
+<!--15A99A769F5D452182733291FE082260--></AD_FIELD>
+
 <!--927D0D118BA8EF36E040A8C0CF071CF5--><AD_FIELD>
 <!--927D0D118BA8EF36E040A8C0CF071CF5-->  <AD_FIELD_ID><![CDATA[927D0D118BA8EF36E040A8C0CF071CF5]]></AD_FIELD_ID>
 <!--927D0D118BA8EF36E040A8C0CF071CF5-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/modules/org.openbravo.client.myob/src-db/database/sourcedata/OBKMO_WIDGET_CLASS.xml	Tue Dec 14 09:49:50 2010 +0100
+++ b/modules/org.openbravo.client.myob/src-db/database/sourcedata/OBKMO_WIDGET_CLASS.xml	Tue Dec 14 10:35:53 2010 +0100
@@ -11,6 +11,7 @@
 <!--409D7D27FC2949ACAE0E3F5298A0B3BA-->  <ALLOW_ANONYMOUS_ACCESS><![CDATA[Y]]></ALLOW_ANONYMOUS_ACCESS>
 <!--409D7D27FC2949ACAE0E3F5298A0B3BA-->  <ISSUPERCLASS><![CDATA[N]]></ISSUPERCLASS>
 <!--409D7D27FC2949ACAE0E3F5298A0B3BA-->  <WIDGET_SUPERCLASS_ID><![CDATA[C26A68FD8CF347EC9D1FB7E274622450]]></WIDGET_SUPERCLASS_ID>
+<!--409D7D27FC2949ACAE0E3F5298A0B3BA-->  <CAN_MAXIMIZE><![CDATA[N]]></CAN_MAXIMIZE>
 <!--409D7D27FC2949ACAE0E3F5298A0B3BA--></OBKMO_WIDGET_CLASS>
 
 <!--50F3F7AED43A4B31AF176F1AF0714284--><OBKMO_WIDGET_CLASS>
@@ -25,6 +26,7 @@
 <!--50F3F7AED43A4B31AF176F1AF0714284-->  <DESCRIPTION><![CDATA[Provides the Openbravo news content]]></DESCRIPTION>
 <!--50F3F7AED43A4B31AF176F1AF0714284-->  <ALLOW_ANONYMOUS_ACCESS><![CDATA[Y]]></ALLOW_ANONYMOUS_ACCESS>
 <!--50F3F7AED43A4B31AF176F1AF0714284-->  <ISSUPERCLASS><![CDATA[N]]></ISSUPERCLASS>
+<!--50F3F7AED43A4B31AF176F1AF0714284-->  <CAN_MAXIMIZE><![CDATA[N]]></CAN_MAXIMIZE>
 <!--50F3F7AED43A4B31AF176F1AF0714284--></OBKMO_WIDGET_CLASS>
 
 <!--940DF63D2A3A490B9C06ADF04BFCD0F1--><OBKMO_WIDGET_CLASS>
@@ -39,6 +41,7 @@
 <!--940DF63D2A3A490B9C06ADF04BFCD0F1-->  <ALLOW_ANONYMOUS_ACCESS><![CDATA[Y]]></ALLOW_ANONYMOUS_ACCESS>
 <!--940DF63D2A3A490B9C06ADF04BFCD0F1-->  <ISSUPERCLASS><![CDATA[N]]></ISSUPERCLASS>
 <!--940DF63D2A3A490B9C06ADF04BFCD0F1-->  <WIDGET_SUPERCLASS_ID><![CDATA[C26A68FD8CF347EC9D1FB7E274622450]]></WIDGET_SUPERCLASS_ID>
+<!--940DF63D2A3A490B9C06ADF04BFCD0F1-->  <CAN_MAXIMIZE><![CDATA[N]]></CAN_MAXIMIZE>
 <!--940DF63D2A3A490B9C06ADF04BFCD0F1--></OBKMO_WIDGET_CLASS>
 
 <!--C26A68FD8CF347EC9D1FB7E274622450--><OBKMO_WIDGET_CLASS>
@@ -52,6 +55,7 @@
 <!--C26A68FD8CF347EC9D1FB7E274622450-->  <HEIGHT><![CDATA[300]]></HEIGHT>
 <!--C26A68FD8CF347EC9D1FB7E274622450-->  <ALLOW_ANONYMOUS_ACCESS><![CDATA[N]]></ALLOW_ANONYMOUS_ACCESS>
 <!--C26A68FD8CF347EC9D1FB7E274622450-->  <ISSUPERCLASS><![CDATA[Y]]></ISSUPERCLASS>
+<!--C26A68FD8CF347EC9D1FB7E274622450-->  <CAN_MAXIMIZE><![CDATA[N]]></CAN_MAXIMIZE>
 <!--C26A68FD8CF347EC9D1FB7E274622450--></OBKMO_WIDGET_CLASS>
 
 <!--CA90D84DD3864FFC8F97CE39A86CFC77--><OBKMO_WIDGET_CLASS>
@@ -63,8 +67,9 @@
 <!--CA90D84DD3864FFC8F97CE39A86CFC77-->  <TITLE><![CDATA[Show Parameter Values]]></TITLE>
 <!--CA90D84DD3864FFC8F97CE39A86CFC77-->  <JAVACLASS><![CDATA[org.openbravo.client.myob.ShowParameterWidgetProvider]]></JAVACLASS>
 <!--CA90D84DD3864FFC8F97CE39A86CFC77-->  <HEIGHT><![CDATA[300]]></HEIGHT>
-<!--CA90D84DD3864FFC8F97CE39A86CFC77-->  <ALLOW_ANONYMOUS_ACCESS><![CDATA[N]]></ALLOW_ANONYMOUS_ACCESS>
+<!--CA90D84DD3864FFC8F97CE39A86CFC77-->  <ALLOW_ANONYMOUS_ACCESS><![CDATA[Y]]></ALLOW_ANONYMOUS_ACCESS>
 <!--CA90D84DD3864FFC8F97CE39A86CFC77-->  <ISSUPERCLASS><![CDATA[N]]></ISSUPERCLASS>
+<!--CA90D84DD3864FFC8F97CE39A86CFC77-->  <CAN_MAXIMIZE><![CDATA[Y]]></CAN_MAXIMIZE>
 <!--CA90D84DD3864FFC8F97CE39A86CFC77--></OBKMO_WIDGET_CLASS>
 
 </data>
--- a/modules/org.openbravo.client.myob/src/org/openbravo/client/myob/MyOpenbravoComponent.java	Tue Dec 14 09:49:50 2010 +0100
+++ b/modules/org.openbravo.client.myob/src/org/openbravo/client/myob/MyOpenbravoComponent.java	Tue Dec 14 10:35:53 2010 +0100
@@ -99,7 +99,7 @@
             classDef = widgetProvider.generate();
             classDef = classDef.substring(0, classDef.length() - 1);
             tmp.add(classDef);
-          } catch (UnsupportedOperationException e) {
+          } catch (Exception e) {
             // Do nothing as the definition is already in a loaded js file
           }
         }
--- a/modules/org.openbravo.client.myob/src/org/openbravo/client/myob/WidgetProvider.java	Tue Dec 14 09:49:50 2010 +0100
+++ b/modules/org.openbravo.client.myob/src/org/openbravo/client/myob/WidgetProvider.java	Tue Dec 14 10:35:53 2010 +0100
@@ -77,6 +77,7 @@
   private static final String PARAMETERFIELDPROPERTIES = "fieldProperties";
   private static final String PARAMETERREQUIRED = "required";
   private static final String DBINSTANCEID = "dbInstanceId";
+  private static final String CAN_MAXIMIZE = "showMaximizeButton";
 
   private Map<String, Object> parameters = new HashMap<String, Object>();
 
@@ -95,6 +96,7 @@
           .getClientSideWidgetClassName());
       jsonObject.put(TITLE, MyOBUtils.getWidgetTitle(widgetClass));
       jsonObject.put(HEIGHT, widgetClass.getHeight());
+      jsonObject.put(CAN_MAXIMIZE, widgetClass.isCanMaximize());
       final JSONObject defaultParameters = new JSONObject();
       final List<JSONObject> fieldDefinitions = new ArrayList<JSONObject>();
       for (Parameter parameter : widgetClass.getOBUIAPPParameterEMObkmoWidgetClassIDList()) {
--- a/modules/org.openbravo.client.myob/web/org.openbravo.client.myob/js/ob-myopenbravo.js	Tue Dec 14 09:49:50 2010 +0100
+++ b/modules/org.openbravo.client.myob/web/org.openbravo.client.myob/js/ob-myopenbravo.js	Tue Dec 14 10:35:53 2010 +0100
@@ -442,6 +442,7 @@
       for (i = 0; i < this.availableWidgetClasses.length; i++) {
         if (this.availableWidgetClasses[i].widgetClassName &&
             this.availableWidgetClasses[i].widgetClassName === widgetProperties.widgetClassName) {
+          localWidgetProperties.showMaximizeButton = this.availableWidgetClasses[i].showMaximizeButton;
           localWidgetProperties.fieldDefinitions = this.availableWidgetClasses[i].fieldDefinitions;
           localWidgetProperties.parameters = isc.addProperties({}, widgetProperties.parameters);
           break;
--- a/modules/org.openbravo.client.myob/web/org.openbravo.client.myob/js/ob-widget.js	Tue Dec 14 09:49:50 2010 +0100
+++ b/modules/org.openbravo.client.myob/web/org.openbravo.client.myob/js/ob-widget.js	Tue Dec 14 10:35:53 2010 +0100
@@ -60,8 +60,8 @@
   
   widgetMode: null,
   
-  initWidget: function(){
-    var widget = this;
+  initWidget: function(args){
+    var widget = this, headerControls = ['headerLabel'];
     
     // set the headercontrols in initWidget otherwise only  
     // one menubutton gets created for all widgets
@@ -159,8 +159,15 @@
       })
     
     });
-    this.headerControls = ['headerLabel', this.menuButton];
-    
+
+    if(args.showMaximizeButton) {
+      headerControls.push('maximizeButton');
+    }
+
+    headerControls.push(this.menuButton);
+
+    this.headerControls = headerControls;
+
     this.editFormLayout = this.createEditFormLayout();
     this.windowContents = this.createWindowContents();
     
--- a/modules/org.openbravo.client.querylist/src-db/database/sourcedata/OBKMO_WIDGET_CLASS.xml	Tue Dec 14 09:49:50 2010 +0100
+++ b/modules/org.openbravo.client.querylist/src-db/database/sourcedata/OBKMO_WIDGET_CLASS.xml	Tue Dec 14 10:35:53 2010 +0100
@@ -11,6 +11,7 @@
 <!--2A32CF26F3F64FE39C7F94E9D82497D1-->  <HEIGHT><![CDATA[200]]></HEIGHT>
 <!--2A32CF26F3F64FE39C7F94E9D82497D1-->  <ALLOW_ANONYMOUS_ACCESS><![CDATA[Y]]></ALLOW_ANONYMOUS_ACCESS>
 <!--2A32CF26F3F64FE39C7F94E9D82497D1-->  <ISSUPERCLASS><![CDATA[Y]]></ISSUPERCLASS>
+<!--2A32CF26F3F64FE39C7F94E9D82497D1-->  <CAN_MAXIMIZE><![CDATA[N]]></CAN_MAXIMIZE>
 <!--2A32CF26F3F64FE39C7F94E9D82497D1--></OBKMO_WIDGET_CLASS>
 
 <!--D1E4261099AE4095B2F2DAEE0F7E7784--><OBKMO_WIDGET_CLASS>
@@ -24,6 +25,7 @@
 <!--D1E4261099AE4095B2F2DAEE0F7E7784-->  <ALLOW_ANONYMOUS_ACCESS><![CDATA[Y]]></ALLOW_ANONYMOUS_ACCESS>
 <!--D1E4261099AE4095B2F2DAEE0F7E7784-->  <ISSUPERCLASS><![CDATA[N]]></ISSUPERCLASS>
 <!--D1E4261099AE4095B2F2DAEE0F7E7784-->  <WIDGET_SUPERCLASS_ID><![CDATA[2A32CF26F3F64FE39C7F94E9D82497D1]]></WIDGET_SUPERCLASS_ID>
+<!--D1E4261099AE4095B2F2DAEE0F7E7784-->  <CAN_MAXIMIZE><![CDATA[N]]></CAN_MAXIMIZE>
 <!--D1E4261099AE4095B2F2DAEE0F7E7784--></OBKMO_WIDGET_CLASS>
 
 </data>