Subversion Repository Public Repository

litesoft

Diff Revisions 949 vs 950 for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/nonpublic/external/EventDelegate.java

Diff revisions: vs.
  @@ -1,61 +1,61 @@
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 - import com.google.gwt.user.client.*;
20 - import com.google.gwt.user.client.ui.*;
21 -
22 - /**
23 - * An EventDelegate processes events from a widget.
24 - * <p/>
25 - * Example: <br/> To override default focus behavior you need to preview and
26 - * cancel tab events. The KeyboardListener interface does not receive the actual
27 - * events. EventPreview is really intended for popups and dialogs and will not
28 - * function if another popup/dialog is shown (think a non-modal dialog or popup
29 - * without autoclose). A solution is to have widget can delegate events to a
30 - * focus manager implementing EventDelegate.
31 - * </p>
32 - */
33 - public interface EventDelegate {
34 - /**
35 - * Get a bitmask representing events this delegate is interested in
36 - * processing.
37 - *
38 - * @return a bitmask of the events to process
39 - *
40 - * @see Event
41 - */
42 - int getEventBits();
43 -
44 - /**
45 - * Call this from your widget's onBrowserEvent() method
46 - * to to delegate events.
47 - * <p/>
48 - * <p>Example: <p>
49 - * <pre>
50 - * public void onBrowserEvent(Event event)
51 - * {
52 - * super.onBrowserEvent(event);
53 - * delegate.onBrowserEvent(this, event);
54 - * }
55 - * </pre>
56 - *
57 - * @param widget the wiget that originated the event
58 - * @param event the event
59 - */
60 - void onBrowserEvent( Widget widget, Event event );
61 - }
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 + import com.google.gwt.user.client.*;
20 + import com.google.gwt.user.client.ui.*;
21 +
22 + /**
23 + * An EventDelegate processes events from a widget.
24 + * <p/>
25 + * Example: <br/> To override default focus behavior you need to preview and
26 + * cancel tab events. The KeyboardListener interface does not receive the actual
27 + * events. EventPreview is really intended for popups and dialogs and will not
28 + * function if another popup/dialog is shown (think a non-modal dialog or popup
29 + * without autoclose). A solution is to have widget can delegate events to a
30 + * focus manager implementing EventDelegate.
31 + * </p>
32 + */
33 + public interface EventDelegate {
34 + /**
35 + * Get a bitmask representing events this delegate is interested in
36 + * processing.
37 + *
38 + * @return a bitmask of the events to process
39 + *
40 + * @see Event
41 + */
42 + int getEventBits();
43 +
44 + /**
45 + * Call this from your widget's onBrowserEvent() method
46 + * to to delegate events.
47 + * <p/>
48 + * <p>Example: <p>
49 + * <pre>
50 + * public void onBrowserEvent(Event event)
51 + * {
52 + * super.onBrowserEvent(event);
53 + * delegate.onBrowserEvent(this, event);
54 + * }
55 + * </pre>
56 + *
57 + * @param widget the wiget that originated the event
58 + * @param event the event
59 + */
60 + void onBrowserEvent( Widget widget, Event event );
61 + }