Subversion Repository Public Repository

litesoft

Diff Revisions 905 vs 906 for /trunk/mobileGWT/mgwt/src/main/java/com/googlecode/mgwt/ui/client/MGWT.java

Diff revisions: vs.
  @@ -1,11 +1,11 @@
1 1 /*
2 2 * Copyright 2010 Daniel Kurka
3 - *
3 + *
4 4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
5 5 * in compliance with the License. You may obtain a copy of the License at
6 - *
6 + *
7 7 * http://www.apache.org/licenses/LICENSE-2.0
8 - *
8 + *
9 9 * Unless required by applicable law or agreed to in writing, software distributed under the License
10 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
11 11 * or implied. See the License for the specific language governing permissions and limitations under
  @@ -38,6 +38,7 @@
38 38 import com.google.gwt.user.client.Window;
39 39 import com.google.gwt.user.client.ui.Anchor;
40 40 import com.google.gwt.user.client.ui.RootPanel;
41 +
41 42 import com.googlecode.mgwt.dom.client.event.orientation.OrientationChangeEvent;
42 43 import com.googlecode.mgwt.dom.client.event.orientation.OrientationChangeEvent.ORIENTATION;
43 44 import com.googlecode.mgwt.dom.client.event.orientation.OrientationChangeHandler;
  @@ -48,9 +49,9 @@
48 49 /**
49 50 * The MGWT Object is used to apply settings for an MGWT App. It also provides an instance of
50 51 * {@link OsDetection}, as well a way to determine the device orientation
51 - *
52 - *
53 - *
52 + *
53 + *
54 + *
54 55 * @author Daniel Kurka
55 56 */
56 57 public class MGWT {
  @@ -69,7 +70,7 @@
69 70
70 71 /**
71 72 * Add a orientation handler to detect the device orientation
72 - *
73 + *
73 74 * @param handler the handler to add
74 75 * {@link com.googlecode.mgwt.dom.client.event.orientation.OrientationChangeHandler} .
75 76 * @return a {@link com.google.gwt.event.shared.HandlerRegistration} object.
  @@ -82,11 +83,11 @@
82 83 /**
83 84 * Apply settings for this mgwt app. Every app should call this method with the options its wants
84 85 * for their app
85 - *
86 + *
86 87 * The options are documented in @link {@link MGWTSettings}
87 - *
88 + *
88 89 * @param settings the settings for this app
89 - *
90 + *
90 91 */
91 92 public static void applySettings(MGWTSettings settings) {
92 93
  @@ -181,9 +182,9 @@
181 182
182 183 /**
183 184 * Detect if a web app is in full screen mode
184 - *
185 + *
185 186 * fullscreen currently only exits on ios
186 - *
187 + *
187 188 * @return true if the web app is in full screen mode, otherwise false
188 189 */
189 190 public static native boolean isFullScreen()/*-{
  @@ -194,13 +195,12 @@
194 195 }-*/;
195 196
196 197 /**
197 - *
198 + *
198 199 * Considered internal don`t call!
199 200 * <p>
200 201 * fixIOSScrollIssueBlur
201 202 * </p>
202 203 */
203 - // @edu.umd.cs.findbugs.annotations.SuppressWarnings(value = "LI_LAZY_INIT_UPDATE_STATIC", justification = "no multithreading in gwt code")
204 204 public static void fixIOSScrollIssueBlur() {
205 205 if (!scrollingDisabled) {
206 206 return;
  @@ -242,7 +242,7 @@
242 242
243 243 /**
244 244 * Get the os detection interface
245 - *
245 + *
246 246 * @return a {@link com.googlecode.mgwt.ui.client.OsDetection} object.
247 247 */
248 248 public static OsDetection getOsDetection() {
  @@ -254,7 +254,7 @@
254 254
255 255 /**
256 256 * Get the current orientation of the device
257 - *
257 + *
258 258 * @return the current orientation of the device
259 259 */
260 260 public static ORIENTATION getOrientation() {