litesoft
Diff Revisions
475
vs
948
for /trunk/Java/GWT/Client/src/com/google/gwt/gen2/table/client/GridBulkRenderer.java
|
@@ -23,16 +23,14 @@ |
23 |
23 |
|
* |
24 |
24 |
|
* @param <RowType> the data type of the row values |
25 |
25 |
|
*/ |
26 |
|
- |
public class GridBulkRenderer<RowType> extends TableBulkRenderer<RowType> |
27 |
|
- |
{ |
|
26 |
+ |
public class GridBulkRenderer<RowType> extends TableBulkRenderer<RowType> { |
28 |
27 |
|
/** |
29 |
28 |
|
* Construct a new {@link GridBulkRenderer}. |
30 |
29 |
|
* |
31 |
30 |
|
* @param grid {@link Grid} to be be bulk rendered |
32 |
31 |
|
* @param tableDef the table definition that should be used during rendering |
33 |
32 |
|
*/ |
34 |
|
- |
public GridBulkRenderer( Grid grid, TableDefinition<RowType> tableDef ) |
35 |
|
- |
{ |
|
33 |
+ |
public GridBulkRenderer( Grid grid, TableDefinition<RowType> tableDef ) { |
36 |
34 |
|
super( grid, tableDef ); |
37 |
35 |
|
init( grid ); |
38 |
36 |
|
} |
|
@@ -43,15 +41,13 @@ |
43 |
41 |
|
* @param grid {@link Grid} to be be bulk rendered |
44 |
42 |
|
* @param sourceTableDef the external source of the table definition |
45 |
43 |
|
*/ |
46 |
|
- |
public GridBulkRenderer( Grid grid, HasTableDefinition<RowType> sourceTableDef ) |
47 |
|
- |
{ |
|
44 |
+ |
public GridBulkRenderer( Grid grid, HasTableDefinition<RowType> sourceTableDef ) { |
48 |
45 |
|
super( grid, sourceTableDef ); |
49 |
46 |
|
init( grid ); |
50 |
47 |
|
} |
51 |
48 |
|
|
52 |
49 |
|
@Override |
53 |
|
- |
protected void renderRows( String rawHTMLTable ) |
54 |
|
- |
{ |
|
50 |
+ |
protected void renderRows( String rawHTMLTable ) { |
55 |
51 |
|
super.renderRows( rawHTMLTable ); |
56 |
52 |
|
setGridDimensions( (Grid) getTable() ); |
57 |
53 |
|
} |
|
@@ -70,14 +66,11 @@ |
70 |
66 |
|
table.@com.google.gwt.gen2.table.client.Grid::numColumns = cellCount; |
71 |
67 |
|
}-*/; |
72 |
68 |
|
|
73 |
|
- |
private void init( Grid grid ) |
74 |
|
- |
{ |
75 |
|
- |
if ( grid instanceof FixedWidthGrid && (!(this instanceof FixedWidthGridBulkRenderer)) ) |
76 |
|
- |
{ |
|
69 |
+ |
private void init( Grid grid ) { |
|
70 |
+ |
if ( grid instanceof FixedWidthGrid && (!(this instanceof FixedWidthGridBulkRenderer)) ) { |
77 |
71 |
|
throw new UnsupportedOperationException( "Must use a FixedWidthGridBulkLoader to bulk load a fixed grid" ); |
78 |
72 |
|
} |
79 |
|
- |
if ( grid instanceof SelectionGrid && (!(this instanceof SelectionGridBulkRenderer)) ) |
80 |
|
- |
{ |
|
73 |
+ |
if ( grid instanceof SelectionGrid && (!(this instanceof SelectionGridBulkRenderer)) ) { |
81 |
74 |
|
throw new UnsupportedOperationException( "Must use a SelectionGridBulkLoader to bulk load a selection grid" ); |
82 |
75 |
|
} |
83 |
76 |
|
} |