This commit is contained in:
parent
3dd8351478
commit
4d4b7cf47e
1 changed files with 28 additions and 5 deletions
|
@ -1,10 +1,33 @@
|
||||||
var treeView = {
|
var treeView = {
|
||||||
rowCount : 100,
|
treebox: null,
|
||||||
getCellText : function(row,column){
|
dataObjects: null,
|
||||||
if (column.id == "title_column") return "Row "+row;
|
|
||||||
else return "February 18";
|
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; },
|
isContainer: function(row){ return false; },
|
||||||
isSeparator: function(row){ return false; },
|
isSeparator: function(row){ return false; },
|
||||||
isSorted: function(){ return false; },
|
isSorted: function(){ return false; },
|
||||||
|
|
Loading…
Reference in a new issue