diff options
Diffstat (limited to 'webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/ui/table/DefaultHeaderCellRenderer.js')
-rw-r--r-- | webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/ui/table/DefaultHeaderCellRenderer.js | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/ui/table/DefaultHeaderCellRenderer.js b/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/ui/table/DefaultHeaderCellRenderer.js deleted file mode 100644 index 97b788b1a9..0000000000 --- a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/ui/table/DefaultHeaderCellRenderer.js +++ /dev/null @@ -1,67 +0,0 @@ -/* ************************************************************************ - - qooxdoo - the new era of web development - - http://qooxdoo.org - - Copyright: - 2006 STZ-IDA, Germany, http://www.stz-ida.de - - 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: - * Til Schneider (til132) - -************************************************************************ */ - -/* ************************************************************************ - -#module(ui_table) -#embed(qx.widgettheme/table/ascending.png) -#embed(qx.widgettheme/table/descending.png) - -************************************************************************ */ - -/** - * The default header cell renderer. - */ -qx.OO.defineClass("qx.ui.table.DefaultHeaderCellRenderer", qx.ui.table.HeaderCellRenderer, -function() { - qx.ui.table.HeaderCellRenderer.call(this); -}); - - -// overridden -qx.Proto.createHeaderCell = function(cellInfo) { - var widget = new qx.ui.basic.Atom(); - widget.setAppearance("table-header-cell"); - - this.updateHeaderCell(cellInfo, widget); - - return widget; -} - - -// overridden -qx.Proto.updateHeaderCell = function(cellInfo, cellWidget) { - var DefaultHeaderCellRenderer = qx.ui.table.DefaultHeaderCellRenderer; - - cellWidget.setLabel(cellInfo.name); - - cellWidget.setIcon(cellInfo.sorted ? (cellInfo.sortedAscending ? "widget/table/ascending.png" : "widget/table/descending.png") : null); - cellWidget.setState(DefaultHeaderCellRenderer.STATE_SORTED, cellInfo.sorted); - cellWidget.setState(DefaultHeaderCellRenderer.STATE_SORTED_ASCENDING, cellInfo.sortedAscending); -} - -/** - * (string) The state which will be set for header cells of sorted columns. - */ -qx.Class.STATE_SORTED = "sorted"; - -/** - * (string) The state which will be set when sorting is ascending. - */ -qx.Class.STATE_SORTED_ASCENDING = "sortedAscending"; |