From f2e72fc30df7729a4c0dd052d8ce50e81a726451 Mon Sep 17 00:00:00 2001 From: "hyatt%netscape.com" Date: Thu, 1 Jun 2000 01:49:14 +0000 Subject: [PATCH] New grid tree bindings. git-svn-id: svn://10.0.0.236/trunk@71221 18797224-902f-48f8-a5cc-f745e15eee43 --- .../global/resources/content/treeBindings.xml | 152 ++++++++++++++++-- mozilla/xpfe/global/resources/content/xul.css | 6 +- 2 files changed, 139 insertions(+), 19 deletions(-) diff --git a/mozilla/xpfe/global/resources/content/treeBindings.xml b/mozilla/xpfe/global/resources/content/treeBindings.xml index 1145c8f0634..dcc6a207a66 100644 --- a/mozilla/xpfe/global/resources/content/treeBindings.xml +++ b/mozilla/xpfe/global/resources/content/treeBindings.xml @@ -6,12 +6,107 @@ xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> - + + + + + + + + return this.treeBoxObject.getNextItem(startItem, delta); + + + + + + + return this.treeBoxObject.getPreviousItem(startItem, delta); + + + + + + return this.treeBoxObject.getIndexOfItem(item); + + + + + + return this.treeBoxObject.getItemAtIndex(index); + + + + + + return this.treeBoxObject.ensureIndexIsVisible(index); + + + + + + return this.treeBoxObject.scrollToIndex(index); + + + + + + + + + + + + + + + + + + + + + + + @@ -30,12 +125,7 @@ @@ -43,18 +133,52 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/mozilla/xpfe/global/resources/content/xul.css b/mozilla/xpfe/global/resources/content/xul.css index fd9d10607a9..40d6a3934f1 100644 --- a/mozilla/xpfe/global/resources/content/xul.css +++ b/mozilla/xpfe/global/resources/content/xul.css @@ -208,13 +208,8 @@ tree { height: 200px; min-width: 0px; min-height: 0px; -} - -/* -tree { behavior: url("chrome://global/content/treeBindings.xml#tree"); } -*/ tree > treechildren { behavior: url("chrome://global/content/treeBindings.xml#treerows"); @@ -222,6 +217,7 @@ tree > treechildren { treeitem { display: table-row-group; + behavior: url("chrome://global/content/treeBindings.xml#treeitem"); } treerow {