nsIDocShellTreeItem

The nsIDocShellTreeItem supplies the methods that are required of any item
that wishes to be able to live within the docshell tree either as a middle
node or a leaf.

Methods

nameEquals(name)

Compares the provided name against the item’s name and
returns the appropriate result.

Returns

PR_TRUE if names match; PR_FALSE otherwise.

ItemType()

findItemWithName(name, aRequestor, aOriginalRequestor)

setTreeOwner(treeOwner)

addChild(child)

removeChild(child)

getChildAt(index)

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

@throws NS_ERROR_UNEXPECTED if the index is out of range

findChildWithName(aName, aRecurse, aSameType, aRequestor, aOriginalRequestor)

getDocument()

getWindow()

Attributes

name

itemType

parent

sameTypeParent

rootTreeItem

sameTypeRootTreeItem

treeOwner

childCount

Constants

typeChrome

typeContent

typeContentWrapper

typeChromeWrapper

typeAll