Subversion Repository Public Repository

litesoft

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

Diff revisions: vs.
  @@ -1,42 +1,42 @@
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.core.client.*;
20 -
21 - /**
22 - * A marker interface for the prevent selection controller. Used to instantiate
23 - * the controller via deferred binding.
24 - * <p>This controller prevents text selection within it's associated widget.
25 - */
26 - public abstract class PreventSelectionController extends ControllerAdaptor {
27 - private static PreventSelectionController sInstance;
28 -
29 - /**
30 - * Gets a shared instance of the controller.
31 - */
32 - public static PreventSelectionController getInstance() {
33 - if ( sInstance == null ) {
34 - sInstance = (PreventSelectionController) GWT.create( PreventSelectionController.class );
35 - }
36 - return sInstance;
37 - }
38 -
39 - public PreventSelectionController( int eventBits ) {
40 - super( eventBits, PreventSelectionController.class );
41 - }
42 - }
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.core.client.*;
20 +
21 + /**
22 + * A marker interface for the prevent selection controller. Used to instantiate
23 + * the controller via deferred binding.
24 + * <p>This controller prevents text selection within it's associated widget.
25 + */
26 + public abstract class PreventSelectionController extends ControllerAdaptor {
27 + private static PreventSelectionController sInstance;
28 +
29 + /**
30 + * Gets a shared instance of the controller.
31 + */
32 + public static PreventSelectionController getInstance() {
33 + if ( sInstance == null ) {
34 + sInstance = (PreventSelectionController) GWT.create( PreventSelectionController.class );
35 + }
36 + return sInstance;
37 + }
38 +
39 + public PreventSelectionController( int eventBits ) {
40 + super( eventBits, PreventSelectionController.class );
41 + }
42 + }