XULTreeView Prototype
An implemention of nsITreeView for a tree whose elements have multiple levels of children.
Syntax
var object = new XULTreeView(share);
Arguments
Argument | Summary |
---|---|
share | An otherwise empty object to store cache data. |
Remarks
Code using XULTreeView can override getRowProperties, getColumnProperties, getCellProperties, etc., as needed.
Members
Member | Summary |
---|---|
canDrop | Internal. |
centerLine | scroll the line specified by line to the center of the tree |
cycleCell | Internal. |
cycleHeader | Internal. |
drop | Internal. |
freeze | Changes to the tree contents will not cause the tree to be invalidated until |thaw()| is called. All changes will be pooled into a single invalidate call. |
getCellProperties | Internal. |
getCellText | Internal. |
getCellValue | Internal. |
getColumnProperties | Internal. |
getImageSrc | Internal. |
getLevel | Internal. |
getParentIndex | Internal. |
getProgressMode | Internal. |
getRowProperties | Internal. |
hasNextSibling | Internal. |
isContainer | Internal. |
isContainerEmpty | Internal. |
isContainerOpen | Internal. |
isEditable | Internal. |
isSelectable | Internal. |
isSeparator | Internal. |
isSorted | Internal. |
onRouteBlur | Internal. |
onRouteDblClick | Internal. |
onRouteFocus | Internal. |
onRouteKeyPress | Internal. |
performAction | Internal. |
performActionOnCell | Internal. |
performActionOnRow | Internal. |
restoreBranchState | |
saveBranchState | |
selectionChanged | Internal. |
setCellText | Internal. |
setCellValue | Internal. |
setTree | Internal. |
thaw | Reflect any changes to the tree content since the last freeze. |
toggleOpenState | Internal. |
See Also
Source Code
function XULTreeView(share)
{
if (!share)
share = new Object();
this.childData = new XTRootRecord(this, share);
this.childData.invalidateCache();
this.tree = null;
this.share = share;
this.frozen = 0;
}