r20445: add README file indicating that the swat directory is no longer relevant
[samba.git] / swat / apps / qooxdoo-examples / test / DockLayout_5.html
1 <html>
2 <head>
3   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4   <title>qooxdoo &raquo; Demo</title>
5   <link type="text/css" rel="stylesheet" href="../../resource/css/layout.css"/>
6   <!--[if IE]>
7   <link type="text/css" rel="stylesheet" href="../../resource/css/layout_ie.css"/>
8   <![endif]-->
9   <script type="text/javascript" src="../../script/qx.js"></script>
10 </head>
11 <body>
12   <script type="text/javascript" src="../../script/layout.js"></script>
13
14   <div id="demoDescription">
15     Same as the previous one, but additional added multiple children to the box layout.
16   </div>
17
18   <script type="text/javascript">
19   qx.core.Init.getInstance().defineMain(function()
20   {
21     var d = qx.ui.core.ClientDocument.getInstance();
22
23     var dl1 = new qx.ui.layout.DockLayout;
24     
25     dl1.setTop(48);
26     dl1.setLeft(20);
27     dl1.setRight(335);
28     dl1.setBottom(48);
29     
30     dl1.setBorder(qx.renderer.border.BorderPresets.getInstance().black);
31     dl1.setBackgroundColor("white");
32     
33     d.add(dl1);
34     
35     
36     
37     var t1 = new qx.ui.layout.HorizontalBoxLayout;
38     t1.setHeight("20%");
39     t1.setBackgroundColor("red");
40     t1.setWidth(null);
41     t1.setVerticalChildrenAlign("middle");
42     t1.setHorizontalChildrenAlign("center");
43     t1.setSpacing(4);
44     t1.add(new qx.ui.basic.Image("icon/16/clock.png"));
45     t1.add(new qx.ui.basic.Label("Hello World"));
46     t1.add(new qx.ui.basic.Image("icon/48/colors.png"));
47     dl1.addTop(t1);
48
49     var t2 = new qx.ui.layout.HorizontalBoxLayout;
50     t2.setWidth("20%");
51     t2.setBackgroundColor("yellow");
52     t2.setHeight(null);
53     t2.setVerticalChildrenAlign("middle");
54     t2.setHorizontalChildrenAlign("center");
55     t2.setSpacing(4);
56     t2.add(new qx.ui.basic.Image("icon/16/clock.png"));
57     t2.add(new qx.ui.basic.Label("Hello World"));
58     t2.add(new qx.ui.basic.Image("icon/48/colors.png"));
59     dl1.addLeft(t2);
60     
61     var t3 = new qx.ui.layout.HorizontalBoxLayout;
62     t3.setHeight("20%");
63     t3.setBackgroundColor("blue");
64     t3.setWidth(null);
65     t3.setVerticalChildrenAlign("middle");
66     t3.setHorizontalChildrenAlign("center");
67     t3.setSpacing(4);
68     t3.add(new qx.ui.basic.Image("icon/16/clock.png"));
69     t3.add(new qx.ui.basic.Label("Hello World"));
70     t3.add(new qx.ui.basic.Image("icon/48/colors.png"));
71     dl1.addBottom(t3);
72
73     var t4 = new qx.ui.layout.HorizontalBoxLayout;
74     t4.setWidth("20%");
75     t4.setBackgroundColor("green");
76     t4.setHeight(null);
77     t4.setVerticalChildrenAlign("middle");
78     t4.setHorizontalChildrenAlign("center");
79     t4.setSpacing(4);
80     t4.add(new qx.ui.basic.Image("icon/16/clock.png"));
81     t4.add(new qx.ui.basic.Label("Hello World"));
82     t4.add(new qx.ui.basic.Image("icon/48/colors.png"));
83     dl1.addRight(t4);    
84     
85     
86     
87     
88     var dl2 = new qx.ui.layout.DockLayout;
89     dl2.setBorder(qx.renderer.border.BorderPresets.getInstance().black);
90     dl1.add(dl2);
91     
92     
93     
94     
95     
96
97
98     var t5 = new qx.ui.layout.HorizontalBoxLayout;
99     t5.setHeight("20%");
100     t5.setBackgroundColor("fuchsia");
101     t5.setWidth(null);
102     t5.setVerticalChildrenAlign("middle");
103     t5.setHorizontalChildrenAlign("center");
104     t5.setSpacing(4);
105     t5.add(new qx.ui.basic.Image("icon/16/clock.png"));
106     t5.add(new qx.ui.basic.Label("Hello World"));
107     t5.add(new qx.ui.basic.Image("icon/48/colors.png"));
108     dl2.addTop(t5);
109
110     var t6 = new qx.ui.layout.HorizontalBoxLayout;
111     t6.setWidth("20%");
112     t6.setBackgroundColor("orange");
113     t6.setHeight(null);
114     t6.setVerticalChildrenAlign("middle");
115     t6.setHorizontalChildrenAlign("center");
116     t6.setSpacing(4);
117     t6.add(new qx.ui.basic.Image("icon/16/clock.png"));
118     t6.add(new qx.ui.basic.Label("Hello World"));
119     t6.add(new qx.ui.basic.Image("icon/48/colors.png"));
120     dl2.addLeft(t6);
121     
122     var t7 = new qx.ui.layout.HorizontalBoxLayout;
123     t7.setHeight("20%");
124     t7.setBackgroundColor("aqua");
125     t7.setWidth(null);
126     t7.setVerticalChildrenAlign("middle");
127     t7.setHorizontalChildrenAlign("center");
128     t7.setSpacing(4);
129     t7.add(new qx.ui.basic.Image("icon/16/clock.png"));
130     t7.add(new qx.ui.basic.Label("Hello World"));
131     t7.add(new qx.ui.basic.Image("icon/48/colors.png"));
132     dl2.addBottom(t7);
133
134     var t8 = new qx.ui.layout.HorizontalBoxLayout;
135     t8.setWidth("20%");
136     t8.setBackgroundColor("lime");
137     t8.setHeight(null);
138     t8.setVerticalChildrenAlign("middle");
139     t8.setHorizontalChildrenAlign("center");
140     t8.setSpacing(4);
141     t8.add(new qx.ui.basic.Image("icon/16/clock.png"));
142     t8.add(new qx.ui.basic.Label("Hello World"));
143     t8.add(new qx.ui.basic.Image("icon/48/colors.png"));
144     dl2.addRight(t8); 
145     
146     
147     
148
149     
150     var hb1 = new qx.ui.layout.HorizontalBoxLayout;
151     
152     hb1.setBackgroundColor("silver");
153     hb1.setVerticalChildrenAlign("middle");
154     hb1.setHorizontalChildrenAlign("center");
155     hb1.setBorder(qx.renderer.border.BorderPresets.getInstance().black);
156     hb1.setWidth(null);
157     hb1.setHeight(null);
158     hb1.add(new qx.ui.basic.Image("icon/64/clock.png"));
159     
160     dl2.add(hb1);
161   });
162   </script>
163 </body>
164 </html>