litesoft
Diff Revisions
947
vs
948
for /trunk/Java/GWT/Client/src/com/google/gwt/gen2/table/client/ListColumnDefinition.java
|
@@ -23,8 +23,7 @@ |
23 |
23 |
|
* |
24 |
24 |
|
* @param <ColType> the data type of the column |
25 |
25 |
|
*/ |
26 |
|
- |
public class ListColumnDefinition<ColType> extends AbstractColumnDefinition<List<ColType>, ColType> |
27 |
|
- |
{ |
|
26 |
+ |
public class ListColumnDefinition<ColType> extends AbstractColumnDefinition<List<ColType>, ColType> { |
28 |
27 |
|
/** |
29 |
28 |
|
* The index of this column in the list. |
30 |
29 |
|
*/ |
|
@@ -35,26 +34,21 @@ |
35 |
34 |
|
* |
36 |
35 |
|
* @param index the index of this column in the list |
37 |
36 |
|
*/ |
38 |
|
- |
public ListColumnDefinition( int index ) |
39 |
|
- |
{ |
|
37 |
+ |
public ListColumnDefinition( int index ) { |
40 |
38 |
|
this.index = index; |
41 |
39 |
|
} |
42 |
40 |
|
|
43 |
41 |
|
@Override |
44 |
|
- |
public ColType getCellValue( List<ColType> rowValue ) |
45 |
|
- |
{ |
46 |
|
- |
if ( rowValue.size() > index ) |
47 |
|
- |
{ |
|
42 |
+ |
public ColType getCellValue( List<ColType> rowValue ) { |
|
43 |
+ |
if ( rowValue.size() > index ) { |
48 |
44 |
|
return rowValue.get( index ); |
49 |
45 |
|
} |
50 |
46 |
|
return null; |
51 |
47 |
|
} |
52 |
48 |
|
|
53 |
49 |
|
@Override |
54 |
|
- |
public void setCellValue( List<ColType> rowValue, ColType cellValue ) |
55 |
|
- |
{ |
56 |
|
- |
while ( rowValue.size() <= index ) |
57 |
|
- |
{ |
|
50 |
+ |
public void setCellValue( List<ColType> rowValue, ColType cellValue ) { |
|
51 |
+ |
while ( rowValue.size() <= index ) { |
58 |
52 |
|
rowValue.add( null ); |
59 |
53 |
|
} |
60 |
54 |
|
rowValue.set( index, cellValue ); |