This commit is contained in:
David Norton 2006-03-17 03:45:30 +00:00
parent 3dd8351478
commit 4d4b7cf47e

View file

@ -1,10 +1,33 @@
var treeView = {
rowCount : 100,
getCellText : function(row,column){
if (column.id == "title_column") return "Row "+row;
else return "February 18";
treebox: null,
dataObjects: null,
get rowCount() { return this.dataObjects.length; },
getCellText: function(row,column){
obj = this.dataObjects[row];
if(column.id == "title_column")
{
return obj.getField("title");
}
else if(column.id == "creator_column")
{
return obj.getField("firstCreator");
}
else
{
return obj.getField("source");
}
},
setTree: function(treebox){
this.treebox = treebox;
this.dataObjects = Scholar_Objects.getAll();
//Dan S: Check out the debug output created by this
for(var i = 0; i < this.dataObjects.length; i++)
Scholar.debug(Scholar.varDump(this.dataObjects[i]),5);
},
setTree: function(treebox){ this.treebox = treebox; },
isContainer: function(row){ return false; },
isSeparator: function(row){ return false; },
isSorted: function(){ return false; },