litesoft
Diff Revisions
947
vs
948
for /trunk/Java/GWT/Client/src/com/google/gwt/gen2/event/dom/client/HasAllFocusHandlers.java
|
@@ -31,15 +31,13 @@ |
31 |
31 |
|
*/ |
32 |
32 |
|
@Deprecated |
33 |
33 |
|
public interface HasAllFocusHandlers extends HasFocusHandlers, |
34 |
|
- |
HasBlurHandlers |
35 |
|
- |
{ |
|
34 |
+ |
HasBlurHandlers { |
36 |
35 |
|
/** |
37 |
36 |
|
* Adaptor used to implement both {@link FocusHandler} and {@link BlurHandler} |
38 |
37 |
|
* . |
39 |
38 |
|
*/ |
40 |
39 |
|
public abstract static class Adaptor extends HandlerAdaptor implements FocusHandler, |
41 |
|
- |
BlurHandler |
42 |
|
- |
{ |
|
40 |
+ |
BlurHandler { |
43 |
41 |
|
|
44 |
42 |
|
/** |
45 |
43 |
|
* Convenience method to add both focus handlers at once to an event source. |
|
@@ -49,8 +47,8 @@ |
49 |
47 |
|
* @param source the event source |
50 |
48 |
|
* @param handlers the focus handlers |
51 |
49 |
|
*/ |
52 |
|
- |
public static <EventSourceType extends HasHandlerManager & HasAllFocusHandlers, EventHandlerType extends BlurHandler & FocusHandler> void addHandlers( EventSourceType source, EventHandlerType handlers ) |
53 |
|
- |
{ |
|
50 |
+ |
public static <EventSourceType extends HasHandlerManager & HasAllFocusHandlers, EventHandlerType extends BlurHandler & FocusHandler> void addHandlers( |
|
51 |
+ |
EventSourceType source, EventHandlerType handlers ) { |
54 |
52 |
|
source.addBlurHandler( handlers ); |
55 |
53 |
|
source.addFocusHandler( handlers ); |
56 |
54 |
|
} |
|
@@ -58,8 +56,7 @@ |
58 |
56 |
|
/** |
59 |
57 |
|
* Constructor. |
60 |
58 |
|
*/ |
61 |
|
- |
public Adaptor() |
62 |
|
- |
{ |
|
59 |
+ |
public Adaptor() { |
63 |
60 |
|
} |
64 |
61 |
|
} |
65 |
62 |
|
} |