nsIDOMXULContainerElement
| IID: | edfeaf37-3b24-4466-af7a-b3851044f1c1 |
| Inherits From: | nsIDOMXULElement |
Properties
readonly PRUint32 itemCount
Returns a count of items in the container.
readonly nsIDOMXULElement parentContainer
Returns the parent container if any.
Methods
nsIDOMXULElement appendItem ( DOMString label , DOMString value )
PRInt32 getIndexOfItem ( nsIDOMXULElement item )
nsIDOMXULElement getItemAtIndex ( PRInt32 index )
nsIDOMXULElement insertItemAt ( PRInt32 index , DOMString label , DOMString value )
nsIDOMXULElement removeItemAt ( PRInt32 index )
nsIDOMXULElement appendItem ( DOMString label , DOMString value )
Creates an item for the given label and value and appends it to the container.
- Arguments:
- label: - the label for the new item
- value: - the value of the new item
PRInt32 getIndexOfItem ( nsIDOMXULElement item )
Returns the index of an item or -1 if the item is not in the container.
- Arguments:
- item: - the item to determine the index of
nsIDOMXULElement getItemAtIndex ( PRInt32 index )
Returns the item at a given index or null if the item is not is the container.
- Arguments:
- index: - the index of the item to return
nsIDOMXULElement insertItemAt ( PRInt32 index , DOMString label , DOMString value )
Creates an item for the given label and value and inserts it into the container at the specified position.
- Arguments:
- index: - the index where the new item will be inserted
- label: - the label for the new item
- value: - the value of the new item
nsIDOMXULElement removeItemAt ( PRInt32 index )
Removes an item from the container.
- Arguments:
- index: - index of the item to remove
Reference documentation is generated from Mozilla's source.
