3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4 <title>qooxdoo » Demo</title>
5 <link type="text/css" rel="stylesheet" href="../../resource/css/layout.css"/>
7 <link type="text/css" rel="stylesheet" href="../../resource/css/layout_ie.css"/>
9 <script type="text/javascript" src="../../script/qx.js"></script>
12 <script type="text/javascript" src="../../script/layout.js"></script>
14 <div id="demoDescription">
15 <p>Test for qx.ui.layout.GridLayout.</p>
18 <script type="text/javascript">
19 qx.core.Init.getInstance().defineMain(function()
21 var gl = new qx.ui.layout.GridLayout;
23 gl.setLocation(20, 48);
24 gl.setDimension(462, 128);
25 gl.setBorder(qx.renderer.border.BorderPresets.getInstance().outset);
30 gl.setColumnWidth(0, 100);
31 gl.setColumnWidth(1, 200);
32 gl.setColumnWidth(2, 50);
33 gl.setColumnWidth(3, 100);
35 gl.setRowHeight(0, 40);
36 gl.setRowHeight(1, 80);
38 qx.ui.core.ClientDocument.getInstance().add(gl);
44 var term1 = new qx.ui.basic.Terminator;
45 term1.setBackgroundColor("yellow");
48 var term2 = new qx.ui.basic.Terminator;
49 term2.setBackgroundColor("red");
52 var term3 = new qx.ui.basic.Terminator;
53 term3.setBackgroundColor("green");
56 var term4 = new qx.ui.basic.Terminator;
57 term4.setBackgroundColor("blue");
60 var term5 = new qx.ui.basic.Terminator;
61 term5.setBackgroundColor("fuchsia");
64 var term6 = new qx.ui.basic.Terminator;
65 term6.setBackgroundColor("olive");
68 var term7 = new qx.ui.basic.Terminator;
69 term7.setBackgroundColor("maroon");
72 var term8 = new qx.ui.basic.Terminator;
73 term8.setBackgroundColor("navy");