summaryrefslogtreecommitdiff
path: root/swat.obsolete/apps/qooxdoo-examples/example/GroupBox_1.html
blob: 39c2eafd00349d50d4be29843d0baf358910309c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>qooxdoo &raquo; Demo</title>
  <link type="text/css" rel="stylesheet" href="../../resource/css/layout.css"/>
  <!--[if IE]>
  <link type="text/css" rel="stylesheet" href="../../resource/css/layout_ie.css"/>
  <![endif]-->
  <script type="text/javascript" src="../../script/qx.js"></script>
</head>
<body>
  <script type="text/javascript" src="../../script/layout.js"></script>

  <div id="demoDescription">
    <p>Introducing qx.ui.groupbox.GroupBox.</p>
  </div>

  <fieldset style="position:absolute; top:48px; left:400px; width:200px; height:100px"><legend>builtin</legend>content content content content content content content content content content content content content content content</fieldset>


  <script type="text/javascript">
    qx.core.Init.getInstance().defineMain(function()
    {
      var d = qx.ui.core.ClientDocument.getInstance();

      var fs = new qx.ui.groupbox.GroupBox("My first Fieldset");

      with(fs)
      {
        setWidth("40%");
        setBottom(48);
        setTop(48);
        setLeft(20);

        setMaxWidth(350);
        setMinWidth(250);
      };



      var a1 = new qx.ui.basic.Atom("TextField 1");
      with(a1)
      {
        setTop(3);
        setLeft(0);
        setWidth("35%");
        setHorizontalChildrenAlign("left");
      };

      var i1 = new qx.ui.form.TextField();
      with(i1)
      {
        setTop(0);
        setRight(0);
        setWidth("60%");
      };
      fs.add(a1, i1);



      var a2 = new qx.ui.basic.Atom("TextField 2", "icon/16/appearance.png");
      with(a2)
      {
        setTop(33);
        setLeft(0);
        setWidth("35%");
        setHorizontalChildrenAlign("left");
      };
      fs.add(a2);

      var i2 = new qx.ui.form.TextField();
      with(i2)
      {
        setTop(30);
        setRight(0);
        setWidth("60%");
      };
      fs.add(i2);



      var a3 = new qx.ui.basic.Atom("TextField 3");
      with(a3)
      {
        setTop(63);
        setLeft(0);
        setWidth("35%");
        setHorizontalChildrenAlign("left");
      };
      fs.add(a3);

      var i3 = new qx.ui.form.TextField();
      with(i3)
      {
        setTop(60);
        setRight(0);
        setWidth("60%");
      };
      fs.add(i3);



      d.add(fs);
    });
  </script>
</body>
</html>