|
@@ -1,40 +1,40 @@ |
1 |
|
- |
// This Source Code is Copyright & Licenced as indicated below |
2 |
|
- |
package org.litesoft.GWT.client.widgets.nonpublic.external; |
3 |
|
- |
/* |
4 |
|
- |
* Copyright 2006 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 |
|
- |
/** |
20 |
|
- |
* An interface for implementing mouse actions. |
21 |
|
- |
*/ |
22 |
|
- |
public abstract interface DragGesture { |
23 |
|
- |
/** |
24 |
|
- |
* Called at beginning of the input operation. This may be triggered by a |
25 |
|
- |
* mousedown, or may be triggered by a hotkey during the middle of a drag. |
26 |
|
- |
*/ |
27 |
|
- |
void start( MouseEvent event ); |
28 |
|
- |
|
29 |
|
- |
/** |
30 |
|
- |
* Called for each mouse movement during the input operation. |
31 |
|
- |
*/ |
32 |
|
- |
void step( DragEvent event ); |
33 |
|
- |
|
34 |
|
- |
/** |
35 |
|
- |
* Called at the end of the input operation, after the last movement. This |
36 |
|
- |
* may be triggered by a mouseup or may be triggered by the release of a |
37 |
|
- |
* hotkey during a drag. |
38 |
|
- |
*/ |
39 |
|
- |
void finish(); |
40 |
|
- |
} |
|
1 |
+ |
// This Source Code is Copyright & Licenced as indicated below |
|
2 |
+ |
package org.litesoft.GWT.client.widgets.nonpublic.external; |
|
3 |
+ |
/* |
|
4 |
+ |
* Copyright 2006 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 |
+ |
/** |
|
20 |
+ |
* An interface for implementing mouse actions. |
|
21 |
+ |
*/ |
|
22 |
+ |
public abstract interface DragGesture { |
|
23 |
+ |
/** |
|
24 |
+ |
* Called at beginning of the input operation. This may be triggered by a |
|
25 |
+ |
* mousedown, or may be triggered by a hotkey during the middle of a drag. |
|
26 |
+ |
*/ |
|
27 |
+ |
void start( MouseEvent event ); |
|
28 |
+ |
|
|
29 |
+ |
/** |
|
30 |
+ |
* Called for each mouse movement during the input operation. |
|
31 |
+ |
*/ |
|
32 |
+ |
void step( DragEvent event ); |
|
33 |
+ |
|
|
34 |
+ |
/** |
|
35 |
+ |
* Called at the end of the input operation, after the last movement. This |
|
36 |
+ |
* may be triggered by a mouseup or may be triggered by the release of a |
|
37 |
+ |
* hotkey during a drag. |
|
38 |
+ |
*/ |
|
39 |
+ |
void finish(); |
|
40 |
+ |
} |