|
@@ -1,50 +1,50 @@ |
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 |
|
- |
|
17 |
|
- |
package com.google.gwt.gen2.event.shared; |
18 |
|
- |
|
19 |
|
- |
/** |
20 |
|
- |
* Base class for all handler adaptors. Handler adaptors are used for |
21 |
|
- |
* convenience when users want to bundle common handler types together. The most |
22 |
|
- |
* commonly used are |
23 |
|
- |
* {@link com.google.gwt.gen2.event.dom.client.HasAllKeyHandlers.Adaptor} and |
24 |
|
- |
* {@link com.google.gwt.gen2.event.dom.client.HasAllMouseHandlers.Adaptor}. |
25 |
|
- |
* |
26 |
|
- |
* @deprecated use the com.google.gwt.event.shared classes instead |
27 |
|
- |
*/ |
28 |
|
- |
@Deprecated |
29 |
|
- |
public class HandlerAdaptor { |
30 |
|
- |
|
31 |
|
- |
/** |
32 |
|
- |
* Human readable debugging string. |
33 |
|
- |
* |
34 |
|
- |
* @return debugging string. |
35 |
|
- |
*/ |
36 |
|
- |
public String toDebugString() { |
37 |
|
- |
return super.toString(); |
38 |
|
- |
} |
39 |
|
- |
|
40 |
|
- |
/** |
41 |
|
- |
* The toString() for {@link HandlerAdaptor} is overridden to avoid accidently |
42 |
|
- |
* including class literals in the the compiled output. Use |
43 |
|
- |
* {@link HandlerAdaptor} #toDebugString to get more information about the |
44 |
|
- |
* event. |
45 |
|
- |
*/ |
46 |
|
- |
@Override |
47 |
|
- |
public String toString() { |
48 |
|
- |
return "handler adaptor"; |
49 |
|
- |
} |
50 |
|
- |
} |
|
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 |
+ |
|
|
17 |
+ |
package com.google.gwt.gen2.event.shared; |
|
18 |
+ |
|
|
19 |
+ |
/** |
|
20 |
+ |
* Base class for all handler adaptors. Handler adaptors are used for |
|
21 |
+ |
* convenience when users want to bundle common handler types together. The most |
|
22 |
+ |
* commonly used are |
|
23 |
+ |
* {@link com.google.gwt.gen2.event.dom.client.HasAllKeyHandlers.Adaptor} and |
|
24 |
+ |
* {@link com.google.gwt.gen2.event.dom.client.HasAllMouseHandlers.Adaptor}. |
|
25 |
+ |
* |
|
26 |
+ |
* @deprecated use the com.google.gwt.event.shared classes instead |
|
27 |
+ |
*/ |
|
28 |
+ |
@Deprecated |
|
29 |
+ |
public class HandlerAdaptor { |
|
30 |
+ |
|
|
31 |
+ |
/** |
|
32 |
+ |
* Human readable debugging string. |
|
33 |
+ |
* |
|
34 |
+ |
* @return debugging string. |
|
35 |
+ |
*/ |
|
36 |
+ |
public String toDebugString() { |
|
37 |
+ |
return super.toString(); |
|
38 |
+ |
} |
|
39 |
+ |
|
|
40 |
+ |
/** |
|
41 |
+ |
* The toString() for {@link HandlerAdaptor} is overridden to avoid accidently |
|
42 |
+ |
* including class literals in the the compiled output. Use |
|
43 |
+ |
* {@link HandlerAdaptor} #toDebugString to get more information about the |
|
44 |
+ |
* event. |
|
45 |
+ |
*/ |
|
46 |
+ |
@Override |
|
47 |
+ |
public String toString() { |
|
48 |
+ |
return "handler adaptor"; |
|
49 |
+ |
} |
|
50 |
+ |
} |