XULTreeView Prototype

An implemention of nsITreeView for a tree whose elements have multiple levels of children.

Syntax

var object = new XULTreeView(share);

Arguments

ArgumentSummary
share An otherwise empty object to store cache data.

Remarks

Code using XULTreeView can override getRowProperties, getColumnProperties, getCellProperties, etc., as needed.

Members

MemberSummary
canDropInternal.
centerLine scroll the line specified by line to the center of the tree
cycleCellInternal.
cycleHeaderInternal.
dropInternal.
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.
getCellPropertiesInternal.
getCellTextInternal.
getCellValueInternal.
getColumnPropertiesInternal.
getImageSrcInternal.
getLevelInternal.
getParentIndexInternal.
getProgressModeInternal.
getRowPropertiesInternal.
hasNextSiblingInternal.
isContainerInternal.
isContainerEmptyInternal.
isContainerOpenInternal.
isEditableInternal.
isSelectableInternal.
isSeparatorInternal.
isSortedInternal.
onRouteBlurInternal.
onRouteDblClickInternal.
onRouteFocusInternal.
onRouteKeyPressInternal.
performActionInternal.
performActionOnCellInternal.
performActionOnRowInternal.
restoreBranchState
saveBranchState
selectionChangedInternal.
setCellTextInternal.
setCellValueInternal.
setTreeInternal.
thaw Reflect any changes to the tree content since the last freeze.
toggleOpenStateInternal.

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;
}