litesoft
Diff Revisions
475
vs
948
for /trunk/Java/GWT/Client/src/com/google/gwt/gen2/event/dom/client/HasAllKeyHandlers.java
|
@@ -29,16 +29,14 @@ |
29 |
29 |
|
@Deprecated |
30 |
30 |
|
public interface HasAllKeyHandlers extends HasKeyUpHandlers, |
31 |
31 |
|
HasKeyDownHandlers, |
32 |
|
- |
HasKeyPressHandlers |
33 |
|
- |
{ |
|
32 |
+ |
HasKeyPressHandlers { |
34 |
33 |
|
|
35 |
34 |
|
/** |
36 |
35 |
|
* Adaptor used to create and add all the Keyboard events at once. |
37 |
36 |
|
*/ |
38 |
37 |
|
public abstract static class Adaptor extends HandlerAdaptor implements KeyDownHandler, |
39 |
38 |
|
KeyUpHandler, |
40 |
|
- |
KeyPressHandler |
41 |
|
- |
{ |
|
39 |
+ |
KeyPressHandler { |
42 |
40 |
|
|
43 |
41 |
|
/** |
44 |
42 |
|
* Convenience method to add all key handlers at once. |
|
@@ -48,8 +46,9 @@ |
48 |
46 |
|
* @param source event source |
49 |
47 |
|
* @param handlers handlers to add |
50 |
48 |
|
*/ |
51 |
|
- |
public static <EventSourceType extends HasHandlerManager & HasAllKeyHandlers, EventHandler extends KeyDownHandler & KeyUpHandler & KeyPressHandler> void addHandlers( EventSourceType source, EventHandler handlers ) |
52 |
|
- |
{ |
|
49 |
+ |
public static <EventSourceType extends HasHandlerManager & HasAllKeyHandlers, EventHandler extends KeyDownHandler & KeyUpHandler & KeyPressHandler> |
|
50 |
+ |
void addHandlers( |
|
51 |
+ |
EventSourceType source, EventHandler handlers ) { |
53 |
52 |
|
source.addKeyDownHandler( handlers ); |
54 |
53 |
|
source.addKeyPressHandler( handlers ); |
55 |
54 |
|
source.addKeyUpHandler( handlers ); |
|
@@ -58,8 +57,7 @@ |
58 |
57 |
|
/** |
59 |
58 |
|
* Constructor. |
60 |
59 |
|
*/ |
61 |
|
- |
public Adaptor() |
62 |
|
- |
{ |
|
60 |
+ |
public Adaptor() { |
63 |
61 |
|
} |
64 |
62 |
|
} |
65 |
63 |
|
} |