Subversion Repository Public Repository

litesoft

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

Diff revisions: vs.
  @@ -1,76 +1,76 @@
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 - * This adaptor class provides stub implementations for Controller methods. Most
24 - * controllers will be interested in {@link #plugIn(Widget)}, {@link #unplug(Widget)}
25 - * or
26 - * {@link asquare.gwt.tk.client.ui.behavior.EventDelegate#onBrowserEvent(Widget, Event) onBrowserEvent()}.
27 - */
28 - public abstract class ControllerAdaptor extends EventDelegateAdaptor implements Controller {
29 - private final Class m_id;
30 -
31 - /**
32 - * Creates a ControllerAdaptor with the specified id.
33 - *
34 - * @param id the controller id
35 - */
36 - public ControllerAdaptor( Class id ) {
37 - this( 0, id );
38 - }
39 -
40 - /**
41 - * Creates a ControllerAdaptor with the specified event mask and id.
42 - *
43 - * @param eventBits a bitmask representing the events this controller is
44 - * interested in
45 - * @param id the controller id
46 - */
47 - public ControllerAdaptor( int eventBits, Class id ) {
48 - super( eventBits );
49 - m_id = id;
50 - }
51 -
52 - /*
53 - * (non-Javadoc)
54 - * @see asquare.gwt.tk.client.ui.behavior.Controller#getId()
55 - */
56 - @Override
57 - public Class getId() {
58 - return m_id;
59 - }
60 -
61 - /*
62 - * (non-Javadoc)
63 - * @see asquare.gwt.tk.client.ui.behavior.Controller#plugIn(com.google.gwt.user.client.ui.Widget)
64 - */
65 - @Override
66 - public void plugIn( Widget widget ) {
67 - }
68 -
69 - /*
70 - * (non-Javadoc)
71 - * @see asquare.gwt.tk.client.ui.behavior.Controller#unplug(com.google.gwt.user.client.ui.Widget)
72 - */
73 - @Override
74 - public void unplug( Widget widget ) {
75 - }
76 - }
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 + * This adaptor class provides stub implementations for Controller methods. Most
24 + * controllers will be interested in {@link #plugIn(Widget)}, {@link #unplug(Widget)}
25 + * or
26 + * {@link asquare.gwt.tk.client.ui.behavior.EventDelegate#onBrowserEvent(Widget, Event) onBrowserEvent()}.
27 + */
28 + public abstract class ControllerAdaptor extends EventDelegateAdaptor implements Controller {
29 + private final Class m_id;
30 +
31 + /**
32 + * Creates a ControllerAdaptor with the specified id.
33 + *
34 + * @param id the controller id
35 + */
36 + public ControllerAdaptor( Class id ) {
37 + this( 0, id );
38 + }
39 +
40 + /**
41 + * Creates a ControllerAdaptor with the specified event mask and id.
42 + *
43 + * @param eventBits a bitmask representing the events this controller is
44 + * interested in
45 + * @param id the controller id
46 + */
47 + public ControllerAdaptor( int eventBits, Class id ) {
48 + super( eventBits );
49 + m_id = id;
50 + }
51 +
52 + /*
53 + * (non-Javadoc)
54 + * @see asquare.gwt.tk.client.ui.behavior.Controller#getId()
55 + */
56 + @Override
57 + public Class getId() {
58 + return m_id;
59 + }
60 +
61 + /*
62 + * (non-Javadoc)
63 + * @see asquare.gwt.tk.client.ui.behavior.Controller#plugIn(com.google.gwt.user.client.ui.Widget)
64 + */
65 + @Override
66 + public void plugIn( Widget widget ) {
67 + }
68 +
69 + /*
70 + * (non-Javadoc)
71 + * @see asquare.gwt.tk.client.ui.behavior.Controller#unplug(com.google.gwt.user.client.ui.Widget)
72 + */
73 + @Override
74 + public void unplug( Widget widget ) {
75 + }
76 + }