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.

nsITreeColumns

IID:f8a8d6b4-6788-438d-9009-7142798767ab
Inherits From:nsISupports

Properties

readonly PRInt32 count

The number of columns.

readonly PRInt32 length

An alias for count (for the benefit of scripts which treat this as an array).

readonly nsITreeBoxObject tree

The tree widget for these columns.


Methods

nsITreeColumn getColumnAt ( PRInt32 index ) nsITreeColumn getColumnFor ( nsIDOMElement element ) nsITreeColumn getFirstColumn ( ) nsITreeColumn getKeyColumn ( ) nsITreeColumn getLastColumn ( ) nsITreeColumn getNamedColumn ( AString id ) nsITreeColumn getPrimaryColumn ( ) nsITreeColumn getSortedColumn ( ) void invalidateColumns ( ) void restoreNaturalOrder ( )

nsITreeColumn getColumnAt ( PRInt32 index )

Arguments:
index

nsITreeColumn getColumnFor ( nsIDOMElement element )

Get the column for the given element.

Arguments:
element

nsITreeColumn getFirstColumn ( )

Get the first/last column.


nsITreeColumn getKeyColumn ( )


nsITreeColumn getLastColumn ( )


nsITreeColumn getNamedColumn ( AString id )

Parametric column getters.

Arguments:
id

nsITreeColumn getPrimaryColumn ( )

Attribute based column getters.


nsITreeColumn getSortedColumn ( )


void invalidateColumns ( )

This method is called whenever a treecol is added or removed and the column cache needs to be rebuilt.


void restoreNaturalOrder ( )


References

This interface is the type of the following properties:

nsIDOMXULTreeElement.columns, nsITreeBoxObject.columns, nsITreeColumn.columns

Reference documentation is generated from Mozilla's source.