Subversion Repository Public Repository

litesoft

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

Diff revisions: vs.
  @@ -1,32 +1,32 @@
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 - public class PreventSelectionControllerStandard extends PreventSelectionController {
23 - public PreventSelectionControllerStandard() {
24 - super( Event.ONMOUSEDOWN );
25 - }
26 -
27 - @Override
28 - public void onBrowserEvent( Widget widget, Event event ) {
29 - // prevents text selection in Mozilla, Safari & Opera
30 - DOM.eventPreventDefault( event );
31 - }
32 - }
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 + public class PreventSelectionControllerStandard extends PreventSelectionController {
23 + public PreventSelectionControllerStandard() {
24 + super( Event.ONMOUSEDOWN );
25 + }
26 +
27 + @Override
28 + public void onBrowserEvent( Widget widget, Event event ) {
29 + // prevents text selection in Mozilla, Safari & Opera
30 + DOM.eventPreventDefault( event );
31 + }
32 + }