WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIDocShellTreeNode

IID:37f1ab73-f224-44b1-82f0-d2834ab1cec0
Inherits From:nsISupports

The nsIDocShellTreeNode supplies the methods for interacting with children of a docshell. These are essentially the methods that turn a single docshell into a docshell tree.

This interface is implemented by the following components:


Properties

readonly PRInt32 childCount


Methods

void addChild ( nsIDocShellTreeItem child ) nsIDocShellTreeItem findChildWithName ( PRUnichar* name , PRBool recurse , PRBool sameType , nsIDocShellTreeItem requestor , nsIDocShellTreeItem originalRequestor ) nsIDocShellTreeItem getChildAt ( PRInt32 index ) void removeChild ( nsIDocShellTreeItem child )

void addChild ( nsIDocShellTreeItem child )

Arguments:
child

nsIDocShellTreeItem findChildWithName ( PRUnichar* name , PRBool recurse , PRBool sameType , nsIDocShellTreeItem requestor , nsIDocShellTreeItem originalRequestor )

Arguments:
name
recurse
sameType
requestor
originalRequestor

nsIDocShellTreeItem getChildAt ( PRInt32 index )

Return the child at the index requested. This is 0-based.

Arguments:
index

void removeChild ( nsIDocShellTreeItem child )

Arguments:
child

Reference documentation is generated from Mozilla's source.