tree-utils.js |
An implemention of |nsITreeView| for a tree whose elements have no children.
Code using BasicOView can override |getRowProperties|, |getColumnProperties|,
|getCellProperties|, etc., as needed.
Code using |BasicOView| will need to make the appropriate |myTree.tree
.invalidate| calls when |myTree.data| changes.
@syntax
var myTree = new BasicOView()
myTree.setColumnNames(["col 1", "col 2"]);
myTree.data = [["row 1, col 1", "row 1, col 2"],
["row 2, col 1", "row 2, col 2"]];
treeBoxObject.view = myTree;
|
42597 |