litesoft
Diff Revisions
282
vs
475
for /trunk/Java/GWT/Client/src/com/google/gwt/gen2/table/event/client/PagingFailureEvent.java
|
@@ -16,45 +16,51 @@ |
16 |
16 |
|
|
17 |
17 |
|
package com.google.gwt.gen2.table.event.client; |
18 |
18 |
|
|
19 |
|
- |
import com.google.gwt.gen2.event.shared.AbstractEvent; |
|
19 |
+ |
import com.google.gwt.gen2.event.shared.*; |
20 |
20 |
|
|
21 |
21 |
|
/** |
22 |
22 |
|
* Logical event fired when a page fails to load. |
23 |
23 |
|
*/ |
24 |
|
- |
public class PagingFailureEvent extends AbstractEvent { |
25 |
|
- |
/** |
26 |
|
- |
* Event Key for {@link PagingFailureEvent}. |
27 |
|
- |
*/ |
28 |
|
- |
public static final Type<PagingFailureEvent, PagingFailureHandler> TYPE = new Type<PagingFailureEvent, PagingFailureHandler>() { |
29 |
|
- |
@Override |
30 |
|
- |
protected void fire(PagingFailureHandler handler, PagingFailureEvent event) { |
31 |
|
- |
handler.onPagingFailure(event); |
|
24 |
+ |
public class PagingFailureEvent extends AbstractEvent |
|
25 |
+ |
{ |
|
26 |
+ |
/** |
|
27 |
+ |
* Event Key for {@link PagingFailureEvent}. |
|
28 |
+ |
*/ |
|
29 |
+ |
public static final Type<PagingFailureEvent, PagingFailureHandler> TYPE = new Type<PagingFailureEvent, PagingFailureHandler>() |
|
30 |
+ |
{ |
|
31 |
+ |
@Override |
|
32 |
+ |
protected void fire( PagingFailureHandler handler, PagingFailureEvent event ) |
|
33 |
+ |
{ |
|
34 |
+ |
handler.onPagingFailure( event ); |
|
35 |
+ |
} |
|
36 |
+ |
}; |
|
37 |
+ |
|
|
38 |
+ |
/** |
|
39 |
+ |
* The exception that caused the failure. |
|
40 |
+ |
*/ |
|
41 |
+ |
private Throwable exception; |
|
42 |
+ |
|
|
43 |
+ |
/** |
|
44 |
+ |
* Construct a new {@link PagingFailureEvent}. |
|
45 |
+ |
* |
|
46 |
+ |
* @param exception the exception that caused the event |
|
47 |
+ |
*/ |
|
48 |
+ |
public PagingFailureEvent( Throwable exception ) |
|
49 |
+ |
{ |
|
50 |
+ |
this.exception = exception; |
|
51 |
+ |
} |
|
52 |
+ |
|
|
53 |
+ |
/** |
|
54 |
+ |
* @return the exception that caused the failure |
|
55 |
+ |
*/ |
|
56 |
+ |
public Throwable getException() |
|
57 |
+ |
{ |
|
58 |
+ |
return exception; |
32 |
59 |
|
} |
33 |
|
- |
}; |
34 |
60 |
|
|
35 |
|
- |
/** |
36 |
|
- |
* The exception that caused the failure. |
37 |
|
- |
*/ |
38 |
|
- |
private Throwable exception; |
39 |
|
- |
|
40 |
|
- |
/** |
41 |
|
- |
* Construct a new {@link PagingFailureEvent}. |
42 |
|
- |
* |
43 |
|
- |
* @param exception the exception that caused the event |
44 |
|
- |
*/ |
45 |
|
- |
public PagingFailureEvent(Throwable exception) { |
46 |
|
- |
this.exception = exception; |
47 |
|
- |
} |
48 |
|
- |
|
49 |
|
- |
/** |
50 |
|
- |
* @return the exception that caused the failure |
51 |
|
- |
*/ |
52 |
|
- |
public Throwable getException() { |
53 |
|
- |
return exception; |
54 |
|
- |
} |
55 |
|
- |
|
56 |
|
- |
@Override |
57 |
|
- |
protected Type getType() { |
58 |
|
- |
return TYPE; |
59 |
|
- |
} |
|
61 |
+ |
@Override |
|
62 |
+ |
protected Type getType() |
|
63 |
+ |
{ |
|
64 |
+ |
return TYPE; |
|
65 |
+ |
} |
60 |
66 |
|
} |