WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

@mozilla.org/xul/xul-tree-builder;1

This component implements the following interfaces:

Constants

PRInt16 nsITreeView.DROP_BEFORE = -1
PRInt16 nsITreeView.DROP_ON = 0
PRInt16 nsITreeView.DROP_AFTER = 1
The progress mode for a given cell. This method is only called for columns of type progressmeter.
PRInt16 nsITreeView.PROGRESS_NORMAL = 1
PRInt16 nsITreeView.PROGRESS_UNDETERMINED = 2
PRInt16 nsITreeView.PROGRESS_NONE = 3
PRInt32 nsIXULTreeBuilderObserver.DROP_BEFORE = -1
PRInt32 nsIXULTreeBuilderObserver.DROP_ON = 0
PRInt32 nsIXULTreeBuilderObserver.DROP_AFTER = 1

Properties

readonly nsIRDFCompositeDataSource nsIXULTemplateBuilder.database

The composite datasource that the template builder observes and uses to create content. This is used only for RDF queries and is maintained for backwards compatibility.

readonly nsIXULTemplateQueryProcessor nsIXULTemplateBuilder.queryProcessor

The query processor used to generate results.

readonly nsIDOMElement nsIXULTemplateBuilder.root

The root node in the DOM to which this builder is attached.

readonly nsIXULTemplateResult nsIXULTemplateBuilder.rootResult

The virtual result representing the starting reference point, determined by calling the query processor's translateRef method with the root node's ref attribute as an argument.

readonly PRInt32 nsITreeView.rowCount

The total number of rows in the tree (including the offscreen rows).

nsITreeSelection nsITreeView.selection

The selection for this view.

Methods

InterfaceMethod
nsIXULTemplateBuilder void addListener ( nsIXULBuilderListener listener )
nsIXULTemplateBuilder void addResult ( nsIXULTemplateResult result , nsIDOMNode queryNode )
nsIXULTemplateBuilder void addRuleFilter ( nsIDOMNode rule , nsIXULTemplateRuleFilter filter )
nsISecurityCheckedComponent char* canCallMethod ( nsIIDPtr iid , PRUnichar* methodName )
nsISecurityCheckedComponent char* canCreateWrapper ( nsIIDPtr iid )
nsIXULTreeBuilderObserver PRBool canDrop ( PRInt32 index , PRInt32 orientation )
nsISecurityCheckedComponent char* canGetProperty ( nsIIDPtr iid , PRUnichar* propertyName )
nsISecurityCheckedComponent char* canSetProperty ( nsIIDPtr iid , PRUnichar* propertyName )
nsIXULTemplateBuilder [noscript] void createContents ( nsIContent element , PRBool forceCreation )
nsITreeView void cycleCell ( PRInt32 row , nsITreeColumn col )
nsITreeView void cycleHeader ( nsITreeColumn col )
nsITreeView void drop ( PRInt32 row , PRInt32 orientation )
nsITreeView void getCellProperties ( PRInt32 row , nsITreeColumn col , nsISupportsArray properties )
nsITreeView AString getCellText ( PRInt32 row , nsITreeColumn col )
nsITreeView AString getCellValue ( PRInt32 row , nsITreeColumn col )
nsITreeView void getColumnProperties ( nsITreeColumn col , nsISupportsArray properties )
nsITreeView AString getImageSrc ( PRInt32 row , nsITreeColumn col )
nsITreeView PRInt32 getLevel ( PRInt32 index )
nsITreeView PRInt32 getParentIndex ( PRInt32 rowIndex )
nsITreeView PRInt32 getProgressMode ( PRInt32 row , nsITreeColumn col )
nsIXULTemplateBuilder nsIXULTemplateResult getResultForContent ( nsIDOMElement element )
nsIXULTemplateBuilder nsIXULTemplateResult getResultForId ( AString id )
nsITreeView void getRowProperties ( PRInt32 index , nsISupportsArray properties )
nsIXULTemplateBuilder PRBool hasGeneratedContent ( nsIRDFResource node , nsIAtom tag )
nsITreeView PRBool hasNextSibling ( PRInt32 rowIndex , PRInt32 afterIndex )
nsIXULTemplateBuilder [noscript] void init ( nsIContent element )
nsITreeView PRBool isContainer ( PRInt32 index )
nsITreeView PRBool isContainerEmpty ( PRInt32 index )
nsITreeView PRBool isContainerOpen ( PRInt32 index )
nsITreeView PRBool isEditable ( PRInt32 row , nsITreeColumn col )
nsITreeView PRBool isSelectable ( PRInt32 row , nsITreeColumn col )
nsITreeView PRBool isSeparator ( PRInt32 index )
nsITreeView PRBool isSorted ( )
nsIRDFObserver void onAssert ( nsIRDFDataSource dataSource , nsIRDFResource source , nsIRDFResource property , nsIRDFNode target )
nsIRDFObserver void onBeginUpdateBatch ( nsIRDFDataSource dataSource )
nsIRDFObserver void onChange ( nsIRDFDataSource dataSource , nsIRDFResource source , nsIRDFResource property , nsIRDFNode oldTarget , nsIRDFNode newTarget )
nsIXULTreeBuilderObserver void onCycleCell ( PRInt32 row , PRUnichar* colID )
nsIXULTreeBuilderObserver void onCycleHeader ( PRUnichar* colID , nsIDOMElement elt )
nsIXULTreeBuilderObserver void onDrop ( PRInt32 row , PRInt32 orientation )
nsIRDFObserver void onEndUpdateBatch ( nsIRDFDataSource dataSource )
nsIRDFObserver void onMove ( nsIRDFDataSource dataSource , nsIRDFResource oldSource , nsIRDFResource newSource , nsIRDFResource property , nsIRDFNode target )
nsIXULTreeBuilderObserver void onPerformAction ( PRUnichar* action )
nsIXULTreeBuilderObserver void onPerformActionOnCell ( PRUnichar* action , PRInt32 row , PRUnichar* colID )
nsIXULTreeBuilderObserver void onPerformActionOnRow ( PRUnichar* action , PRInt32 row )
nsIXULTreeBuilderObserver void onSelectionChanged ( )
nsIXULTreeBuilderObserver void onToggleOpenState ( PRInt32 index )
nsIRDFObserver void onUnassert ( nsIRDFDataSource dataSource , nsIRDFResource source , nsIRDFResource property , nsIRDFNode target )
nsITreeView void performAction ( PRUnichar* action )
nsITreeView void performActionOnCell ( PRUnichar* action , PRInt32 row , nsITreeColumn col )
nsITreeView void performActionOnRow ( PRUnichar* action , PRInt32 row )
nsIXULTemplateBuilder void rebuild ( )
nsIXULTemplateBuilder void refresh ( )
nsIXULTemplateBuilder void removeListener ( nsIXULBuilderListener listener )
nsIXULTemplateBuilder void removeResult ( nsIXULTemplateResult result )
nsIXULTemplateBuilder void replaceResult ( nsIXULTemplateResult oldResult , nsIXULTemplateResult newResult , nsIDOMNode queryNode )
nsIXULTemplateBuilder void resultBindingChanged ( nsIXULTemplateResult result )
nsITreeView void selectionChanged ( )
nsITreeView void setCellText ( PRInt32 row , nsITreeColumn col , AString value )
nsITreeView void setCellValue ( PRInt32 row , nsITreeColumn col , AString value )
nsITreeView void setTree ( nsITreeBoxObject tree )
nsITreeView void toggleOpenState ( PRInt32 index )

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com