The nsITreeColumns
interface represents the tree columns.
Inherits from: nsISupports
nsITreeColumn getColumnAt(in long index); |
nsITreeColumn getColumnFor(in nsIDOMElement element); |
nsITreeColumn getFirstColumn(); |
nsITreeColumn getKeyColumn(); |
nsITreeColumn getLastColumn(); |
nsITreeColumn getNamedColumn(in AString id); |
nsITreeColumn getPrimaryColumn(); |
nsITreeColumn getSortedColumn(); |
void invalidateColumns(); |
void restoreNaturalOrder(); |
Attribute | Type | Description |
count | long | The number of columns. Read only. |
length | long | An alias for count (for the benefit of scripts which treat this as an array). Read only. |
tree |
| The tree widget for these columns. Read only. |
Get the column for a given index.
nsITreeColumn getColumnAt( in long index );
index
A nsITreeColumn
for this index.
Get the column for a given element.
nsITreeColumn getColumnFor( in nsIDOMElement element );
element
A nsITreeColumn
for this element.
Get the first column.
nsITreeColumn getFirstColumn();
None.
The first nsITreeColumn
.
Get the key column.
nsITreeColumn getKeyColumn();
None.
The key nsITreeColumn
.
Get the last column.
nsITreeColumn getLastColumn();
None.
The last nsITreeColumn
.
Get a column for a given name.
nsITreeColumn getNamedColumn( in AString id );
id
The nsITreeColumn
for this id.
Get the primary column.
nsITreeColumn getPrimaryColumn();
None.
The primary nsITreeColumn
.
nsITreeColumn getSortedColumn();
None.
This method is called whenever a treecol
is added or removed and the column cache needs to be rebuilt.
void invalidateColumns();
None.
Restore the original order of the columns before the user moved them.
void restoreNaturalOrder();
None.