Public Member Functions | Public Attributes

nsIDOMXULContainerElement Interface Reference

import "nsIDOMXULContainerElement.idl";

Inheritance diagram for nsIDOMXULContainerElement:
Collaboration diagram for nsIDOMXULContainerElement:

List of all members.

Public Member Functions

nsIDOMXULElement appendItem (in DOMString aLabel, in DOMString aValue)
 Creates an item for the given label and value and appends it to the container.
nsIDOMXULElement insertItemAt (in long aIndex, in DOMString aLabel, in DOMString aValue)
 Creates an item for the given label and value and inserts it into the container at the specified position.
nsIDOMXULElement removeItemAt (in long aIndex)
 Removes an item from the container.
long getIndexOfItem (in nsIDOMXULElement aItem)
 Returns the index of an item or -1 if the item is not in the container.
nsIDOMXULElement getItemAtIndex (in long aIndex)
 Returns the item at a given index or null if the item is not is the container.

Public Attributes

readonly attribute unsigned long itemCount
 Returns a count of items in the container.

Member Function Documentation

nsIDOMXULElement nsIDOMXULContainerElement::appendItem ( in DOMString  aLabel,
in DOMString  aValue 
)

Creates an item for the given label and value and appends it to the container.

Parameters:
aLabel - the label for the new item
aValue - the value of the new item
long nsIDOMXULContainerElement::getIndexOfItem ( in nsIDOMXULElement  aItem  ) 

Returns the index of an item or -1 if the item is not in the container.

Parameters:
aItem - the item to determine the index of
nsIDOMXULElement nsIDOMXULContainerElement::getItemAtIndex ( in long  aIndex  ) 

Returns the item at a given index or null if the item is not is the container.

Parameters:
aIndex - the index of the item to return
nsIDOMXULElement nsIDOMXULContainerElement::insertItemAt ( in long  aIndex,
in DOMString  aLabel,
in DOMString  aValue 
)

Creates an item for the given label and value and inserts it into the container at the specified position.

Parameters:
aIndex - the index where the new item will be inserted
aLabel - the label for the new item
aValue - the value of the new item
nsIDOMXULElement nsIDOMXULContainerElement::removeItemAt ( in long  aIndex  ) 

Removes an item from the container.

Parameters:
aIndex - index of the item to remove

Member Data Documentation

readonly attribute unsigned long nsIDOMXULContainerElement::itemCount

Returns a count of items in the container.


The documentation for this interface was generated from the following file: