litesoft
Diff Revisions
947
vs
948
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/datatables/ClickableColumnDefinition.java
|
@@ -4,29 +4,24 @@ |
4 |
4 |
|
import com.google.gwt.gen2.table.client.*; |
5 |
5 |
|
import com.google.gwt.user.client.ui.*; |
6 |
6 |
|
|
7 |
|
- |
public abstract class ClickableColumnDefinition<RowType> extends TableColumnDefinition<RowType> implements CellClickHandler<RowType> |
8 |
|
- |
{ |
9 |
|
- |
public ClickableColumnDefinition() |
10 |
|
- |
{ |
|
7 |
+ |
public abstract class ClickableColumnDefinition<RowType> extends TableColumnDefinition<RowType> implements CellClickHandler<RowType> { |
|
8 |
+ |
public ClickableColumnDefinition() { |
11 |
9 |
|
this( null ); |
12 |
10 |
|
} |
13 |
11 |
|
|
14 |
|
- |
public ClickableColumnDefinition( String pHeaderText ) |
15 |
|
- |
{ |
|
12 |
+ |
public ClickableColumnDefinition( String pHeaderText ) { |
16 |
13 |
|
super( pHeaderText ); |
17 |
14 |
|
align( HasHorizontalAlignment.ALIGN_CENTER ); |
18 |
15 |
|
clickHandler( this ); |
19 |
16 |
|
} |
20 |
17 |
|
|
21 |
18 |
|
@Override |
22 |
|
- |
public Object getCellValue( RowType pRowValue ) |
23 |
|
- |
{ |
|
19 |
+ |
public Object getCellValue( RowType pRowValue ) { |
24 |
20 |
|
return createClickable( pRowValue ); |
25 |
21 |
|
} |
26 |
22 |
|
|
27 |
23 |
|
@Override |
28 |
|
- |
public void execute( ColumnDefinition<RowType, ?> colDef, int pRowIndex, RowType pRowValue ) |
29 |
|
- |
{ |
|
24 |
+ |
public void execute( ColumnDefinition<RowType, ?> colDef, int pRowIndex, RowType pRowValue ) { |
30 |
25 |
|
execute( pRowIndex, pRowValue ); |
31 |
26 |
|
} |
32 |
27 |
|
|