Revision: 7105
Author: jasonpar...@google.com
Date: Mon Nov 23 07:12:55 2009
Log: Update the gwt-user widgets XSD to support LayoutPanel

Review by: rjrjr
http://code.google.com/p/google-web-toolkit/source/detail?r=7105

Modified:
   
/trunk/user/src/com/google/gwt/uibinder/resources/com.google.gwt.user.client.ui.xsd

=======================================
---  
/trunk/user/src/com/google/gwt/uibinder/resources/com.google.gwt.user.client.ui.xsd
      
Wed Nov 11 08:10:49 2009
+++  
/trunk/user/src/com/google/gwt/uibinder/resources/com.google.gwt.user.client.ui.xsd
      
Mon Nov 23 07:12:55 2009
@@ -249,12 +249,17 @@
      </xs:complexType>

      <!-- Used for north, south, west, and east in the DockLayoutPanel. -->
-    <xs:complexType name="DockDirectionType">
-      <xs:complexContent>
-          <xs:extension base="SingleChildWidgetType">
-              <xs:attribute name="size" type="xs:string" use="required" />
-          </xs:extension>
-      </xs:complexContent>
+    <xs:complexType
+        name="DockDirectionType">
+        <xs:complexContent>
+            <xs:extension
+                base="SingleChildWidgetType">
+                <xs:attribute
+                    name="size"
+                    type="xs:string"
+                    use="required" />
+            </xs:extension>
+        </xs:complexContent>
      </xs:complexType>

      <xs:complexType
@@ -302,6 +307,65 @@
          </xs:complexType>
      </xs:element>

+    <xs:element
+        name="LayoutPanel">
+        <xs:complexType>
+
+            <!-- Allow any number of "layer" children -->
+            <xs:choice
+                minOccurs="0"
+                maxOccurs="unbounded">
+                <xs:element
+                    name="layer"
+                    type="LayoutPanelLayer">
+                </xs:element>
+            </xs:choice>
+
+            <xs:anyAttribute
+                processContents="lax" />
+
+        </xs:complexType>
+    </xs:element>
+
+    <xs:complexType
+        name="LayoutPanelLayer">
+        <xs:complexContent>
+            <!-- Each "layer" element contains one child widget -->
+            <xs:extension
+                base="SingleChildWidgetType">
+
+                <!--
+                    ...and can contain any of these attributes. We do not
+                    express the pair constraints here.
+                -->
+                <xs:attribute
+                    name="left"
+                    type="xs:string" />
+
+                <xs:attribute
+                    name="right"
+                    type="xs:string" />
+
+                <xs:attribute
+                    name="width"
+                    type="xs:string" />
+
+                <xs:attribute
+                    name="top"
+                    type="xs:string" />
+
+                <xs:attribute
+                    name="bottom"
+                    type="xs:string" />
+
+                <xs:attribute
+                    name="height"
+                    type="xs:string" />
+
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+
      <xs:complexType
          name="MenuBarType">

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to