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 <script type=
"text/javascript">
15 qx
.core
.Init
.getInstance().defineMain(function()
17 var d
= qx
.ui
.core
.ClientDocument
.getInstance();
19 var w1
= new qx
.ui
.window
.Window("First Window", "icon/16/bell.png");
20 w1
.setSpace(20, 400, 48, 250);
23 var w2
= new qx
.ui
.window
.Window("Second Window", "icon/16/colors.png");
24 w2
.setSpace(250, "auto", 120, "auto");
27 var w3
= new qx
.ui
.window
.Window("Third Window", "icon/16/network.png");
28 w3
.setSpace(100, 300, 200, 300);
33 var wm1
= new qx
.ui
.window
.Window("First Modal Dialog");
34 wm1
.setSpace(150, 200, 150, 200);
38 var wm2
= new qx
.ui
.window
.Window("Second Modal Dialog");
39 wm2
.setSpace(100, 200, 100, 150);
41 wm2
.setShowClose(false);
47 var a1
= new qx
.ui
.basic
.Atom("Welcome to your first own Window.<br/>Have fun!", "icon/32/chart.png");
48 a1
.set({ top
: 4, left
: 4 });
54 var tf1
= new qx
.ui
.pageview
.tabview
.TabView
;
55 tf1
.set({ left
: 10, top
: 52, right
: 10, bottom
: 10 });
57 var t1_1
= new qx
.ui
.pageview
.tabview
.TabViewButton("Explore");
58 var t1_2
= new qx
.ui
.pageview
.tabview
.TabViewButton("Internet");
59 var t1_3
= new qx
.ui
.pageview
.tabview
.TabViewButton("Future");
61 t1_1
.setChecked(true);
63 tf1
.getBar().add(t1_1
, t1_2
, t1_3
);
65 var p1_1
= new qx
.ui
.pageview
.tabview
.TabViewPage(t1_1
);
66 var p1_2
= new qx
.ui
.pageview
.tabview
.TabViewPage(t1_2
);
67 var p1_3
= new qx
.ui
.pageview
.tabview
.TabViewPage(t1_3
);
69 tf1
.getPane().add(p1_1
, p1_2
, p1_3
);
75 var at1
= new qx
.ui
.basic
.Atom("Your second window", "icon/22/find.png");
76 at1
.setLocation(8, 8);
82 var btn1
= new qx
.ui
.form
.Button("Open Modal Dialog 1", "icon/16/control-center.png");
83 btn1
.setLocation(4, 4);
86 btn1
.addEventListener("execute", function(e
) {
91 var btn2
= new qx
.ui
.form
.Button("Open Modal Dialog 2", "icon/16/control-center.png");
92 btn2
.setLocation(4, 4);
95 btn2
.addEventListener("execute", function(e
) {
100 var chkm1
= new qx
.ui
.form
.CheckBox("Modal", null, null, true);
101 chkm1
.setLocation(4, 50);
104 chkm1
.addEventListener("changeChecked", function(e
) {
105 wm1
.setModal(e
.getData());
110 var fs1
= new qx
.ui
.groupbox
.GroupBox("Settings");
111 fs1
.setLocation(4, 40);
116 var chk1
= new qx
.ui
.form
.CheckBox("Show Icon");
117 chk1
.setLocation(0, 0);
118 chk1
.setChecked(true);
119 chk1
.addEventListener("changeChecked", function(e
) {
120 w2
.setShowIcon(e
.getData());
123 var chk2
= new qx
.ui
.form
.CheckBox("Show Caption");
124 chk2
.setLocation(0, 20);
125 chk2
.setChecked(true);
126 chk2
.addEventListener("changeChecked", function(e
) {
127 w2
.setShowCaption(e
.getData());
132 var chk3
= new qx
.ui
.form
.CheckBox("Resizeable");
133 chk3
.setLocation(0, 50);
134 chk3
.setChecked(true);
135 chk3
.addEventListener("changeChecked", function(e
) {
136 w2
.setResizeable(e
.getData());
139 var chk4
= new qx
.ui
.form
.CheckBox("Moveable");
140 chk4
.setLocation(0, 70);
141 chk4
.setChecked(true);
142 chk4
.addEventListener("changeChecked", function(e
) {
143 w2
.setMoveable(e
.getData());
148 var chk5
= new qx
.ui
.form
.CheckBox("Show Close");
149 chk5
.setLocation(140, 0);
150 chk5
.setChecked(true);
151 chk5
.addEventListener("changeChecked", function(e
) {
152 w2
.setShowClose(e
.getData());
155 var chk6
= new qx
.ui
.form
.CheckBox("Show Maximize/Restore");
156 chk6
.setLocation(140, 20);
157 chk6
.setChecked(true);
158 chk6
.addEventListener("changeChecked", function(e
) {
159 w2
.setShowMaximize(e
.getData());
162 var chk7
= new qx
.ui
.form
.CheckBox("Show Minimize");
163 chk7
.setLocation(140, 40);
164 chk7
.setChecked(true);
165 chk7
.addEventListener("changeChecked", function(e
) {
166 w2
.setShowMinimize(e
.getData());
171 var chk8
= new qx
.ui
.form
.CheckBox("Allow Close");
172 chk8
.setLocation(140, 70);
173 chk8
.setChecked(true);
174 chk8
.addEventListener("changeChecked", function(e
) {
175 w2
.setAllowClose(e
.getData());
178 var chk9
= new qx
.ui
.form
.CheckBox("Allow Maximize");
179 chk9
.setLocation(140, 90);
180 chk9
.setChecked(true);
181 chk9
.addEventListener("changeChecked", function(e
) {
182 w2
.setAllowMaximize(e
.getData());
185 var chk10
= new qx
.ui
.form
.CheckBox("Allow Minimize");
186 chk10
.setLocation(140, 110);
187 chk10
.setChecked(true);
188 chk10
.addEventListener("changeChecked", function(e
) {
189 w2
.setAllowMinimize(e
.getData());
195 var l1
= new qx
.ui
.basic
.Atom("Move Method", "icon/16/misc.png");
196 l1
.setLocation(0, 100);
198 var rb1
= new qx
.ui
.form
.RadioButton("Frame", "frame");
199 rb1
.setLocation(0, 120);
201 var rb2
= new qx
.ui
.form
.RadioButton("Opaque", "opaque");
202 rb2
.setLocation(0, 140);
203 rb2
.setChecked(true);
205 var rb3
= new qx
.ui
.form
.RadioButton("Translucent", "translucent");
206 rb3
.setLocation(0, 160);
208 var rbm1
= new qx
.manager
.selection
.RadioManager("move", [rb1
, rb2
, rb3
]);
210 rbm1
.addEventListener("changeSelected", function(e
) {
211 w2
.setMoveMethod(e
.getData().getValue());
217 var l2
= new qx
.ui
.basic
.Atom("Resize Method", "icon/16/misc.png");
218 l2
.setLocation(0, 190);
220 var rb4
= new qx
.ui
.form
.RadioButton("Frame", "frame");
221 rb4
.setLocation(0, 210);
222 rb4
.setChecked(true);
224 var rb5
= new qx
.ui
.form
.RadioButton("Opaque", "opaque");
225 rb5
.setLocation(0, 230);
227 var rb6
= new qx
.ui
.form
.RadioButton("Lazy Opaque", "lazyopaque");
228 rb6
.setLocation(0, 250);
230 var rb7
= new qx
.ui
.form
.RadioButton("Translucent", "translucent");
231 rb7
.setLocation(0, 270);
233 var rbm2
= new qx
.manager
.selection
.RadioManager("resize", [rb4
, rb5
, rb6
, rb7
]);
235 rbm2
.addEventListener("changeSelected", function(e
) {
236 w2
.setResizeMethod(e
.getData().getValue());
242 var chk11
= new qx
.ui
.form
.CheckBox("Show Statusbar");
243 chk11
.setLocation(140, 140);
244 chk11
.setChecked(false);
245 chk11
.addEventListener("changeChecked", function(e
) {
246 w2
.setShowStatusbar(e
.getData());
252 var btnpack
= new qx
.ui
.form
.Button("Pack Window", "icon/16/cdrom.png");
253 btnpack
.setLocation(140, 170);
254 btnpack
.addEventListener("execute", function(e
) {
259 fs1
.add(chk1
, chk2
, chk3
, chk4
, chk5
, chk6
, chk7
, chk8
, chk9
, chk10
, l1
, rb1
, rb2
, rb3
, l2
, rb4
, rb5
, rb6
, rb7
, chk11
, btnpack
);
263 var icon1
= new qx
.ui
.basic
.Image("icon/32/error.png");
264 var warn1
= new qx
.ui
.basic
.Label("Do you want to delete<br/>all your personal data?");
272 var btn3
= new qx
.ui
.form
.Button("Yes", "icon/16/button-ok.png");
273 var btn4
= new qx
.ui
.form
.Button("No", "icon/16/button-cancel.png");
275 btn3
.addEventListener("execute", function(e
) {
280 btn4
.addEventListener("execute", function(e
) {
281 alert("Sorry, please click 'Yes'!");
284 btn3
.set({ bottom
: 10, right
: 10 });
285 btn4
.set({ bottom
: 10, left
: 10 });
287 wm2
.add(btn3
, btn4
, icon1
, warn1
);
291 // Icon & Color Themes
292 //qx.manager.object.ImageManager.getInstance().createThemeList(w3, 20, 248);
293 qx
.manager
.object
.ColorManager
.getInstance().createThemeList(w3
, 4, 58);
304 <div id=
"demoDescription">
305 <p>This is the qx.ui.window.Window widget. These should emulate the default look and behaviour of the application windows running under Microsoft Windows(TM).
</p>