|
From: Thyamad c. <th...@us...> - 2006-01-17 22:35:17
|
Update of /cvsroot/thyapi/thyapi/thywidgets In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25977/thywidgets Modified Files: thygrid.js thygridcell.js thygridcontents.js thygridrow.js Log Message: Commiting file additions and modification from SVN revision 2646 to 2647... Changes made by vinicius on 2006-01-18 00:37:38 +0100 (Wed, 18 Jan 2006) corresponding to SVN revision 2647 with message: disabled all css for thygrid Index: thygridcell.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/thygridcell.js,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** thygridcell.js 1 Sep 2005 18:15:38 -0000 1.5 --- thygridcell.js 17 Jan 2006 22:35:06 -0000 1.6 *************** *** 48,51 **** --- 48,52 ---- function thyGridCell(name, html) { + startTracing('thyGridCell','thyGridCell'); this.thyPanel = thyPanel; this.thyPanel(name,null); *************** *** 57,60 **** --- 58,62 ---- this.setRelativeness(false); + /* this.cssClasses = { 'default': ['default'], *************** *** 64,67 **** --- 66,70 ---- }; this.addCSSClass('thyGridCell'); + */ var self = this; *************** *** 70,73 **** --- 73,77 ---- self._selectEvent() }}); + endTracing('thyGridCell','thyGridCell'); } *************** *** 91,94 **** --- 95,99 ---- p.populate = function (data) { + startTracing('thyGridCell','populate'); if (typeof(data) != 'object') this.setHTML(data); else if (typeof(data.isFromClass) == 'function') *************** *** 113,116 **** --- 118,122 ---- catch(e) { + endTracing('thyGridCell','populate'); return; } *************** *** 125,131 **** --- 131,139 ---- catch(e) { + endTracing('thyGridCell','populate'); return; } } + endTracing('thyGridCell','populate'); } *************** *** 142,145 **** --- 150,154 ---- p.sweepOut = function () { + startTracing('thyGridCell','sweepOut'); if (!this.children.length) return this.getHTML(); try *************** *** 150,159 **** --- 159,171 ---- contents.add(this.children[i].sweepOut(), this.children[i].name); } + endTracing('thyGridCell','sweepOut'); return contents; } catch(e) { + endTracing('thyGridCell','sweepOut'); return; } + endTracing('thyGridCell','sweepOut'); } *************** *** 167,172 **** --- 179,186 ---- p.addChild = function (child) { + startTracing('thyGridCell','addChild'); if (this.children.length == 0) this._thyPanelSetHTML(''); this._thyPanelAddChild(child); + endTracing('thyGridCell','addChild'); } *************** *** 185,192 **** --- 199,208 ---- p.setHTML = function (html) { + startTracing('thyGridCell','setHTML'); var rSpace = new RegExp(' ', 'g'); if (!html && typeof(html) != 'number') html = ' '; else if (typeof(html) == 'string') html = html.replace(rSpace, ' '); this._thyPanelSetHTML(html); + endTracing('thyGridCell','setHTML'); } *************** *** 202,205 **** --- 218,222 ---- p.getHTML = function () { + startTracing('thyGridCell','getHTML'); var rSpace = new RegExp(' [;]', 'g'); var html = this._thyPanelGetHTML(); *************** *** 207,210 **** --- 224,228 ---- if (html == ' ' || html == ' ') { + endTracing('thyGridCell','getHTML'); return ''; } *************** *** 212,215 **** --- 230,234 ---- if (typeof(html) == 'string') { + endTracing('thyGridCell','getHTML'); return html.replace(rSpace, ' '); } *************** *** 217,223 **** --- 236,244 ---- if (typeof(html) == 'object' && typeof(html.isFromClass) && html.isFromClass('thyPanel')) { + endTracing('thyGridCell','getHTML'); return html.sweepOut(); } + endTracing('thyGridCell','getHTML'); return html; } *************** *** 362,365 **** --- 383,387 ---- p._create = function () { + startTracing('thyGridCell','_create'); if (this.parent && !this.elm) { *************** *** 368,371 **** --- 390,394 ---- DynElement._flagCreate(this); } + endTracing('thyGridCell','_create'); } *************** *** 373,376 **** --- 396,400 ---- p._createDOMElement = function () { + startTracing('thyGridCell','_createDOMElement'); if (this.parent) { *************** *** 403,406 **** --- 427,431 ---- parentElm.appendChild(elm); + endTracing('thyGridCell','_createDOMElement'); return elm; } *************** *** 415,418 **** --- 440,444 ---- p._processMode = function() { + startTracing('thyGridCell','_processMode'); switch (this.cellMode) { *************** *** 426,429 **** --- 452,456 ---- this.cellEditBox.focus(); } + endTracing('thyGridCell','_processMode'); return; *************** *** 437,450 **** --- 464,481 ---- p._processType = function() { + startTracing('thyGridCell','_processType'); switch (this.cellType) { case 0: this.setCSSClass(this.cellSelected ? 'selected' : 'default'); + endTracing('thyGridCell','_processType'); return; case 1: this.setCSSClass(this.cellSelected ? 'header_selected' : 'header'); + endTracing('thyGridCell','_processType'); return; } + endTracing('thyGridCell','_processType'); } Index: thygridcontents.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/thygridcontents.js,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** thygridcontents.js 6 Sep 2005 13:30:07 -0000 1.2 --- thygridcontents.js 17 Jan 2006 22:35:06 -0000 1.3 *************** *** 39,44 **** --- 39,46 ---- function thyGridContents(name) { + startTracing('thyGridContents','thyGridContents'); this.thyPanel = thyPanel; this.thyPanel(name); + endTracing('thyGridContents','thyGridContents'); } *************** *** 53,56 **** --- 55,59 ---- p.getOuterHTML = function () { + startTracing('thyGridContents','getOuterHTML'); var html = [ '<table id="'+this.id+'"', *************** *** 69,72 **** --- 72,76 ---- ].join(''); //alert(html); + endTracing('thyGridContents','getOuterHTML'); return html; } Index: thygridrow.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/thygridrow.js,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** thygridrow.js 13 Oct 2005 18:17:26 -0000 1.2 --- thygridrow.js 17 Jan 2006 22:35:06 -0000 1.3 *************** *** 38,41 **** --- 38,42 ---- function thyGridRow(name, index) { + startTracing('thyGridRow','thyGridRow'); this.thyPanel = thyPanel; this.thyPanel(name); *************** *** 56,59 **** --- 57,61 ---- this.addCSSClass('thyGridRow'); //if (!this.thyGridRow) this.onPreCreate(this.initThyGridRow); + endTracing('thyGridRow','thyGridRow'); } *************** *** 83,88 **** p.addCellCSSClass = function (cssClass) { this._addCellCSSClass(cssClass); ! this._updateAllClasses(); } --- 85,92 ---- p.addCellCSSClass = function (cssClass) { + startTracing('thyGridRow','addCellCSSClass'); this._addCellCSSClass(cssClass); ! //this._updateAllClasses(); ! endTracing('thyGridRow','addCellCSSClass'); } *************** *** 101,106 **** p.addCellIndexedCSSClass = function (cssClass) { this._addCellIndexedCSSClass(cssClass); ! this._updateAllClasses(); } --- 105,112 ---- p.addCellIndexedCSSClass = function (cssClass) { + startTracing('thyGridRow','addCellIndexedCSSClass'); this._addCellIndexedCSSClass(cssClass); ! //this._updateAllClasses(); ! endTracing('thyGridRow','addCellIndexedCSSClass'); } *************** *** 118,124 **** p.removeCellCSSClass = function (cssClass) { this._removeAllClasses(); this._removeCellCSSClass(cssClass); ! this._updateAllClasses(); } --- 124,132 ---- p.removeCellCSSClass = function (cssClass) { + startTracing('thyGridRow','removeCellCSSClass'); this._removeAllClasses(); this._removeCellCSSClass(cssClass); ! //this._updateAllClasses(); ! endTracing('thyGridRow','removeCellCSSClass'); } *************** *** 137,143 **** p.removeCellIndexedCSSClass = function (cssClass) { this._removeAllClasses(); this._removeCellIndexedCSSClass(cssClass); ! this._updateAllClasses(); } --- 145,153 ---- p.removeCellIndexedCSSClass = function (cssClass) { + startTracing('thyGridRow','removeCellIndexedCSSClass'); this._removeAllClasses(); this._removeCellIndexedCSSClass(cssClass); ! //this._updateAllClasses(); ! endTracing('thyGridRow','removeCellIndexedCSSClass'); } *************** *** 150,156 **** p.removeAllCellClasses = function () { this._removeAllClasses(); this._removeAllCellClasses(); ! this._updateAllClasses(); } --- 160,168 ---- p.removeAllCellClasses = function () { + startTracing('thyGridRow','removeAllCellClasses'); this._removeAllClasses(); this._removeAllCellClasses(); ! //this._updateAllClasses(); ! endTracing('thyGridRow','removeAllCellClasses'); } *************** *** 168,171 **** --- 180,184 ---- p.setIndex = function (index) { + startTracing('thyGridRow','setIndex'); if (index == null || this.rowIndex == index) return; this.rowIndex = index; *************** *** 173,176 **** --- 186,190 ---- this.cells.getElementByIndex(0).setHTML(this.rowIndex == -1 ? '' : this.rowIndex); this._updateNames(); + endTracing('thyGridRow','setIndex'); } *************** *** 200,203 **** --- 214,218 ---- p.insertCell = function (content, column, type) { + startTracing('thyGridRow','insertCell'); var col; if (content == null) content = ''; *************** *** 208,215 **** cell.populate(content); this.cells.add(cell, cell.name); ! this._updateClasses(cell, col+1); if (column != null && column != (col-1)) this.moveCell(col-1, column); return col+1; } --- 223,231 ---- cell.populate(content); this.cells.add(cell, cell.name); ! //this._updateClasses(cell, col+1); if (column != null && column != (col-1)) this.moveCell(col-1, column); + endTracing('thyGridRow','insertCell'); return col+1; } *************** *** 228,235 **** --- 244,253 ---- p.getCell = function (column) { + startTracing('thyGridRow','getCell'); if (column == null || typeof(column) != 'number') column = 0; column++; var cell = this.cells.getElementByIndex(column); + endTracing('thyGridRow','getCell'); return cell ? cell.sweepOut() : ''; } *************** *** 267,270 **** --- 285,289 ---- p.getSelectedCells = function () { + startTracing('thyGridRow','getSelectedCells'); var cells = new thyCollection(); var i,cell,nCells = this.cells.getElementsCount(); *************** *** 276,279 **** --- 295,299 ---- } + endTracing('thyGridRow','getSelectedCells'); return cells; } *************** *** 306,309 **** --- 326,330 ---- p.removeCell = function (column) { + startTracing('thyGridRow','removeCell'); if (column == null || typeof(column) != 'number') column = 0; column++; *************** *** 312,317 **** this.cells.remove(cell, cell.name, column); this._updateNames(); ! this._updateAllClasses(); return cell.sweepOut(); } --- 333,339 ---- this.cells.remove(cell, cell.name, column); this._updateNames(); ! //this._updateAllClasses(); + endTracing('thyGridRow','removeCell'); return cell.sweepOut(); } *************** *** 330,333 **** --- 352,356 ---- p.moveCell = function (orig, dest) { + startTracing('thyGridRow','moveCell'); if (orig == null || typeof(orig) != 'number' || dest == null || typeof(dest) != 'number') throw({result: 'Invalid Indexes', location: 'thyGridRow.moveCell'}); *************** *** 346,350 **** if (this.cells.changeElementIndex({oldIndex: orig, index: dest}) == null) return; this._updateNames(); ! this._updateAllClasses(); } --- 369,374 ---- if (this.cells.changeElementIndex({oldIndex: orig, index: dest}) == null) return; this._updateNames(); ! //this._updateAllClasses(); ! endTracing('thyGridRow','moveCell'); } *************** *** 372,377 **** --- 396,403 ---- p.selectOnly = function () { + startTracing('thyGridRow','selectOnly'); if (this.isSelected()) { + endTracing('thyGridRow','selectOnly'); return; } *************** *** 385,388 **** --- 411,415 ---- cell.setSelected(true); } + endTracing('thyGridRow','selectOnly'); } *************** *** 397,402 **** --- 424,431 ---- p.select = function () { + startTracing('thyGridRow','select'); if (this.isSelected()) { + endTracing('thyGridRow','select'); return; } *************** *** 410,413 **** --- 439,443 ---- this.parent.invokeEvent(eventName+this.rowIndex, new DynEvent(eventName+this.rowIndex, this)); } + endTracing('thyGridRow','select'); } *************** *** 420,425 **** --- 450,457 ---- p.unselectOnly = function () { + startTracing('thyGridRow','unselectOnly'); if (!this.isSelected()) { + endTracing('thyGridRow','unselectOnly'); return; } *************** *** 433,436 **** --- 465,469 ---- cell.setSelected(false); } + endTracing('thyGridRow','unselectOnly'); } *************** *** 445,450 **** --- 478,485 ---- p.unselect = function () { + startTracing('thyGridRow','unselect'); if (!this.isSelected()) { + endTracing('thyGridRow','unselect'); return; } *************** *** 458,461 **** --- 493,497 ---- this.parent.invokeEvent(eventName+this.rowIndex, new DynEvent(eventName, this)); } + endTracing('thyGridRow','unselect'); } *************** *** 502,505 **** --- 538,542 ---- p.getOuterHTML = function () { + startTracing('thyGridRow','getOuterHTML'); var html = [ '<tr '+this._cssClass+' id="'+this.id+'" '+(this.disabled ? 'disabled' : '')+' '+(this.readOnly?'readonly':'')+' style="', *************** *** 521,524 **** --- 558,562 ---- ].join(''); //alert(html); + endTracing('thyGridRow','getOuterHTML'); return html; } *************** *** 536,539 **** --- 574,578 ---- p._create = function () { + startTracing('thyGridRow','_create'); if (this.parent && !this.elm) { *************** *** 556,563 **** --- 595,604 ---- DynElement._flagCreate(this); } + endTracing('thyGridRow','_create'); } p._createDOMElement = function () { + startTracing('thyGridRow','_createDOMElement'); if (this.parent && !this.elm) { *************** *** 581,586 **** --- 622,629 ---- parentElm.appendChild(elm); + endTracing('thyGridRow','_createDOMElement'); return elm; } + endTracing('thyGridRow','_createDOMElement'); } *************** *** 677,680 **** --- 720,724 ---- p._createCell = function (colIndex, type) { + startTracing('thyGridRow','_createCell'); if (!type) type = 'n'; *************** *** 697,700 **** --- 741,745 ---- }}); } + endTracing('thyGridRow','_createCell'); return cell; *************** *** 710,713 **** --- 755,759 ---- p._updateNames = function () { + startTracing('thyGridRow','_updateNames'); var i,name,cell,cellPos,nCells = this.cells.getElementsCount(); *************** *** 719,722 **** --- 765,769 ---- cell.setName('Cell'+cellPos); } + endTracing('thyGridRow','_updateNames'); } *************** *** 733,736 **** --- 780,784 ---- p._updateClasses = function (cell, cellIdx) { + startTracing('thyGridRow','_updateClasses'); var i,nClasses = this.cellCSSClasses.getElementsCount(); *************** *** 747,750 **** --- 795,799 ---- cell.setCSSClass(cell.cssActualSelection); + endTracing('thyGridRow','_updateClasses'); } *************** *** 757,760 **** --- 806,810 ---- p._updateAllClasses = function () { + startTracing('thyGridRow','_updateAllClasses'); var i,cell,nClasses,nCells = this.cells.getElementsCount(); *************** *** 764,767 **** --- 814,818 ---- this._updateClasses(cell,i); } + endTracing('thyGridRow','_updateAllClasses'); } *************** *** 774,777 **** --- 825,829 ---- p._removeAllClasses = function () { + startTracing('thyGridRow','_removeAllClasses'); var i,cell,nClasses,nCells = this.cells.getElementsCount(); var j,nClasses = this.cellCSSClasses.getElementsCount(); *************** *** 794,796 **** --- 846,849 ---- cell.setCSSClass(cell.cssActualSelection); } + endTracing('thyGridRow','_removeAllClasses'); } Index: thygrid.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/thygrid.js,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** thygrid.js 23 Dec 2005 13:38:15 -0000 1.6 --- thygrid.js 17 Jan 2006 22:35:06 -0000 1.7 *************** *** 65,68 **** --- 65,69 ---- function thyGrid(name, label) { + startTracing('thyGrid','thyGrid'); this.thyLabelPanel = thyLabelPanel; this.thyLabelPanel(name,label); *************** *** 82,85 **** --- 83,87 ---- this.contents.addChild(this.gridContents); + endTracing('thyGrid','thyGrid'); } *************** *** 94,99 **** --- 96,103 ---- p.cleanUp = function () { + startTracing('thyGrid','cleanUp'); this.removeAllRows(); this.removeAllColumns(); + endTracing('thyGrid','cleanUp'); } *************** *** 106,110 **** --- 110,116 ---- p.reset = function () { + startTracing('thyGrid','reset'); this.removeAllRows(); + endTracing('thyGrid','reset'); } *************** *** 131,136 **** --- 137,144 ---- p.insertColumn = function (title, col, index) { + startTracing('thyGrid','insertColumn'); var colIndex = this.appendColumn(title, col); if (index != null) this.moveColumn(colIndex, index); + endTracing('thyGrid','insertColumn'); } *************** *** 151,154 **** --- 159,163 ---- p.appendColumn = function (title, col) { + startTracing('thyGrid','appendColumn'); if (title == null || typeof(title) == 'object') { *************** *** 177,180 **** --- 186,190 ---- this.appendRow(col) } + endTracing('thyGrid','appendColumn'); return colIndex-1; *************** *** 210,213 **** --- 220,224 ---- p.getColumn = function (index) { + startTracing('thyGrid','getColumn'); var i, nRows = this.rows.getElementsCount(); var cells = new thyCollection(); *************** *** 217,220 **** --- 228,232 ---- cells.add(this.rows.getElementByIndex(i).getCell(index)); } + endTracing('thyGrid','getColumn'); return cells; *************** *** 242,247 **** --- 254,261 ---- p.getColumnsCount = function () { + startTracing('thyGrid','getColumnsCount'); var row = this.rows.getElementByIndex(0); if (row) return row.getCellsCount(); + endTracing('thyGrid','getColumnsCount'); return 0; } *************** *** 259,262 **** --- 273,277 ---- p.removeColumn = function (index) { + startTracing('thyGrid','removeColumn'); if (!this.rows.getElementByIndex(0).getCellElement(index)) return; *************** *** 268,271 **** --- 283,287 ---- row.removeCell(index); } + endTracing('thyGrid','removeColumn'); } *************** *** 279,283 **** --- 295,301 ---- p.removeAllColumns = function () { + startTracing('thyGrid','removeAllColumns'); this.rows.cleanUp(); + endTracing('thyGrid','removeAllColumns'); } *************** *** 299,302 **** --- 317,321 ---- p.searchColumn = function (str, col) { + startTracing('thyGrid','searchColumn'); var i,content,cell,nRows = this.rows.getElementsCount(); *************** *** 306,309 **** --- 325,329 ---- if (cell.indexOf(str) != -1) return i-1; } + endTracing('thyGrid','searchColumn'); } *************** *** 325,330 **** --- 345,352 ---- p.insertRow = function (row, index) { + startTracing('thyGrid','insertRow'); var rowIndex = this.appendRow(row); if (index != null) this.moveRow(rowIndex, index); + endTracing('thyGrid','insertRow'); } *************** *** 341,344 **** --- 363,367 ---- p.appendRow = function (row) { + startTracing('thyGrid','appendRow'); // Check if valid row if (!row || typeof(row) != 'object' || !(typeof(row.isFromClass) == 'function' && row.isFromClass('thyCollection'))) *************** *** 362,367 **** if (this.selCellSelRow) gRow.setSelectCellSelectRow(); ! this._addRowClasses(gRow, nRows-1); ! this._addRowCellsClasses(gRow); for (i=0; i<nHeaderCols; i++) --- 385,390 ---- if (this.selCellSelRow) gRow.setSelectCellSelectRow(); ! //this._addRowClasses(gRow, nRows-1); ! //this._addRowCellsClasses(gRow); for (i=0; i<nHeaderCols; i++) *************** *** 369,372 **** --- 392,396 ---- gRow.insertCell(row.getElementByIndex(i)); } + endTracing('thyGrid','appendRow'); return nRows-1; *************** *** 386,389 **** --- 410,414 ---- p.moveRow = function (fromIndex, toIndex) { + startTracing('thyGrid','moveRow'); fromIndex++; toIndex++; *************** *** 402,405 **** --- 427,431 ---- this._updateRowName(this.rows.getElementByIndex(i), i-1); } + endTracing('thyGrid','moveRow'); } *************** *** 416,419 **** --- 442,446 ---- p.getRow = function (index) { + startTracing('thyGrid','getRow'); var row = this.rows.getElementByIndex(index+1); if (!row) return new thyCollection(); *************** *** 426,429 **** --- 453,457 ---- cells.add(row.getCell(i)); } + endTracing('thyGrid','getRow'); return cells; *************** *** 458,461 **** --- 486,490 ---- p.getSelectedRowsIndexes = function () { + startTracing('thyGrid','getSelectedRowsIndexes'); var selRowsIndexes = new thyCollection(); var i,nRows = this.rows.getElementsCount(); *************** *** 465,468 **** --- 494,498 ---- if (this.rows.getElementByIndex(i).isSelected()) selRowsIndexes.add(i-1); } + endTracing('thyGrid','getSelectedRowsIndexes'); return selRowsIndexes; *************** *** 478,481 **** --- 508,512 ---- p.getSelectedRows = function () { + startTracing('thyGrid','getSelectedRows'); var rows = new thyCollection(); var i,j,nCells,cells,row,nRows = this.rows.getElementsCount(); *************** *** 486,489 **** --- 517,521 ---- if (row.isSelected()) rows.add(this.getRow(i-1)); } + endTracing('thyGrid','getSelectedRows'); return rows; *************** *** 510,513 **** --- 542,546 ---- p.getAllRows = function () { + startTracing('thyGrid','getAllRows'); var i,nRows = this.getRowsCount(); var allRows = new thyCollection(); *************** *** 517,520 **** --- 550,554 ---- allRows.add(this.getRow(i)); } + endTracing('thyGrid','getAllRows'); return allRows; *************** *** 529,532 **** --- 563,567 ---- p.removeAllRows = function () { + startTracing('thyGrid','removeAllRows'); var i,nRows = this.rows.getElementsCount(); for (i=nRows-1; i>0; i--) *************** *** 534,537 **** --- 569,573 ---- this.rows.removeByIndex(i); } + endTracing('thyGrid','removeAllRows'); } *************** *** 544,547 **** --- 580,584 ---- p.removeSelectedRows = function () { + startTracing('thyGrid','removeSelectedRows'); var i,lastRow,nRows = this.rows.getElementsCount(); for (i=nRows-1; i>0; i--) *************** *** 559,562 **** --- 596,600 ---- this._updateRowName(this.rows.getElementByIndex(i), i-1); } + endTracing('thyGrid','removeSelectedRows'); } *************** *** 573,576 **** --- 611,615 ---- p.removeRow = function (index) { + startTracing('thyGrid','removeRow'); var row,idx = index+1; this.rows.removeByIndex(idx); *************** *** 581,584 **** --- 620,624 ---- this._updateRowName(this.rows.getElementByIndex(i),i-1); } + endTracing('thyGrid','removeRow'); } *************** *** 591,594 **** --- 631,635 ---- p.setSelectCellSelectRow = function () { + startTracing('thyGrid','setSelectedCellSelectRow'); this.selCellSelRow = true; var i,nRows = this.rows.getElementsCount(); *************** *** 598,601 **** --- 639,643 ---- this.rows.getElementByIndex(i).setSelectCellSelectRow(); } + endTracing('thyGrid','setSelectedCellSelectRow'); } *************** *** 741,744 **** --- 783,787 ---- p._addCSSClass = function (cssClass) { + startTracing('thyGrid','_addCSSClass'); this._thyLabelPanel_addCSSClass(cssClass); if (!this.rows) return; *************** *** 752,755 **** --- 795,799 ---- this._addRowCellsClasses(row); } + endTracing('thyGrid','_addCSSClass'); } *************** *** 767,770 **** --- 811,815 ---- p._removeCSSClass = function (cssClass) { + startTracing('thyGrid','_removeCSSClass'); this._thyLabelPanel_removeCSSClass(cssClass); if (!this.rows) return; *************** *** 777,780 **** --- 822,826 ---- this._removeRowClasses(row, i-1); } + endTracing('thyGrid','_removeCSSClass'); } *************** *** 792,795 **** --- 838,842 ---- p._addRowClasses = function (row, rowIndex) { + startTracing('thyGrid','_addRowClasses'); var i, cssClass, nClasses = this.rowClasses.getElementsCount(); *************** *** 801,804 **** --- 848,852 ---- } row.setCSSClass(row.cssActualSelection); + endTracing('thyGrid','_addRowClasses'); } *************** *** 817,820 **** --- 865,869 ---- p._addRowCellsClasses = function (row) { + startTracing('thyGrid','_addRowCellsClasses'); var i, cssClass, nClasses = this.rowClasses.getElementsCount(); *************** *** 827,832 **** row._addCellIndexedCSSClass(cssClass+'_col'); row._addCellIndexedCSSClass(this.name+'_col'); ! row._updateAllClasses(); } } --- 876,882 ---- row._addCellIndexedCSSClass(cssClass+'_col'); row._addCellIndexedCSSClass(this.name+'_col'); ! //row._updateAllClasses(); } + endTracing('thyGrid','_addRowCellsClasses'); } *************** *** 844,847 **** --- 894,898 ---- p._removeRowClasses = function (row, rowIndex) { + startTracing('thyGrid','_removeRowClasses'); var i, cssClass, nClasses = this.rowClasses.getElementsCount(); *************** *** 853,856 **** --- 904,908 ---- } row.setCSSClass(row.cssActualSelection); + endTracing('thyGrid','_removeRowClasses'); } *************** *** 868,871 **** --- 920,924 ---- p._removeRowCellsClasses = function (row) { + startTracing('thyGrid','_removeRowCellsClasses'); var i, cssClass, nClasses = this.rowClasses.getElementsCount(); *************** *** 879,884 **** row._removeCellIndexedCSSClass(cssClass+'_col'); row._removeCellIndexedCSSClass(this.name+'_col'); ! row._updateAllClasses(); } } --- 932,938 ---- row._removeCellIndexedCSSClass(cssClass+'_col'); row._removeCellIndexedCSSClass(this.name+'_col'); ! //row._updateAllClasses(); } + endTracing('thyGrid','_removeRowCellsClasses'); } *************** *** 896,899 **** --- 950,954 ---- p._updateRowName = function (row, rowIndex) { + startTracing('thyGrid','_updateRowName'); this._removeRowClasses(row, row.getIndex()); row.setName('Row'+rowIndex); *************** *** 901,904 **** --- 956,960 ---- this._addRowClasses(row, rowIndex); this.rows.changeElementName({elm: row, name: 'Row'+rowIndex}); + endTracing('thyGrid','_updateRowName'); } *************** *** 919,922 **** --- 975,979 ---- p._populateContents = function (data) { + startTracing('thyGrid','_populateContents'); var i, j, cells, cell, rowData; var selected = data.selectedRows; *************** *** 977,980 **** --- 1034,1038 ---- } } + endTracing('thyGrid','_populateContents'); } *************** *** 987,990 **** --- 1045,1049 ---- p._sweepOutContents = function () { + startTracing('thyGrid','_sweepOutContents'); var i,nRows = this.getRowsCount(); data = {rows: [ ], selectedRows: {}}; *************** *** 996,999 **** --- 1055,1059 ---- data.selectedRows = this.getSelectedRowsIndexes().getIndexedElements(); + endTracing('thyGrid','_sweepOutContents'); return data; |