/* ************************************************************************ qooxdoo - the new era of web development http://qooxdoo.org Copyright: 2008 Bill Adams, http://mywebserve.com License: LGPL: http://www.gnu.org/licenses/lgpl.html EPL: http://www.eclipse.org/org/documents/epl-v10.php See the LICENSE file in the project's top-level directory for details. Authors: * Bill Adams (badams) ************************************************************************ */ /** * ColumnMenu * * Column Visibility Popup Menu for Table * */ qx.Class.define("qx.ui.table.ColumnMenu", { extend : qx.ui.popup.Popup, /* ***************************************************************************** CONSTRUCTOR ***************************************************************************** */ /** * @param table {qx.ui.table.Table} */ construct : function(table) { this.base(arguments); this.__table = table; this.setLayout(new qx.ui.layout.Grid); }, /* ***************************************************************************** MEMBERS ***************************************************************************** */ members : { __table : null, __showList : null, __hideList : null, __numRows : 0, /** * Empty the popup of all children */ empty : function() { if (this.__showList) { var entries = this.__showList.getChildren(); for (var i = 0, l = entries.length; i