summaryrefslogtreecommitdiff
path: root/swat/apps/qooxdoo-examples/example/ButtonView_2.html
diff options
context:
space:
mode:
authorDerrell Lipman <derrell@samba.org>2006-12-31 20:12:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:35:23 -0500
commitd1e09e2e6f9db62bbab84abb53e23ee73764178a (patch)
tree18e57f756611c9d3e10fb41bf7c09eeb795028dd /swat/apps/qooxdoo-examples/example/ButtonView_2.html
parent710dfce70ca9024d2f026518638bb193e914f4a0 (diff)
downloadsamba-d1e09e2e6f9db62bbab84abb53e23ee73764178a.tar.gz
samba-d1e09e2e6f9db62bbab84abb53e23ee73764178a.tar.bz2
samba-d1e09e2e6f9db62bbab84abb53e23ee73764178a.zip
r20446: rename swat directory to swat.obsolete; keeping it around since there is lots of useful info in it.
(This used to be commit 5f9f72a9cfab80561b23284001b67c4ea961757b)
Diffstat (limited to 'swat/apps/qooxdoo-examples/example/ButtonView_2.html')
-rw-r--r--swat/apps/qooxdoo-examples/example/ButtonView_2.html98
1 files changed, 0 insertions, 98 deletions
diff --git a/swat/apps/qooxdoo-examples/example/ButtonView_2.html b/swat/apps/qooxdoo-examples/example/ButtonView_2.html
deleted file mode 100644
index d7acf86cd5..0000000000
--- a/swat/apps/qooxdoo-examples/example/ButtonView_2.html
+++ /dev/null
@@ -1,98 +0,0 @@
-<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>Yet Another qx.ui.pageview.buttonview.ButtonView Example</p>
- </div>
-
- <script type="text/javascript">
- qx.core.Init.getInstance().defineMain(function()
- {
- var d = qx.ui.core.ClientDocument.getInstance();
-
- var bs = new qx.ui.pageview.buttonview.ButtonView;
- bs.set({ left: 20, top: 48, right: 335, bottom: 48 });
- bs.setBarPosition("left");
-
- var bsb1 = new qx.ui.pageview.buttonview.ButtonViewButton("Display", "icon/16/display.png");
- var bsb2 = new qx.ui.pageview.buttonview.ButtonViewButton("Organizer", "icon/16/organizer.png");
- var bsb3 = new qx.ui.pageview.buttonview.ButtonViewButton("Colorize", "icon/16/colors.png");
- var bsb4 = new qx.ui.pageview.buttonview.ButtonViewButton("Icons", "icon/16/icons.png");
- var bsb5 = new qx.ui.pageview.buttonview.ButtonViewButton("Paint", "icon/16/paint.png");
- var bsb6 = new qx.ui.pageview.buttonview.ButtonViewButton("Applications", "icon/16/run.png");
- var bsb7 = new qx.ui.pageview.buttonview.ButtonViewButton("System", "icon/16/control-center.png");
-
- bsb1.setChecked(true);
-
- bsb1.set({ iconPosition: "left", horizontalChildrenAlign: "left" });
- bsb2.set({ iconPosition: "left", horizontalChildrenAlign: "left" });
- bsb3.set({ iconPosition: "left", horizontalChildrenAlign: "left" });
- bsb4.set({ iconPosition: "left", horizontalChildrenAlign: "left" });
- bsb5.set({ iconPosition: "left", horizontalChildrenAlign: "left" });
- bsb6.set({ iconPosition: "left", horizontalChildrenAlign: "left" });
- bsb7.set({ iconPosition: "left", horizontalChildrenAlign: "left" });
-
- bs.getBar().add(bsb1, bsb2, bsb3, bsb4, bsb5, bsb6, bsb7);
-
- bs.getBar().setHorizontalChildrenAlign("center");
- bs.getBar().setVerticalChildrenAlign("bottom");
-
- var p1 = new qx.ui.pageview.buttonview.ButtonViewPage(bsb1);
- var p2 = new qx.ui.pageview.buttonview.ButtonViewPage(bsb2);
- var p3 = new qx.ui.pageview.buttonview.ButtonViewPage(bsb3);
- var p4 = new qx.ui.pageview.buttonview.ButtonViewPage(bsb4);
- var p5 = new qx.ui.pageview.buttonview.ButtonViewPage(bsb5);
- var p6 = new qx.ui.pageview.buttonview.ButtonViewPage(bsb6);
- var p7 = new qx.ui.pageview.buttonview.ButtonViewPage(bsb7);
-
- bs.getPane().add(p1, p2, p3, p4, p5, p6, p7);
-
- var f1 = new qx.ui.form.TextField("Display Input");
- var f2 = new qx.ui.form.TextField("Sunshine Input");
- var f3 = new qx.ui.form.TextField("Paint Input");
- var f4 = new qx.ui.form.TextField("Icons Input");
- var f5 = new qx.ui.form.TextField("Images Input");
- var f6 = new qx.ui.form.TextField("Applications Input");
- var f7 = new qx.ui.form.TextField("System Input");
-
- p1.add(f1);
- p2.add(f2);
- p3.add(f3);
- p4.add(f4);
- p5.add(f5);
- p6.add(f6);
- p7.add(f7);
-
- var r1 = new qx.ui.form.RadioButton("Top", "top");
- var r2 = new qx.ui.form.RadioButton("Right", "right");
- var r3 = new qx.ui.form.RadioButton("Bottom", "bottom");
- var r4 = new qx.ui.form.RadioButton("Left", "left", null, true);
-
- r1.setTop(50);
- r2.setTop(70);
- r3.setTop(90);
- r4.setTop(110);
-
- p1.add(r1, r2, r3, r4);
-
- var rm = new qx.manager.selection.RadioManager(null, [r1, r2, r3, r4]);
-
- rm.addEventListener("changeSelected", function(e) {
- bs.setBarPosition(e.getData().getValue());
- });
-
- d.add(bs);
- });
- </script>
-</body>
-</html>