litesoft
Diff Revisions
947
vs
948
for /trunk/Java/GWT/Client/src/com/google/gwt/gen2/table/client/FixedWidthGridBulkRenderer.java
|
@@ -16,17 +16,16 @@ |
16 |
16 |
|
|
17 |
17 |
|
package com.google.gwt.gen2.table.client; |
18 |
18 |
|
|
19 |
|
- |
import java.util.*; |
20 |
|
- |
|
21 |
19 |
|
import com.google.gwt.user.client.*; |
22 |
20 |
|
|
|
21 |
+ |
import java.util.*; |
|
22 |
+ |
|
23 |
23 |
|
/** |
24 |
24 |
|
* Helper class to bulk load {@link FixedWidthGrid} tables. |
25 |
25 |
|
* |
26 |
26 |
|
* @param <RowType> the data type of the row values |
27 |
27 |
|
*/ |
28 |
|
- |
public class FixedWidthGridBulkRenderer<RowType> extends SelectionGridBulkRenderer<RowType> |
29 |
|
- |
{ |
|
28 |
+ |
public class FixedWidthGridBulkRenderer<RowType> extends SelectionGridBulkRenderer<RowType> { |
30 |
29 |
|
/** |
31 |
30 |
|
* Constructor. Takes in the number of columns in the table to allow efficient |
32 |
31 |
|
* creation of the header row. |
|
@@ -34,8 +33,7 @@ |
34 |
33 |
|
* @param grid {@link FixedWidthGrid} to be be bulk rendered |
35 |
34 |
|
* @param tableDef the table definition that should be used during rendering |
36 |
35 |
|
*/ |
37 |
|
- |
public FixedWidthGridBulkRenderer( FixedWidthGrid grid, TableDefinition<RowType> tableDef ) |
38 |
|
- |
{ |
|
36 |
+ |
public FixedWidthGridBulkRenderer( FixedWidthGrid grid, TableDefinition<RowType> tableDef ) { |
39 |
37 |
|
super( grid, tableDef ); |
40 |
38 |
|
} |
41 |
39 |
|
|
|
@@ -46,8 +44,7 @@ |
46 |
44 |
|
* @param grid {@link FixedWidthGrid} to be be bulk rendered |
47 |
45 |
|
* @param sourceTableDef the external source of the table definition |
48 |
46 |
|
*/ |
49 |
|
- |
public FixedWidthGridBulkRenderer( FixedWidthGrid grid, HasTableDefinition<RowType> sourceTableDef ) |
50 |
|
- |
{ |
|
47 |
+ |
public FixedWidthGridBulkRenderer( FixedWidthGrid grid, HasTableDefinition<RowType> sourceTableDef ) { |
51 |
48 |
|
super( grid, sourceTableDef ); |
52 |
49 |
|
} |
53 |
50 |
|
|
|
@@ -64,16 +61,14 @@ |
64 |
61 |
|
}-*/; |
65 |
62 |
|
|
66 |
63 |
|
@Override |
67 |
|
- |
protected void renderRows( Iterator<RowType> iterator, final RenderingOptions options ) |
68 |
|
- |
{ |
|
64 |
+ |
protected void renderRows( Iterator<RowType> iterator, final RenderingOptions options ) { |
69 |
65 |
|
FixedWidthGrid table = (FixedWidthGrid) super.getTable(); |
70 |
66 |
|
options.headerRow = DOM.toString( table.getGhostRow() ); |
71 |
67 |
|
super.renderRows( iterator, options ); |
72 |
68 |
|
} |
73 |
69 |
|
|
74 |
70 |
|
@Override |
75 |
|
- |
protected void renderRows( String rawHTMLTable ) |
76 |
|
- |
{ |
|
71 |
+ |
protected void renderRows( String rawHTMLTable ) { |
77 |
72 |
|
super.renderRows( rawHTMLTable ); |
78 |
73 |
|
|
79 |
74 |
|
// Update the ghost row variable after the num columns has been set |