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