author Neil Deakin <>
Thu, 07 Mar 2019 17:57:18 -0500
changeset 520880 bcc72374b769d03abf6eb717dcccec843066284b
parent 504124 9a4db52c22c20c1d872c1eaac1bafd4b6b1cca66
permissions -rw-r--r--
Bug 1519960, add a previousColumn property for tree columns so that tree drag and drop will work without box objects, r=bzbarsky

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at */

interface TreeColumn {
  readonly attribute Element element;

  readonly attribute TreeColumns? columns;

  readonly attribute long x;
  readonly attribute long width;

  readonly attribute DOMString id;
  readonly attribute long index;

  readonly attribute boolean primary;
  readonly attribute boolean cycler;
  readonly attribute boolean editable;

  const short TYPE_TEXT                = 1;
  const short TYPE_CHECKBOX            = 2;
  const short TYPE_PASSWORD            = 3;
  readonly attribute short type;

  TreeColumn? getNext();
  TreeColumn? getPrevious();

   * Returns the previous displayed column, if any, accounting for
   * the ordinals set on the columns.
  readonly attribute TreeColumn? previousColumn;

  void invalidate();