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.

TreeColumns

This object is available to unprivileged JavaScript. It implements the following interfaces:

Properties

readonly PRInt32 count

The number of columns.

readonly TreeBoxObject tree

The tree widget for these columns.


Methods

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

TreeColumn getColumnAt ( PRInt32 index )

Arguments:
index

TreeColumn getColumnFor ( Element element )

Get the column for the given element.

Arguments:
element

TreeColumn getFirstColumn ( )

Get the first/last column.


TreeColumn getKeyColumn ( )


TreeColumn getLastColumn ( )


TreeColumn getNamedColumn ( AString id )

Parametric column getters.

Arguments:
id

TreeColumn getPrimaryColumn ( )

Attribute based column getters.


TreeColumn getSortedColumn ( )


void invalidateColumns ( )

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


void restoreNaturalOrder ( )

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com