|
@@ -1,46 +1,46 @@ |
1 |
|
- |
// This Source Code is Copyright & Licenced as indicated below |
2 |
|
- |
package org.litesoft.GWT.client.widgets.nonpublic.external; |
3 |
|
- |
/* |
4 |
|
- |
* Copyright 2007 Mat Gessel <mat.gessel@gmail.com> |
5 |
|
- |
* |
6 |
|
- |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not |
7 |
|
- |
* use this file except in compliance with the License. You may obtain a copy of |
8 |
|
- |
* the License at |
9 |
|
- |
* |
10 |
|
- |
* http://www.apache.org/licenses/LICENSE-2.0 |
11 |
|
- |
* |
12 |
|
- |
* Unless required by applicable law or agreed to in writing, software |
13 |
|
- |
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
14 |
|
- |
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
15 |
|
- |
* License for the specific language governing permissions and limitations under |
16 |
|
- |
* the License. |
17 |
|
- |
*/ |
18 |
|
- |
|
19 |
|
- |
import com.google.gwt.user.client.*; |
20 |
|
- |
|
21 |
|
- |
public abstract class EventDelegateAdaptorBase { |
22 |
|
- |
private final int m_eventBits; |
23 |
|
- |
|
24 |
|
- |
/** |
25 |
|
- |
* Default constructor for convienence. Subclasses must override |
26 |
|
- |
* {@link #getEventBits()} if they want to process events. |
27 |
|
- |
*/ |
28 |
|
- |
public EventDelegateAdaptorBase() { |
29 |
|
- |
m_eventBits = 0; |
30 |
|
- |
} |
31 |
|
- |
|
32 |
|
- |
/** |
33 |
|
- |
* Creates an event delegate which is interested in the specified bits. |
34 |
|
- |
* |
35 |
|
- |
* @param eventBits a bitmask of the events to process |
36 |
|
- |
* |
37 |
|
- |
* @see Event |
38 |
|
- |
*/ |
39 |
|
- |
public EventDelegateAdaptorBase( int eventBits ) { |
40 |
|
- |
m_eventBits = eventBits; |
41 |
|
- |
} |
42 |
|
- |
|
43 |
|
- |
public int getEventBits() { |
44 |
|
- |
return m_eventBits; |
45 |
|
- |
} |
46 |
|
- |
} |
|
1 |
+ |
// This Source Code is Copyright & Licenced as indicated below |
|
2 |
+ |
package org.litesoft.GWT.client.widgets.nonpublic.external; |
|
3 |
+ |
/* |
|
4 |
+ |
* Copyright 2007 Mat Gessel <mat.gessel@gmail.com> |
|
5 |
+ |
* |
|
6 |
+ |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not |
|
7 |
+ |
* use this file except in compliance with the License. You may obtain a copy of |
|
8 |
+ |
* the License at |
|
9 |
+ |
* |
|
10 |
+ |
* http://www.apache.org/licenses/LICENSE-2.0 |
|
11 |
+ |
* |
|
12 |
+ |
* Unless required by applicable law or agreed to in writing, software |
|
13 |
+ |
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
|
14 |
+ |
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
|
15 |
+ |
* License for the specific language governing permissions and limitations under |
|
16 |
+ |
* the License. |
|
17 |
+ |
*/ |
|
18 |
+ |
|
|
19 |
+ |
import com.google.gwt.user.client.*; |
|
20 |
+ |
|
|
21 |
+ |
public abstract class EventDelegateAdaptorBase { |
|
22 |
+ |
private final int m_eventBits; |
|
23 |
+ |
|
|
24 |
+ |
/** |
|
25 |
+ |
* Default constructor for convienence. Subclasses must override |
|
26 |
+ |
* {@link #getEventBits()} if they want to process events. |
|
27 |
+ |
*/ |
|
28 |
+ |
public EventDelegateAdaptorBase() { |
|
29 |
+ |
m_eventBits = 0; |
|
30 |
+ |
} |
|
31 |
+ |
|
|
32 |
+ |
/** |
|
33 |
+ |
* Creates an event delegate which is interested in the specified bits. |
|
34 |
+ |
* |
|
35 |
+ |
* @param eventBits a bitmask of the events to process |
|
36 |
+ |
* |
|
37 |
+ |
* @see Event |
|
38 |
+ |
*/ |
|
39 |
+ |
public EventDelegateAdaptorBase( int eventBits ) { |
|
40 |
+ |
m_eventBits = eventBits; |
|
41 |
+ |
} |
|
42 |
+ |
|
|
43 |
+ |
public int getEventBits() { |
|
44 |
+ |
return m_eventBits; |
|
45 |
+ |
} |
|
46 |
+ |
} |