1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 interface TreeColumns {
9 * The tree widget for these columns.
11 readonly attribute XULTreeElement? tree;
14 * The number of columns.
16 readonly attribute unsigned long count;
19 * An alias for count (for the benefit of scripts which treat this as an
22 readonly attribute unsigned long length;
25 * Get the first/last column.
27 TreeColumn? getFirstColumn();
28 TreeColumn? getLastColumn();
31 * Attribute based column getters.
33 TreeColumn? getPrimaryColumn();
34 TreeColumn? getSortedColumn();
35 TreeColumn? getKeyColumn();
38 * Get the column for the given element.
40 TreeColumn? getColumnFor(Element? element);
43 * Parametric column getters.
45 getter TreeColumn? getNamedColumn(DOMString name);
46 getter TreeColumn? getColumnAt(unsigned long index);
49 * This method is called whenever a treecol is added or removed and
50 * the column cache needs to be rebuilt.
52 undefined invalidateColumns();