r20445: add README file indicating that the swat directory is no longer relevant
[samba.git] / swat / apps / qooxdoo-examples / test / GridLayout_1.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     <p>Test for qx.ui.layout.GridLayout.</p>
16   </div>
17
18   <script type="text/javascript">
19   qx.core.Init.getInstance().defineMain(function()
20   {
21     var gl = new qx.ui.layout.GridLayout;
22     
23     gl.setLocation(20, 48);
24     gl.setDimension(462, 128);
25     gl.setBorder(qx.renderer.border.BorderPresets.getInstance().outset);
26     gl.setPadding(2, 4);
27     gl.setColumnCount(4);
28     gl.setRowCount(2);
29     
30     gl.setColumnWidth(0, 100);
31     gl.setColumnWidth(1, 200);
32     gl.setColumnWidth(2, 50);
33     gl.setColumnWidth(3, 100);
34     
35     gl.setRowHeight(0, 40);
36     gl.setRowHeight(1, 80);
37
38     qx.ui.core.ClientDocument.getInstance().add(gl);
39     
40     
41     
42     
43     
44     var term1 = new qx.ui.basic.Terminator;
45     term1.setBackgroundColor("yellow");
46     gl.add(term1, 0, 0);
47     
48     var term2 = new qx.ui.basic.Terminator;
49     term2.setBackgroundColor("red");
50     gl.add(term2, 1, 0);
51     
52     var term3 = new qx.ui.basic.Terminator;
53     term3.setBackgroundColor("green");
54     gl.add(term3, 2, 0);
55
56     var term4 = new qx.ui.basic.Terminator;
57     term4.setBackgroundColor("blue");
58     gl.add(term4, 3, 0);
59
60     var term5 = new qx.ui.basic.Terminator;
61     term5.setBackgroundColor("fuchsia");
62     gl.add(term5, 0, 1);
63     
64     var term6 = new qx.ui.basic.Terminator;
65     term6.setBackgroundColor("olive");
66     gl.add(term6, 1, 1);
67     
68     var term7 = new qx.ui.basic.Terminator;
69     term7.setBackgroundColor("maroon");
70     gl.add(term7, 2, 1);
71     
72     var term8 = new qx.ui.basic.Terminator;
73     term8.setBackgroundColor("navy");
74     gl.add(term8, 3, 1);            
75   });
76   </script> 
77
78 </body>
79 </html>