diff options
Diffstat (limited to 'webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/ui/treevirtual/SimpleTreeDataRowRenderer.js')
-rw-r--r-- | webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/ui/treevirtual/SimpleTreeDataRowRenderer.js | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/ui/treevirtual/SimpleTreeDataRowRenderer.js b/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/ui/treevirtual/SimpleTreeDataRowRenderer.js deleted file mode 100644 index 33ae27110a..0000000000 --- a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/ui/treevirtual/SimpleTreeDataRowRenderer.js +++ /dev/null @@ -1,61 +0,0 @@ -/* ************************************************************************ - - qooxdoo - the new era of web development - - http://qooxdoo.org - - Copyright: - 2007 Derrell Lipman - - 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: - * Derrell Lipman (derrell) - -************************************************************************ */ - -/* ************************************************************************ - -#module(treevirtual) - -************************************************************************ */ - -/** - * A data row renderer for a simple tree row - */ -qx.OO.defineClass("qx.ui.treevirtual.SimpleTreeDataRowRenderer", - qx.ui.table.DefaultDataRowRenderer, -function() -{ - qx.ui.table.DefaultDataRowRenderer.call(this); -}); - - -// overridden -qx.Proto.updateDataRowElement = function(rowInfo, rowElem) -{ - // If the node is selected, select the row - var tree = rowInfo.table; - var rowData = rowInfo.rowData; - var tableModel = tree.getTableModel(); - var treeCol = tableModel.getTreeColumn(); - var node = rowData[treeCol]; - - // Set the row's selected state based on the data model - rowInfo.selected = node.bSelected; - - if (node.bSelected) - { - // Ensure that the selection model knows it's selected - var nodeRowMap = tableModel.getNodeRowMap(); - var row = nodeRowMap[node.nodeId]; - tree.getSelectionModel()._addSelectionInterval(row, row); - } - - // Now call our superclass - var ddrr = qx.ui.table.DefaultDataRowRenderer; - ddrr.prototype.updateDataRowElement.call(this, rowInfo, rowElem); -}; |