summaryrefslogtreecommitdiff
path: root/webapps/qooxdoo-0.6.5-sdk/frontend/application/sample/source/html/test/TreeVirtual_1.html
diff options
context:
space:
mode:
Diffstat (limited to 'webapps/qooxdoo-0.6.5-sdk/frontend/application/sample/source/html/test/TreeVirtual_1.html')
-rw-r--r--webapps/qooxdoo-0.6.5-sdk/frontend/application/sample/source/html/test/TreeVirtual_1.html66
1 files changed, 32 insertions, 34 deletions
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();
});
</script>
</body>