Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Private Attributes
nsChildContentList Class Reference

Class that implements the nsIDOMNodeList interface (a list of children of the content), by holding a reference to the content and delegating GetLength and Item to its existing child list. More...

#include <nsGenericElement.h>

Inheritance diagram for nsChildContentList:
Inheritance graph
[legend]
Collaboration diagram for nsChildContentList:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsChildContentList (nsIContent *aContent)
virtual ~nsChildContentList ()
NS_DECL_NSIDOMNODELIST void DropReference ()
 Drop the reference to the content.
NS_DECL_ISUPPORTS NS_IMETHOD GetLength (PRUint32 *aLength)=0
NS_IMETHOD Item (PRUint32 aIndex, nsIDOMNode **aReturn)=0
nsIDOMNode item (in unsigned long index)

Public Attributes

readonly attribute unsigned long length

Private Attributes

nsIContentmContent
 The content whose children make up the list (weak reference)

Detailed Description

Class that implements the nsIDOMNodeList interface (a list of children of the content), by holding a reference to the content and delegating GetLength and Item to its existing child list.

See also:
nsIDOMNodeList

Definition at line 123 of file nsGenericElement.h.


Constructor & Destructor Documentation

Parameters:
aContentthe content whose children will make up the list

Definition at line 176 of file nsGenericElement.cpp.

{
  // This reference is not reference-counted. The content
  // object tells us when its about to go away.
  mContent = aContent;
}

Definition at line 183 of file nsGenericElement.cpp.

{
}

Member Function Documentation

Drop the reference to the content.

Definition at line 215 of file nsGenericElement.cpp.

NS_DECL_ISUPPORTS NS_IMETHOD nsGenericDOMNodeList::GetLength ( PRUint32 aLength) [pure virtual, inherited]
nsIDOMNode nsIDOMNodeList::item ( in unsigned long  index) [inherited]

Here is the caller graph for this function:

NS_IMETHOD nsGenericDOMNodeList::Item ( PRUint32  aIndex,
nsIDOMNode **  aReturn 
) [pure virtual, inherited]

Member Data Documentation

readonly attribute unsigned long nsIDOMNodeList::length [inherited]

Definition at line 58 of file nsIDOMNodeList.idl.

The content whose children make up the list (weak reference)

Definition at line 140 of file nsGenericElement.h.


The documentation for this class was generated from the following files: