r19141: add a reasonable subset of the qooxdoo runtime environment, and example appli...
[jra/samba/.git] / swat / apps / qooxdoo-examples / test / DockLayout_4.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 the dimensions of the qx.ui.layout.DockLayout are defined as percents here.
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.add(new qx.ui.basic.Image("icon/16/clock.png"));
44     dl1.addTop(t1);
45
46     var t2 = new qx.ui.layout.HorizontalBoxLayout;
47     t2.setWidth("20%");
48     t2.setBackgroundColor("yellow");
49     t2.setHeight(null);
50     t2.setVerticalChildrenAlign("middle");
51     t2.setHorizontalChildrenAlign("center");
52     t2.add(new qx.ui.basic.Image("icon/16/clock.png"));
53     dl1.addLeft(t2);
54     
55     var t3 = new qx.ui.layout.HorizontalBoxLayout;
56     t3.setHeight("20%");
57     t3.setBackgroundColor("blue");
58     t3.setWidth(null);
59     t3.setVerticalChildrenAlign("middle");
60     t3.setHorizontalChildrenAlign("center");
61     t3.add(new qx.ui.basic.Image("icon/16/clock.png"));
62     dl1.addBottom(t3);
63
64     var t4 = new qx.ui.layout.HorizontalBoxLayout;
65     t4.setWidth("20%");
66     t4.setBackgroundColor("green");
67     t4.setHeight(null);
68     t4.setVerticalChildrenAlign("middle");
69     t4.setHorizontalChildrenAlign("center");
70     t4.add(new qx.ui.basic.Image("icon/16/clock.png"));
71     dl1.addRight(t4);    
72     
73     
74     
75     
76     var dl2 = new qx.ui.layout.DockLayout;
77     dl2.setBorder(qx.renderer.border.BorderPresets.getInstance().black);
78     dl1.add(dl2);
79     
80     
81     
82     
83     
84
85
86     var t5 = new qx.ui.layout.HorizontalBoxLayout;
87     t5.setHeight("20%");
88     t5.setBackgroundColor("fuchsia");
89     t5.setWidth(null);
90     t5.setVerticalChildrenAlign("middle");
91     t5.setHorizontalChildrenAlign("center");
92     t5.add(new qx.ui.basic.Image("icon/32/clock.png"));
93     dl2.addTop(t5);
94
95     var t6 = new qx.ui.layout.HorizontalBoxLayout;
96     t6.setWidth("20%");
97     t6.setBackgroundColor("orange");
98     t6.setHeight(null);
99     t6.setVerticalChildrenAlign("middle");
100     t6.setHorizontalChildrenAlign("center");
101     t6.add(new qx.ui.basic.Image("icon/32/clock.png"));
102     dl2.addLeft(t6);
103     
104     var t7 = new qx.ui.layout.HorizontalBoxLayout;
105     t7.setHeight("20%");
106     t7.setBackgroundColor("aqua");
107     t7.setWidth(null);
108     t7.setVerticalChildrenAlign("middle");
109     t7.setHorizontalChildrenAlign("center");
110     t7.add(new qx.ui.basic.Image("icon/32/clock.png"));
111     dl2.addBottom(t7);
112
113     var t8 = new qx.ui.layout.HorizontalBoxLayout;
114     t8.setWidth("20%");
115     t8.setBackgroundColor("lime");
116     t8.setHeight(null);
117     t8.setVerticalChildrenAlign("middle");
118     t8.setHorizontalChildrenAlign("center");
119     t8.add(new qx.ui.basic.Image("icon/32/clock.png"));
120     dl2.addRight(t8); 
121     
122     
123     
124
125     
126     var hb1 = new qx.ui.layout.HorizontalBoxLayout;
127     
128     hb1.setBackgroundColor("silver");
129     hb1.setVerticalChildrenAlign("middle");
130     hb1.setHorizontalChildrenAlign("center");
131     hb1.setBorder(qx.renderer.border.BorderPresets.getInstance().black);
132     hb1.setWidth(null);
133     hb1.setHeight(null);
134     hb1.add(new qx.ui.basic.Image("icon/64/clock.png"));
135     
136     dl2.add(hb1);
137   });
138   </script>
139 </body>
140 </html>