r20446: rename swat directory to swat.obsolete; keeping it around since there is...
[kai/samba.git] / swat.obsolete / apps / qooxdoo-examples / test / Atom_6.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>Adding many qx.ui.basic.Atom widgets setting the icon-width and -height.</p>
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 atom;
24     var toppos = 48;
25
26     for (var i=0; i<20; i++)
27     {
28       for (var j=0; j<10; j++)
29       {
30         atom = new qx.ui.basic.Atom("Date", "icon/16/date.png", 16, 16);
31
32         atom.setTop(toppos);
33         atom.setLeft(20 + (j*50));
34
35         d.add(atom);
36       };
37
38       toppos += 20;
39     };
40   });
41   </script>
42 </body>
43 </html>