|
Lines 1219-1224
Link Here
|
| 1219 |
// Append rows if rowCount was increased |
1219 |
// Append rows if rowCount was increased |
| 1220 |
if( this._rows.length < newRowCount ) { |
1220 |
if( this._rows.length < newRowCount ) { |
| 1221 |
while( this._rows.length < newRowCount ) { |
1221 |
while( this._rows.length < newRowCount ) { |
|
|
1222 |
var newRow = new org.eclipse.swt.widgets.TableRow(); |
| 1223 |
this._hookRowEventListener( newRow ); |
| 1224 |
newRow.setLinesVisible( this._linesVisible ); |
| 1225 |
this._clientArea.add( newRow ); |
| 1226 |
this._rows.push( newRow ); |
| 1222 |
if( this._checkBoxes != null ) { |
1227 |
if( this._checkBoxes != null ) { |
| 1223 |
var checkBox = new qx.ui.basic.Image(); |
1228 |
var checkBox = new qx.ui.basic.Image(); |
| 1224 |
checkBox.addEventListener( "click", this._onCheckBoxClick, this ); |
1229 |
checkBox.addEventListener( "click", this._onCheckBoxClick, this ); |
|
Lines 1232-1242
Link Here
|
| 1232 |
this._clientArea.add( checkBox ); |
1237 |
this._clientArea.add( checkBox ); |
| 1233 |
this._checkBoxes.push( checkBox ); |
1238 |
this._checkBoxes.push( checkBox ); |
| 1234 |
} |
1239 |
} |
| 1235 |
var newRow = new org.eclipse.swt.widgets.TableRow(); |
|
|
| 1236 |
this._hookRowEventListener( newRow ); |
| 1237 |
newRow.setLinesVisible( this._linesVisible ); |
| 1238 |
this._clientArea.add( newRow ); |
| 1239 |
this._rows.push( newRow ); |
| 1240 |
} |
1240 |
} |
| 1241 |
} |
1241 |
} |
| 1242 |
// Re-calculate the position and size for each row |
1242 |
// Re-calculate the position and size for each row |
|
Lines 1299-1306
Link Here
|
| 1299 |
checkBox.setHeight( checkImageHeight ); |
1299 |
checkBox.setHeight( checkImageHeight ); |
| 1300 |
} |
1300 |
} |
| 1301 |
var row = this._rows[ i ]; |
1301 |
var row = this._rows[ i ]; |
| 1302 |
row.setLeft( left + checkBoxWidth ); |
1302 |
row.setLeft( left ); |
| 1303 |
row.setWidth( width ); |
1303 |
row.setWidth( width + checkBoxWidth ); |
| 1304 |
row.setHeight( this._itemHeight ); |
1304 |
row.setHeight( this._itemHeight ); |
| 1305 |
} |
1305 |
} |
| 1306 |
}, |
1306 |
}, |