|
@@ -1,57 +1,57 @@ |
1 |
|
- |
/* |
2 |
|
- |
* Copyright 2008 Google Inc. |
3 |
|
- |
* |
4 |
|
- |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not |
5 |
|
- |
* use this file except in compliance with the License. You may obtain a copy of |
6 |
|
- |
* the License at |
7 |
|
- |
* |
8 |
|
- |
* http://www.apache.org/licenses/LICENSE-2.0 |
9 |
|
- |
* |
10 |
|
- |
* Unless required by applicable law or agreed to in writing, software |
11 |
|
- |
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
12 |
|
- |
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
13 |
|
- |
* License for the specific language governing permissions and limitations under |
14 |
|
- |
* the License. |
15 |
|
- |
*/ |
16 |
|
- |
package com.google.gwt.gen2.event.dom.client; |
17 |
|
- |
|
18 |
|
- |
import com.google.gwt.user.client.*; |
19 |
|
- |
|
20 |
|
- |
/** |
21 |
|
- |
* Represents a native focus event. |
22 |
|
- |
* |
23 |
|
- |
* @deprecated use the com.google.gwt.event.dom.client classes instead |
24 |
|
- |
*/ |
25 |
|
- |
@Deprecated |
26 |
|
- |
public class FocusEvent extends DomEvent { |
27 |
|
- |
|
28 |
|
- |
/** |
29 |
|
- |
* Event type for focus events. Represents the meta-data associated with this |
30 |
|
- |
* event. |
31 |
|
- |
*/ |
32 |
|
- |
public static final Type<FocusEvent, FocusHandler> TYPE = new Type<FocusEvent, FocusHandler>( Event.ONFOCUS ) { |
33 |
|
- |
@Override |
34 |
|
- |
public void fire( FocusHandler handler, FocusEvent event ) { |
35 |
|
- |
handler.onFocus( event ); |
36 |
|
- |
} |
37 |
|
- |
|
38 |
|
- |
@Override |
39 |
|
- |
FocusEvent wrap( Event nativeEvent ) { |
40 |
|
- |
return new FocusEvent( nativeEvent ); |
41 |
|
- |
} |
42 |
|
- |
}; |
43 |
|
- |
|
44 |
|
- |
/** |
45 |
|
- |
* Constructor. |
46 |
|
- |
* |
47 |
|
- |
* @param nativeEvent the native event object |
48 |
|
- |
*/ |
49 |
|
- |
public FocusEvent( Event nativeEvent ) { |
50 |
|
- |
super( nativeEvent ); |
51 |
|
- |
} |
52 |
|
- |
|
53 |
|
- |
@Override |
54 |
|
- |
protected Type getType() { |
55 |
|
- |
return TYPE; |
56 |
|
- |
} |
57 |
|
- |
} |
|
1 |
+ |
/* |
|
2 |
+ |
* Copyright 2008 Google Inc. |
|
3 |
+ |
* |
|
4 |
+ |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not |
|
5 |
+ |
* use this file except in compliance with the License. You may obtain a copy of |
|
6 |
+ |
* the License at |
|
7 |
+ |
* |
|
8 |
+ |
* http://www.apache.org/licenses/LICENSE-2.0 |
|
9 |
+ |
* |
|
10 |
+ |
* Unless required by applicable law or agreed to in writing, software |
|
11 |
+ |
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
|
12 |
+ |
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
|
13 |
+ |
* License for the specific language governing permissions and limitations under |
|
14 |
+ |
* the License. |
|
15 |
+ |
*/ |
|
16 |
+ |
package com.google.gwt.gen2.event.dom.client; |
|
17 |
+ |
|
|
18 |
+ |
import com.google.gwt.user.client.*; |
|
19 |
+ |
|
|
20 |
+ |
/** |
|
21 |
+ |
* Represents a native focus event. |
|
22 |
+ |
* |
|
23 |
+ |
* @deprecated use the com.google.gwt.event.dom.client classes instead |
|
24 |
+ |
*/ |
|
25 |
+ |
@Deprecated |
|
26 |
+ |
public class FocusEvent extends DomEvent { |
|
27 |
+ |
|
|
28 |
+ |
/** |
|
29 |
+ |
* Event type for focus events. Represents the meta-data associated with this |
|
30 |
+ |
* event. |
|
31 |
+ |
*/ |
|
32 |
+ |
public static final Type<FocusEvent, FocusHandler> TYPE = new Type<FocusEvent, FocusHandler>( Event.ONFOCUS ) { |
|
33 |
+ |
@Override |
|
34 |
+ |
public void fire( FocusHandler handler, FocusEvent event ) { |
|
35 |
+ |
handler.onFocus( event ); |
|
36 |
+ |
} |
|
37 |
+ |
|
|
38 |
+ |
@Override |
|
39 |
+ |
FocusEvent wrap( Event nativeEvent ) { |
|
40 |
+ |
return new FocusEvent( nativeEvent ); |
|
41 |
+ |
} |
|
42 |
+ |
}; |
|
43 |
+ |
|
|
44 |
+ |
/** |
|
45 |
+ |
* Constructor. |
|
46 |
+ |
* |
|
47 |
+ |
* @param nativeEvent the native event object |
|
48 |
+ |
*/ |
|
49 |
+ |
public FocusEvent( Event nativeEvent ) { |
|
50 |
+ |
super( nativeEvent ); |
|
51 |
+ |
} |
|
52 |
+ |
|
|
53 |
+ |
@Override |
|
54 |
+ |
protected Type getType() { |
|
55 |
+ |
return TYPE; |
|
56 |
+ |
} |
|
57 |
+ |
} |