Subversion Repository Public Repository

litesoft

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

Diff revisions: vs.
  @@ -1,43 +1,43 @@
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 PreventSelectionControllerIE6 extends PreventSelectionControllerStandard {
23 - @Override
24 - public void plugIn( Widget widget ) {
25 - installHook( widget.getElement() );
26 - }
27 -
28 - @Override
29 - public void unplug( Widget widget ) {
30 - uninstallHook( widget.getElement() );
31 - }
32 -
33 - private native void installHook( Element element ) /*-{
34 - element.onselectstart = function ()
35 - {
36 - return false;
37 - };
38 - }-*/;
39 -
40 - private native void uninstallHook( Element element ) /*-{
41 - element.onselectstart = null;
42 - }-*/;
43 - }
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 PreventSelectionControllerIE6 extends PreventSelectionControllerStandard {
23 + @Override
24 + public void plugIn( Widget widget ) {
25 + installHook( widget.getElement() );
26 + }
27 +
28 + @Override
29 + public void unplug( Widget widget ) {
30 + uninstallHook( widget.getElement() );
31 + }
32 +
33 + private native void installHook( Element element ) /*-{
34 + element.onselectstart = function ()
35 + {
36 + return false;
37 + };
38 + }-*/;
39 +
40 + private native void uninstallHook( Element element ) /*-{
41 + element.onselectstart = null;
42 + }-*/;
43 + }