summaryrefslogtreecommitdiff
path: root/webapps/qooxdoo-0.6.5-sdk/frontend/application/sample/source/html/test/Tree_7.html
diff options
context:
space:
mode:
Diffstat (limited to 'webapps/qooxdoo-0.6.5-sdk/frontend/application/sample/source/html/test/Tree_7.html')
-rw-r--r--webapps/qooxdoo-0.6.5-sdk/frontend/application/sample/source/html/test/Tree_7.html233
1 files changed, 0 insertions, 233 deletions
diff --git a/webapps/qooxdoo-0.6.5-sdk/frontend/application/sample/source/html/test/Tree_7.html b/webapps/qooxdoo-0.6.5-sdk/frontend/application/sample/source/html/test/Tree_7.html
deleted file mode 100644
index 057160a268..0000000000
--- a/webapps/qooxdoo-0.6.5-sdk/frontend/application/sample/source/html/test/Tree_7.html
+++ /dev/null
@@ -1,233 +0,0 @@
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>qooxdoo &raquo; Demo &raquo; Sample</title>
- <link type="text/css" rel="stylesheet" href="../../css/layout.css"/>
- <!--[if IE]>
- <link type="text/css" rel="stylesheet" href="../../css/layout_ie.css"/>
- <![endif]-->
- <script type="text/javascript" src="../../script/sample.js"></script>
-</head>
-<body>
- <script type="text/javascript" src="../../script/layout.js"></script>
-
- <div id="demoDescription">
- <p>Trying dynamic Folder and File creation and deletion.</p>
- </div>
-
- <script type="text/javascript">
-
- function createItems (t) {
- var te1 = new qx.ui.tree.TreeFolder("Desktop");
- t.add(te1);
-
- desktop = te1;
-
- var te1_1 = new qx.ui.tree.TreeFolder("Files");
- var te1_2 = new qx.ui.tree.TreeFolder("Workspace");
- var te1_3 = new qx.ui.tree.TreeFolder("Network");
- var te1_4 = new qx.ui.tree.TreeFolder("Trash");
-
- te1.add(te1_1, te1_2, te1_3, te1_4);
-
-
- var te1_2_1 = new qx.ui.tree.TreeFile("Windows (C:)");
- var te1_2_2 = new qx.ui.tree.TreeFile("Documents (D:)");
-
- te1_2.add(te1_2_1, te1_2_2);
-
- arbeitsplatz = te1_2;
-
-
- var te2 = new qx.ui.tree.TreeFolder("Inbox");
- posteingang = te2;
-
- var te2_1 = new qx.ui.tree.TreeFolder("Presets");
- var te2_2 = new qx.ui.tree.TreeFolder("Sent");
- var te2_3 = new qx.ui.tree.TreeFolder("Trash");
- var te2_4 = new qx.ui.tree.TreeFolder("Data");
- var te2_5 = new qx.ui.tree.TreeFolder("Edit");
-
- t.add(te2);
- }
-
- qx.core.Init.getInstance().defineMain(function()
- {
- var t = new qx.ui.tree.Tree("Root");
-
- 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);
-
-
-
- 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) {
- if(e.getData()[0]) {
- tCurrentInput.setValue(e.getData()[0]._labelObject.getHtml());
- this.debug('classname: ' + e.getData()[0].classname);
- }
- else {
- tCurrentInput.setValue('');
- }
- });
-
-
-
- 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 vShowItems = new qx.ui.form.Button("Show Items");
-
- with(vShowItems) {
- setTop(100);
- setLeft(0);
- };
-
- commandFrame.add(vShowItems);
-
- vShowItems.addEventListener("execute", function(e) {
- alert(t.getItems());
- });
-
-
- var vDestroyTreeContent = new qx.ui.form.Button("Destroy tree content");
-
- with(vDestroyTreeContent) {
- setTop(180);
- setLeft(0);
- };
-
- commandFrame.add(vDestroyTreeContent);
-
- vDestroyTreeContent.addEventListener("execute", function(e) {
- t.destroyContent();
- });
-
-
- var vCreateItems = new qx.ui.form.Button("Create items");
-
- with(vCreateItems) {
- setTop(140);
- setLeft(0);
- };
-
- commandFrame.add(vCreateItems);
-
- vCreateItems.addEventListener("execute", function(e) {
- createItems(t);
- });
-
- var vDestroySelectedItem = new qx.ui.form.Button("Destroy selected item");
-
- with(vDestroySelectedItem) {
- setTop(220);
- setLeft(0);
- };
-
- commandFrame.add(vDestroySelectedItem);
-
- vDestroySelectedItem.addEventListener("execute", function(e) {
- var vItem = t.getManager().getSelectedItem();
- if(vItem) {
- vItem.destroy();
- }
- });
-
-
- var vDestroyContenSelectedItem = new qx.ui.form.Button("Destroy content of selected item");
-
- with(vDestroyContenSelectedItem) {
- setTop(260);
- setLeft(0);
- };
-
- commandFrame.add(vDestroyContenSelectedItem);
-
- vDestroyContenSelectedItem.addEventListener("execute", function(e) {
- var vItem = t.getManager().getSelectedItem();
- if(vItem && vItem instanceof qx.ui.tree.TreeFolder) {
- vItem.destroyContent();
- }
- });
-
- });
- </script>
-</body>
-</html>