From a45ea9069c51b6f90d55a2c40346c3ee9becc263 Mon Sep 17 00:00:00 2001
From: Derrell Lipman
Date: Tue, 6 Feb 2007 04:35:30 +0000
Subject: r21169: - Step 3: Upgrade qooxdoo release code with latest qooxdoo
svn's Table and TreeVirtual. The TreeVirtual that was in the release was a
very early pre-release, and had a number of problems and missing features.
This brings it up-to-date and provides what seems to be a pretty
well-working and highly useful widget. (This used to be commit
194880f1ffde7f01997c120136854acd145189e9)
---
.../sample/source/html/example/TreeVirtual_1.html | 84 +++
.../sample/source/html/example/TreeVirtual_2.html | 185 +++++++
.../sample/source/html/example/TreeVirtual_3.html | 222 ++++++++
.../sample/source/html/example/TreeVirtual_4.html | 135 +++++
.../sample/source/html/test/TreeVirtual_1.html | 66 ++-
.../sample/source/html/test/TreeVirtual_2.html | 9 +-
.../sample/source/html/test/TreeVirtual_3.html | 84 ---
.../sample/source/html/test/TreeVirtual_4.html | 186 -------
.../sample/source/html/test/TreeVirtual_5.html | 176 -------
.../sample/source/html/test/TreeVirtual_6.html | 135 -----
.../source/class/qx/theme/appearance/Classic.js | 11 +
.../framework/source/class/qx/ui/table/Table.js | 164 +++++-
.../source/class/qx/ui/table/TablePaneScroller.js | 79 ++-
.../qx/ui/treevirtual/DefaultDataCellRenderer.js | 4 +-
.../class/qx/ui/treevirtual/SelectionManager.js | 165 ++++++
.../ui/treevirtual/SimpleTreeDataCellRenderer.js | 95 ++--
.../class/qx/ui/treevirtual/SimpleTreeDataModel.js | 561 ++++++++++++++-------
.../source/class/qx/ui/treevirtual/TreeVirtual.js | 430 +++++++++++-----
.../frontend/framework/source/translation/C.po | 150 +++---
19 files changed, 1873 insertions(+), 1068 deletions(-)
create mode 100644 webapps/qooxdoo-0.6.5-sdk/frontend/application/sample/source/html/example/TreeVirtual_1.html
create mode 100644 webapps/qooxdoo-0.6.5-sdk/frontend/application/sample/source/html/example/TreeVirtual_2.html
create mode 100644 webapps/qooxdoo-0.6.5-sdk/frontend/application/sample/source/html/example/TreeVirtual_3.html
create mode 100644 webapps/qooxdoo-0.6.5-sdk/frontend/application/sample/source/html/example/TreeVirtual_4.html
delete mode 100644 webapps/qooxdoo-0.6.5-sdk/frontend/application/sample/source/html/test/TreeVirtual_3.html
delete mode 100644 webapps/qooxdoo-0.6.5-sdk/frontend/application/sample/source/html/test/TreeVirtual_4.html
delete mode 100644 webapps/qooxdoo-0.6.5-sdk/frontend/application/sample/source/html/test/TreeVirtual_5.html
delete mode 100644 webapps/qooxdoo-0.6.5-sdk/frontend/application/sample/source/html/test/TreeVirtual_6.html
create mode 100644 webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/ui/treevirtual/SelectionManager.js
(limited to 'webapps/qooxdoo-0.6.5-sdk')
diff --git a/webapps/qooxdoo-0.6.5-sdk/frontend/application/sample/source/html/example/TreeVirtual_1.html b/webapps/qooxdoo-0.6.5-sdk/frontend/application/sample/source/html/example/TreeVirtual_1.html
new file mode 100644
index 0000000000..b92df15d4f
--- /dev/null
+++ b/webapps/qooxdoo-0.6.5-sdk/frontend/application/sample/source/html/example/TreeVirtual_1.html
@@ -0,0 +1,84 @@
+
+
+
+ qooxdoo » Demo » Sample
+
+
+
+
+
+
+
+
+
Test large trees. This one adds a Spam branch with 3000 leaf nodes.
+
+
+
+
+
diff --git a/webapps/qooxdoo-0.6.5-sdk/frontend/application/sample/source/html/example/TreeVirtual_2.html b/webapps/qooxdoo-0.6.5-sdk/frontend/application/sample/source/html/example/TreeVirtual_2.html
new file mode 100644
index 0000000000..843de57477
--- /dev/null
+++ b/webapps/qooxdoo-0.6.5-sdk/frontend/application/sample/source/html/example/TreeVirtual_2.html
@@ -0,0 +1,185 @@
+
+
+
+ qooxdoo » Demo » Sample
+
+
+
+
+
+
+
+
+
Show use of events upon tree opening and closing, including adding
+ nodes dynamically upon tree open and removing the open/close button upon
+ tree open if the branch contains no children.
+
+ Allows controlling selection mode. Labels of selected items are
+ displayed.
+
+
+
+
+
+
diff --git a/webapps/qooxdoo-0.6.5-sdk/frontend/application/sample/source/html/example/TreeVirtual_3.html b/webapps/qooxdoo-0.6.5-sdk/frontend/application/sample/source/html/example/TreeVirtual_3.html
new file mode 100644
index 0000000000..70391adf89
--- /dev/null
+++ b/webapps/qooxdoo-0.6.5-sdk/frontend/application/sample/source/html/example/TreeVirtual_3.html
@@ -0,0 +1,222 @@
+
+
+
+ qooxdoo » Demo » Sample
+
+
+
+
+
+
+
+
+
+ Demonstrate use of multiple columns in a tree, and the use of the
+ getHierarchy() method to retrieve the entire tree path of a node.
+ Allows various options to be manipulated.
+
+
+
+
+
+
diff --git a/webapps/qooxdoo-0.6.5-sdk/frontend/application/sample/source/html/example/TreeVirtual_4.html b/webapps/qooxdoo-0.6.5-sdk/frontend/application/sample/source/html/example/TreeVirtual_4.html
new file mode 100644
index 0000000000..65b5b9d397
--- /dev/null
+++ b/webapps/qooxdoo-0.6.5-sdk/frontend/application/sample/source/html/example/TreeVirtual_4.html
@@ -0,0 +1,135 @@
+
+
+
+ qooxdoo » Demo » Sample
+
+
+
+
+
+
+
+
+
Demonstrate providing initially-selected tree nodes.
+
+
+
+
+
diff --git a/webapps/qooxdoo-0.6.5-sdk/frontend/application/sample/source/html/test/TreeVirtual_1.html b/webapps/qooxdoo-0.6.5-sdk/frontend/application/sample/source/html/test/TreeVirtual_1.html
index e419453600..089aa0f582 100644
--- a/webapps/qooxdoo-0.6.5-sdk/frontend/application/sample/source/html/test/TreeVirtual_1.html
+++ b/webapps/qooxdoo-0.6.5-sdk/frontend/application/sample/source/html/test/TreeVirtual_1.html
@@ -22,47 +22,45 @@
{
var d = qx.ui.core.ClientDocument.getInstance();
- // tree
- var tree = new qx.ui.treevirtual.TreeVirtual("Tree");
- with (tree)
- {
- set({
- left : 10,
- top : 30,
- width : 400,
- bottom : 30,
- border : qx.renderer.border.BorderPresets.getInstance().thinInset
- });
- setColumnWidth(0, 400);
- };
-
- d.add(tree);
-
- // tree data model
- var dataModel = tree.getDataModel();
- var te;
+ var horiz = new qx.ui.layout.HorizontalBoxLayout;
+
+ horiz.setPadding(10);
+ horiz.set({
+ left:20, right:10, height:"100%", spacing:20
+ });
- var te1 = dataModel.addBranch(null, "Desktop", true);
-
- dataModel.addBranch(te1, "Files", true);
+ var tree = new qx.ui.treevirtual.TreeVirtual(["Objects", "Date", "ID"]);
+ with (tree){
+ setHeight ("100%");
+ setWidth(900);
+ setColumnWidth(0, 400)
+ setColumnWidth(1, 200);
+ setColumnWidth(2, 50);
+ };
- te = dataModel.addBranch(te1, "Workspace", true);
- dataModel.addLeaf(te, "Windows (C:)");
- dataModel.addLeaf(te, "Documents (D:)");
+ var data_model = tree.getDataModel ();
- dataModel.addBranch(te1, "Network", true);
- dataModel.addBranch(te1, "Trash", true);
+ var object_folder =
+ data_model.addBranch (null,
+ "Test",
+ false);
- var te2 = dataModel.addBranch(null, "Inbox", true);
+ data_model.addLeaf (object_folder,
+ "Test") ;
+
+ data_model.setData();
- dataModel.addBranch(te2, "Presets", true);
- dataModel.addBranch(te2, "Sent", true);
- dataModel.addBranch(te2, "Trash", true);
- dataModel.addBranch(te2, "Data", true);
- dataModel.addBranch(te2, "Edit", true);
+ if (false)
+ {
+ d.add (tree);
+ }
+ else
+ {
+ horiz.add (tree);
+ d.add (horiz);
+ }
- dataModel.setData();
});
-
-
-
-
Test large trees. This one adds a Spam branch with 3000 leaf nodes.
-
-
-
-
diff --git a/webapps/qooxdoo-0.6.5-sdk/frontend/application/sample/source/html/test/TreeVirtual_2.html b/webapps/qooxdoo-0.6.5-sdk/frontend/application/sample/source/html/test/TreeVirtual_2.html
index 8c965f93de..7c44daf98b 100644
--- a/webapps/qooxdoo-0.6.5-sdk/frontend/application/sample/source/html/test/TreeVirtual_2.html
+++ b/webapps/qooxdoo-0.6.5-sdk/frontend/application/sample/source/html/test/TreeVirtual_2.html
@@ -45,7 +45,7 @@
var node = // the root node (not displayed)
{
- opened : true,
+ bOpened : true,
children : [ 1 ]
};
treeData.push(node);
@@ -56,7 +56,7 @@
parentNodeId : 0,
label : "My Root",
bSelected : false,
- opened : true,
+ bOpened : true,
icon : "icon/16/places/folder.png",
iconSelected : "icon/16/folder_open.png",
labelStyle : "background-color:red;color:white",
@@ -70,7 +70,8 @@
parentNodeId : 1,
label : "A sub-folder",
bSelected : false,
- opened : true,
+ bOpened : true,
+ bHideOpenClose: true,
icon : "icon/16/places/folder.png",
iconSelected : "icon/16/folder_open.png",
cellStyle : "background-color:cyan",
@@ -84,7 +85,7 @@
parentNodeId : 2,
label : "Third-level leaf",
bSelected : false,
- opened : false,
+ bOpened : false,
icon : "icon/16/actions/document-new.png",
iconSelected : "icon/16/actions/document-open.png",
children : [ ]
diff --git a/webapps/qooxdoo-0.6.5-sdk/frontend/application/sample/source/html/test/TreeVirtual_3.html b/webapps/qooxdoo-0.6.5-sdk/frontend/application/sample/source/html/test/TreeVirtual_3.html
deleted file mode 100644
index b92df15d4f..0000000000
--- a/webapps/qooxdoo-0.6.5-sdk/frontend/application/sample/source/html/test/TreeVirtual_3.html
+++ /dev/null
@@ -1,84 +0,0 @@
-
-
-
-
qooxdoo » Demo » Sample
-
-
-
-
-
-