PageRenderTime 7ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/pyjs/tests/test029.js

http://pyjamas.googlecode.com/
JavaScript | 26 lines | 21 code | 5 blank | 0 comment | 3 complexity | 985f4ca3a0affe0c906825fce4a23819 MD5 | raw file
 1__DynaTableWidget.prototype.__class__ = "DynaTableWidget";
 2function DynaTableWidget() {
 3    return new __DynaTableWidget();
 4}
 5function __DynaTableWidget() {
 6}
 7__DynaTableWidget.prototype.initTable = function(columns, columnStyles, rowCount) {
 8    this.grid.resize( ( rowCount + 1 ) , pyjslib_len(columns));
 9
10        var __i = pyjslib_range(pyjslib_len(columns)).__iter__();
11        try {
12            while (true) {
13                var i = __i.next();
14                
15        
16    var caption = columns.__getitem__(i);
17    this.grid.setText(0, i, columns.__getitem__(i));
18
19            }
20        } catch (e) {
21            if (e != StopIteration) {
22                throw e;
23            }
24        }
25        
26};