nsIXULSortService

IID:BFD05261-834C-11d2-8EAC-00805F29F371
Inherits From:nsISupports

A service used to sort the contents of a XUL widget.

This interface is implemented by the following components:


Methods

[noscript] void insertContainerNode ( nsIRDFCompositeDataSource db , nsRDFSortState* sortStatePtr , nsIContent root , nsIContent trueParent , nsIContent container , nsIContent node , PRBool notify ) void sort ( nsIDOMNode node , AString sortResource , AString sortDirection )

void insertContainerNode ( nsIRDFCompositeDataSource db , nsRDFSortState* sortStatePtr , nsIContent root , nsIContent trueParent , nsIContent container , nsIContent node , PRBool notify )

Used internally for insertion sorting.

Arguments:
db
sortStatePtr
root
trueParent
container
node
notify

void sort ( nsIDOMNode node , AString sortResource , AString sortDirection )

Sort the contents of the widget containing aNode using aSortResource as the comparison key, and aSortDirection as the direction.

Arguments:
node: A node in the XUL widget whose children are to be sorted. sort will traverse upwards to find the root node at which to begin the actualy sorting. For optimal results, pass in the root of the widget.
sortResource: The RDF resource to be used as the comparison key.
sortDirection: May be either natural to return the contents to their natural (unsorted) order, ascending to sort the contents in ascending order, or descending to sort the contents in descending order.

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com