litesoft
Diff Revisions
947
vs
948
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/datatables/BoColumnDefinition.java
|
@@ -6,21 +6,17 @@ |
6 |
6 |
|
|
7 |
7 |
|
import com.google.gwt.user.client.ui.*; |
8 |
8 |
|
|
9 |
|
- |
public class BoColumnDefinition<T extends BoAccessor> extends TableColumnDefinition<T> |
10 |
|
- |
{ |
|
9 |
+ |
public class BoColumnDefinition<T extends BoAccessor> extends TableColumnDefinition<T> { |
11 |
10 |
|
private final BoAttribute mAttribute; |
12 |
11 |
|
|
13 |
|
- |
public BoColumnDefinition( BoAttribute pAttribute ) |
14 |
|
- |
{ |
|
12 |
+ |
public BoColumnDefinition( BoAttribute pAttribute ) { |
15 |
13 |
|
this( pAttribute, null ); |
16 |
14 |
|
} |
17 |
15 |
|
|
18 |
|
- |
public BoColumnDefinition( BoAttribute pAttribute, String pHeaderText ) |
19 |
|
- |
{ |
|
16 |
+ |
public BoColumnDefinition( BoAttribute pAttribute, String pHeaderText ) { |
20 |
17 |
|
super( (pHeaderText != null) ? pHeaderText : DeCamelizer.resolve( pAttribute.getName() ) ); |
21 |
18 |
|
mAttribute = pAttribute; |
22 |
|
- |
switch ( pAttribute.getType() ) |
23 |
|
- |
{ |
|
19 |
+ |
switch ( pAttribute.getType() ) { |
24 |
20 |
|
case Integer: |
25 |
21 |
|
case Long: |
26 |
22 |
|
case Money: |
|
@@ -37,8 +33,7 @@ |
37 |
33 |
|
} |
38 |
34 |
|
|
39 |
35 |
|
@Override |
40 |
|
- |
public Object getCellValue( T pRowValue ) |
41 |
|
- |
{ |
|
36 |
+ |
public Object getCellValue( T pRowValue ) { |
42 |
37 |
|
return pRowValue.getAttributeValue( mAttribute.getName() ); |
43 |
38 |
|
} |
44 |
39 |
|
} |