litesoft
Diff Revisions
475
vs
948
for /trunk/Java/GWT/Client/src/com/google/gwt/gen2/event/dom/client/KeyPressEvent.java
|
@@ -23,23 +23,20 @@ |
23 |
23 |
|
* @deprecated use the com.google.gwt.event.dom.client classes instead |
24 |
24 |
|
*/ |
25 |
25 |
|
@Deprecated |
26 |
|
- |
public class KeyPressEvent extends KeyEvent |
27 |
|
- |
{ |
|
26 |
+ |
public class KeyPressEvent extends KeyEvent { |
28 |
27 |
|
|
29 |
28 |
|
/** |
30 |
29 |
|
* Event type for key press events. Represents the meta-data associated with |
31 |
30 |
|
* this event. |
32 |
31 |
|
*/ |
33 |
|
- |
public static final Type<KeyPressEvent, KeyPressHandler> TYPE = new Type<KeyPressEvent, KeyPressHandler>( Event.ONKEYPRESS ) |
34 |
|
- |
{ |
|
32 |
+ |
public static final Type<KeyPressEvent, KeyPressHandler> TYPE = new Type<KeyPressEvent, KeyPressHandler>( Event.ONKEYPRESS ) { |
35 |
33 |
|
@Override |
36 |
|
- |
public void fire( KeyPressHandler handler, KeyPressEvent event ) |
37 |
|
- |
{ |
|
34 |
+ |
public void fire( KeyPressHandler handler, KeyPressEvent event ) { |
38 |
35 |
|
handler.onKeyPress( event ); |
39 |
36 |
|
} |
40 |
37 |
|
|
41 |
|
- |
@Override KeyPressEvent wrap( Event nativeEvent ) |
42 |
|
- |
{ |
|
38 |
+ |
@Override |
|
39 |
+ |
KeyPressEvent wrap( Event nativeEvent ) { |
43 |
40 |
|
return new KeyPressEvent( nativeEvent ); |
44 |
41 |
|
} |
45 |
42 |
|
}; |
|
@@ -49,8 +46,7 @@ |
49 |
46 |
|
* |
50 |
47 |
|
* @param nativeEvent the native event object |
51 |
48 |
|
*/ |
52 |
|
- |
public KeyPressEvent( Event nativeEvent ) |
53 |
|
- |
{ |
|
49 |
+ |
public KeyPressEvent( Event nativeEvent ) { |
54 |
50 |
|
super( nativeEvent ); |
55 |
51 |
|
} |
56 |
52 |
|
|
|
@@ -59,14 +55,12 @@ |
59 |
55 |
|
* |
60 |
56 |
|
* @return the char code |
61 |
57 |
|
*/ |
62 |
|
- |
public char getCharCode() |
63 |
|
- |
{ |
|
58 |
+ |
public char getCharCode() { |
64 |
59 |
|
return getCharCode( getNativeEvent() ); |
65 |
60 |
|
} |
66 |
61 |
|
|
67 |
62 |
|
@Override |
68 |
|
- |
protected Type getType() |
69 |
|
- |
{ |
|
63 |
+ |
protected Type getType() { |
70 |
64 |
|
return TYPE; |
71 |
65 |
|
} |
72 |
66 |
|
|