summaryrefslogtreecommitdiff
path: root/swat.obsolete/apps/qooxdoo-examples/example/TreeFullControl_4.html
diff options
context:
space:
mode:
Diffstat (limited to 'swat.obsolete/apps/qooxdoo-examples/example/TreeFullControl_4.html')
-rw-r--r--swat.obsolete/apps/qooxdoo-examples/example/TreeFullControl_4.html384
1 files changed, 0 insertions, 384 deletions
diff --git a/swat.obsolete/apps/qooxdoo-examples/example/TreeFullControl_4.html b/swat.obsolete/apps/qooxdoo-examples/example/TreeFullControl_4.html
deleted file mode 100644
index b3c701f01f..0000000000
--- a/swat.obsolete/apps/qooxdoo-examples/example/TreeFullControl_4.html
+++ /dev/null
@@ -1,384 +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>Shows a tree and allows playing with the settings of the Tree
- properties <i>hideNode</i> and <i>rootOpenClose</i>. Also demonstrates
- manipulating display (or not) of tree lines at specific indentation
- levels, using the <i>excludeSpecificTreeLines</i> property.</p>
-
- </div>
-
- <script type="text/javascript">
- qx.core.Init.getInstance().defineMain(function()
- {
- var trs = qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("Root");
- var t = new qx.ui.treefullcontrol.Tree(trs);
-
- with(t)
- {
- setBackgroundColor(255);
- setBorder(qx.renderer.border.BorderPresets.getInstance().inset);
- setOverflow("scrollY");
-
- setHeight(null);
- setTop(48);
- setLeft(20);
- setWidth(200);
- setBottom(48);
- };
-
- qx.ui.core.ClientDocument.getInstance().add(t);
- // One icon for selected and one for unselected states
- trs = qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("Desktop", "icon/16/desktop.png", "icon/16/dictionary.png");
- var te1 = new qx.ui.treefullcontrol.TreeFolder(trs);
- t.add(te1);
-
- desktop = te1;
-
- trs = qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("Files");
- var te1_1 = new qx.ui.treefullcontrol.TreeFolder(trs);
- trs = qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("Workspace");
- var te1_2 = new qx.ui.treefullcontrol.TreeFolder(trs);
- trs = qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("Network");
- var te1_3 = new qx.ui.treefullcontrol.TreeFolder(trs);
- trs = qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("Trash");
- var te1_4 = new qx.ui.treefullcontrol.TreeFolder(trs);
-
- te1.add(te1_1, te1_2, te1_3, te1_4);
-
- // One icon specified, and used for both selected unselected states
- trs = qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("Windows (C:)", "icon/16/harddrive.png");
- var te1_2_1 = new qx.ui.treefullcontrol.TreeFile(trs);
- trs = qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("Documents (D:)", "icon/16/harddrive.png");
- var te1_2_2 = new qx.ui.treefullcontrol.TreeFile(trs);
-
- te1_2.add(te1_2_1, te1_2_2);
-
- arbeitsplatz = te1_2;
-
-
- trs = qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("Inbox");
- var te2 = new qx.ui.treefullcontrol.TreeFolder(trs);
- posteingang = te2;
-
- trs = qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("Presets");
- var te2_1 = new qx.ui.treefullcontrol.TreeFolder(trs);
- trs = qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("Sent");
- var te2_2 = new qx.ui.treefullcontrol.TreeFolder(trs);
- trs = qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("Trash", "icon/16/trash.png");
- var te2_3 = new qx.ui.treefullcontrol.TreeFolder(trs);
- trs = qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("Data");
- var te2_4 = new qx.ui.treefullcontrol.TreeFolder(trs);
- trs = qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("Edit");
- var te2_5 = new qx.ui.treefullcontrol.TreeFolder(trs);
-
- editieren = te2_5;
-
- trs = qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("Chat");
- var te2_5_1 = new qx.ui.treefullcontrol.TreeFolder(trs);
- trs = qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("Pustefix");
- var te2_5_2 = new qx.ui.treefullcontrol.TreeFolder(trs);
- trs = qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("TINC");
- var te2_5_3 = new qx.ui.treefullcontrol.TreeFolder(trs);
-
- trs = qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("Announce");
- var te2_5_3_1 = new qx.ui.treefullcontrol.TreeFolder(trs);
- trs = qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("Devel");
- var te2_5_3_2 = new qx.ui.treefullcontrol.TreeFolder(trs);
-
- te2_5_3.add(te2_5_3_1, te2_5_3_2);
-
- te2_5.add(te2_5_1, te2_5_2, te2_5_3);
-
- trs = qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("Lists");
- var te2_6 = new qx.ui.treefullcontrol.TreeFolder(trs);
-
- trs = qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("Relations");
- var te2_6_1 = new qx.ui.treefullcontrol.TreeFolder(trs);
- trs = qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("Company");
- var te2_6_2 = new qx.ui.treefullcontrol.TreeFolder(trs);
- trs = qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("Questions");
- var te2_6_3 = new qx.ui.treefullcontrol.TreeFolder(trs);
- trs = qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("Internal");
- var te2_6_4 = new qx.ui.treefullcontrol.TreeFolder(trs);
- trs = qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("Products");
- var te2_6_5 = new qx.ui.treefullcontrol.TreeFolder(trs);
- trs = qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("Press");
- var te2_6_6 = new qx.ui.treefullcontrol.TreeFolder(trs);
- trs = qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("Development");
- var te2_6_7 = new qx.ui.treefullcontrol.TreeFolder(trs);
- trs = qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("Competition");
- var te2_6_8 = new qx.ui.treefullcontrol.TreeFolder(trs);
-
- te2_6.add(te2_6_1, te2_6_2, te2_6_3, te2_6_4, te2_6_5, te2_6_6, te2_6_7, te2_6_8);
-
- trs = qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("Personal");
- var te2_7 = new qx.ui.treefullcontrol.TreeFolder(trs);
-
- trs = qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("Bugs");
- var te2_7_1 = new qx.ui.treefullcontrol.TreeFolder(trs);
- trs = qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("Family");
- var te2_7_2 = new qx.ui.treefullcontrol.TreeFolder(trs);
- trs = qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("Projects");
- var te2_7_3 = new qx.ui.treefullcontrol.TreeFolder(trs);
- trs = qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("Holiday");
- var te2_7_4 = new qx.ui.treefullcontrol.TreeFolder(trs);
-
- te2_7.add(te2_7_1, te2_7_2, te2_7_3, te2_7_4);
-
- trs = qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("Big");
- var te2_8 = new qx.ui.treefullcontrol.TreeFolder(trs);
-
- for (var i=0;i<50; i++) {
- trs = qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("Item " + i);
- te2_8.add(new qx.ui.treefullcontrol.TreeFolder(trs));
- };
-
- trs = qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("Spam");
- var te2_9 = new qx.ui.treefullcontrol.TreeFolder(trs);
- spam = te2_9;
-
- te2.add(te2_1, te2_2, te2_3, te2_4, te2_5, te2_6, te2_7, te2_8, te2_9);
-
- t.add(te2);
- qx.ui.core.ClientDocument.getInstance().add(t);
-
-
-
-
-
-
- var commandFrame = new qx.ui.groupbox.GroupBox("Control");
-
- with(commandFrame)
- {
- setTop(48);
- setLeft(250);
-
- setWidth("auto");
- setHeight("auto");
- };
-
- qx.ui.core.ClientDocument.getInstance().add(commandFrame);
-
-
-
-
- var tCurrentLabel = new qx.ui.basic.Atom("Current Folder: ");
-
- with(tCurrentLabel)
- {
- setLeft(0);
- setTop(0);
- };
-
- commandFrame.add(tCurrentLabel);
-
-
-
- var tCurrentInput = new qx.ui.form.TextField;
-
- with(tCurrentInput)
- {
- setLeft(0);
- setRight(0);
- setTop(20);
-
- setReadOnly(true);
- };
-
- commandFrame.add(tCurrentInput);
-
- t.getManager().addEventListener("changeSelection", function(e) {
- tCurrentInput.setValue(e.getData()[0]._labelObject.getHtml());
- });
-
-
-
- var tDoubleClick = new qx.ui.form.CheckBox("Use double click?");
-
- with(tDoubleClick) {
- setTop(60);
- setLeft(0);
- };
-
- commandFrame.add(tDoubleClick);
-
- tDoubleClick.addEventListener("changeChecked", function(e) { t.setUseDoubleClick(e.getData()); });
-
-
-
-
- var tTreeLines = new qx.ui.form.CheckBox("Use tree lines?");
-
- with(tTreeLines) {
- setTop(80);
- setLeft(0);
- setChecked(true);
- };
-
- commandFrame.add(tTreeLines);
-
- tTreeLines.addEventListener("changeChecked", function(e) { t.setUseTreeLines(e.getData()); });
-
-
- var tHideNode = new qx.ui.form.CheckBox("Hide the root node?");
-
- with(tHideNode) {
- setTop(100);
- setLeft(0);
- setChecked(false);
- };
-
- commandFrame.add(tHideNode);
-
- tHideNode.addEventListener("changeChecked", function(e) { t.setHideNode(e.getData()); });
-
- var tIncludeRootOpenClose =
- new qx.ui.form.CheckBox("Include root open/close button?");
-
- with(tIncludeRootOpenClose) {
- setTop(120);
- setLeft(0);
- setChecked(true);
- };
-
- commandFrame.add(tIncludeRootOpenClose);
-
- tIncludeRootOpenClose.addEventListener("changeChecked", function(e) { t.setRootOpenClose(e.getData()); });
-
- tExcludeTreeLines0 =
- new qx.ui.form.CheckBox("Exclude tree lines at level 0?");
-
- with(tExcludeTreeLines0) {
- setTop(140);
- setLeft(0);
- setChecked(false);
- };
-
- commandFrame.add(tExcludeTreeLines0);
-
- tExcludeTreeLines0.addEventListener(
- "changeChecked",
- function(e)
- {
- var excl = t.getExcludeSpecificTreeLines();
- if (e.getData()) {
- excl[0] = true;
- } else {
- delete(excl[0]);
- }
- t.setExcludeSpecificTreeLines(excl);
- });
-
- tExcludeTreeLines1 =
- new qx.ui.form.CheckBox("Exclude tree lines at level 1?");
-
- with(tExcludeTreeLines1) {
- setTop(160);
- setLeft(0);
- setChecked(false);
- };
-
- commandFrame.add(tExcludeTreeLines1);
-
- tExcludeTreeLines1.addEventListener(
- "changeChecked",
- function(e)
- {
- var excl = t.getExcludeSpecificTreeLines();
- if (e.getData()) {
- excl[1] = true;
- } else {
- delete(excl[1]);
- }
- t.setExcludeSpecificTreeLines(excl);
- });
-
- tExcludeTreeLines2 =
- new qx.ui.form.CheckBox("Exclude tree lines at level 2?");
-
- with(tExcludeTreeLines2) {
- setTop(180);
- setLeft(0);
- setChecked(false);
- };
-
- commandFrame.add(tExcludeTreeLines2);
-
- tExcludeTreeLines2.addEventListener(
- "changeChecked",
- function(e)
- {
- var excl = t.getExcludeSpecificTreeLines();
- if (e.getData()) {
- excl[2] = true;
- } else {
- delete(excl[2]);
- }
- t.setExcludeSpecificTreeLines(excl);
- });
-
- tExcludeTreeLines3 =
- new qx.ui.form.CheckBox("Exclude tree lines at level 3?");
-
- with(tExcludeTreeLines3) {
- setTop(200);
- setLeft(0);
- setChecked(false);
- };
-
- commandFrame.add(tExcludeTreeLines3);
-
- tExcludeTreeLines3.addEventListener(
- "changeChecked",
- function(e)
- {
- var excl = t.getExcludeSpecificTreeLines();
- if (e.getData()) {
- excl[3] = true;
- } else {
- delete(excl[3]);
- }
- t.setExcludeSpecificTreeLines(excl);
- });
-
- tExcludeTreeLines4 =
- new qx.ui.form.CheckBox("Exclude tree lines at level 4?");
-
- with(tExcludeTreeLines4) {
- setTop(220);
- setLeft(0);
- setChecked(false);
- };
-
- commandFrame.add(tExcludeTreeLines4);
-
- tExcludeTreeLines4.addEventListener(
- "changeChecked",
- function(e)
- {
- var excl = t.getExcludeSpecificTreeLines();
- if (e.getData()) {
- excl[4] = true;
- } else {
- delete(excl[4]);
- }
- t.setExcludeSpecificTreeLines(excl);
- });
-
- });
- </script>
-</body>
-</html>