summaryrefslogtreecommitdiff
path: root/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/ui/treevirtual/DefaultDataCellRenderer.js
blob: d089fdd643a99bf5622e06fb0daad9ad0a843a0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/* ************************************************************************

   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)

************************************************************************ */

/**
 * The default data cell renderer for a virtual tree (columns other than the
 * tree column)
 */
qx.OO.defineClass("qx.ui.treevirtual.DefaultDataCellRenderer",
                  qx.ui.table.DefaultDataCellRenderer,
function()
{
  qx.ui.table.DefaultDataCellRenderer.call(this);
});


// overridden
qx.Proto._getCellStyle = function(cellInfo)
{
  // Return the style for the div for the cell.  If there's cell-specific
  // style information provided, append it.
  var html =
    cellInfo.style +
    qx.ui.treevirtual.SimpleTreeDataCellRenderer.MAIN_DIV_STYLE;
  return html;
};