litesoft
Diff Revisions
282
vs
475
for /trunk/Java/GWT/Client/src/com/google/gwt/gen2/table/event/client/RowHighlightEvent.java
|
@@ -16,43 +16,49 @@ |
16 |
16 |
|
|
17 |
17 |
|
package com.google.gwt.gen2.table.event.client; |
18 |
18 |
|
|
19 |
|
- |
import com.google.gwt.gen2.event.logical.shared.HighlightEvent; |
20 |
|
- |
import com.google.gwt.gen2.table.event.client.TableEvent.Row; |
|
19 |
+ |
import com.google.gwt.gen2.event.logical.shared.*; |
|
20 |
+ |
import com.google.gwt.gen2.table.event.client.TableEvent.*; |
21 |
21 |
|
|
22 |
22 |
|
/** |
23 |
23 |
|
* Logical event fired when a row is highlighted. |
24 |
24 |
|
*/ |
25 |
|
- |
public class RowHighlightEvent extends HighlightEvent<Row> { |
26 |
|
- |
/** |
27 |
|
- |
* Event Key for {@link RowHighlightEvent}. |
28 |
|
- |
*/ |
29 |
|
- |
public static final Type<RowHighlightEvent, RowHighlightHandler> TYPE = new Type<RowHighlightEvent, RowHighlightHandler>() { |
30 |
|
- |
@Override |
31 |
|
- |
protected void fire(RowHighlightHandler handler, RowHighlightEvent event) { |
32 |
|
- |
handler.onRowHighlight(event); |
|
25 |
+ |
public class RowHighlightEvent extends HighlightEvent<Row> |
|
26 |
+ |
{ |
|
27 |
+ |
/** |
|
28 |
+ |
* Event Key for {@link RowHighlightEvent}. |
|
29 |
+ |
*/ |
|
30 |
+ |
public static final Type<RowHighlightEvent, RowHighlightHandler> TYPE = new Type<RowHighlightEvent, RowHighlightHandler>() |
|
31 |
+ |
{ |
|
32 |
+ |
@Override |
|
33 |
+ |
protected void fire( RowHighlightHandler handler, RowHighlightEvent event ) |
|
34 |
+ |
{ |
|
35 |
+ |
handler.onRowHighlight( event ); |
|
36 |
+ |
} |
|
37 |
+ |
}; |
|
38 |
+ |
|
|
39 |
+ |
/** |
|
40 |
+ |
* Construct a new {@link RowHighlightEvent}. |
|
41 |
+ |
* |
|
42 |
+ |
* @param rowIndex the index of the highlighted row |
|
43 |
+ |
*/ |
|
44 |
+ |
public RowHighlightEvent( int rowIndex ) |
|
45 |
+ |
{ |
|
46 |
+ |
this( new Row( rowIndex ) ); |
|
47 |
+ |
} |
|
48 |
+ |
|
|
49 |
+ |
/** |
|
50 |
+ |
* Construct a new {@link RowHighlightEvent}. |
|
51 |
+ |
* |
|
52 |
+ |
* @param row the row being highlighted |
|
53 |
+ |
*/ |
|
54 |
+ |
public RowHighlightEvent( Row row ) |
|
55 |
+ |
{ |
|
56 |
+ |
super( row ); |
33 |
57 |
|
} |
34 |
|
- |
}; |
35 |
58 |
|
|
36 |
|
- |
/** |
37 |
|
- |
* Construct a new {@link RowHighlightEvent}. |
38 |
|
- |
* |
39 |
|
- |
* @param rowIndex the index of the highlighted row |
40 |
|
- |
*/ |
41 |
|
- |
public RowHighlightEvent(int rowIndex) { |
42 |
|
- |
this(new Row(rowIndex)); |
43 |
|
- |
} |
44 |
|
- |
|
45 |
|
- |
/** |
46 |
|
- |
* Construct a new {@link RowHighlightEvent}. |
47 |
|
- |
* |
48 |
|
- |
* @param row the row being highlighted |
49 |
|
- |
*/ |
50 |
|
- |
public RowHighlightEvent(Row row) { |
51 |
|
- |
super(row); |
52 |
|
- |
} |
53 |
|
- |
|
54 |
|
- |
@Override |
55 |
|
- |
protected Type getType() { |
56 |
|
- |
return TYPE; |
57 |
|
- |
} |
|
59 |
+ |
@Override |
|
60 |
+ |
protected Type getType() |
|
61 |
+ |
{ |
|
62 |
+ |
return TYPE; |
|
63 |
+ |
} |
58 |
64 |
|
} |