litesoft
Diff Revisions
886
vs
887
for /trunk/mobileGWT/mgwt/src/main/java/com/googlecode/mgwt/ui/client/MGWT.java
|
@@ -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 |
|
@@ -48,9 +48,9 @@ |
48 |
48 |
|
/** |
49 |
49 |
|
* The MGWT Object is used to apply settings for an MGWT App. It also provides an instance of |
50 |
50 |
|
* {@link OsDetection}, as well a way to determine the device orientation |
51 |
|
- |
* |
52 |
|
- |
* |
53 |
|
- |
* |
|
51 |
+ |
* |
|
52 |
+ |
* |
|
53 |
+ |
* |
54 |
54 |
|
* @author Daniel Kurka |
55 |
55 |
|
*/ |
56 |
56 |
|
public class MGWT { |
|
@@ -69,7 +69,7 @@ |
69 |
69 |
|
|
70 |
70 |
|
/** |
71 |
71 |
|
* Add a orientation handler to detect the device orientation |
72 |
|
- |
* |
|
72 |
+ |
* |
73 |
73 |
|
* @param handler the handler to add |
74 |
74 |
|
* {@link com.googlecode.mgwt.dom.client.event.orientation.OrientationChangeHandler} . |
75 |
75 |
|
* @return a {@link com.google.gwt.event.shared.HandlerRegistration} object. |
|
@@ -82,11 +82,11 @@ |
82 |
82 |
|
/** |
83 |
83 |
|
* Apply settings for this mgwt app. Every app should call this method with the options its wants |
84 |
84 |
|
* for their app |
85 |
|
- |
* |
|
85 |
+ |
* |
86 |
86 |
|
* The options are documented in @link {@link MGWTSettings} |
87 |
|
- |
* |
|
87 |
+ |
* |
88 |
88 |
|
* @param settings the settings for this app |
89 |
|
- |
* |
|
89 |
+ |
* |
90 |
90 |
|
*/ |
91 |
91 |
|
public static void applySettings(MGWTSettings settings) { |
92 |
92 |
|
|
|
@@ -181,9 +181,9 @@ |
181 |
181 |
|
|
182 |
182 |
|
/** |
183 |
183 |
|
* Detect if a web app is in full screen mode |
184 |
|
- |
* |
|
184 |
+ |
* |
185 |
185 |
|
* fullscreen currently only exits on ios |
186 |
|
- |
* |
|
186 |
+ |
* |
187 |
187 |
|
* @return true if the web app is in full screen mode, otherwise false |
188 |
188 |
|
*/ |
189 |
189 |
|
public static native boolean isFullScreen()/*-{ |
|
@@ -194,13 +194,13 @@ |
194 |
194 |
|
}-*/; |
195 |
195 |
|
|
196 |
196 |
|
/** |
197 |
|
- |
* |
|
197 |
+ |
* |
198 |
198 |
|
* Considered internal don`t call! |
199 |
199 |
|
* <p> |
200 |
200 |
|
* fixIOSScrollIssueBlur |
201 |
201 |
|
* </p> |
202 |
202 |
|
*/ |
203 |
|
- |
@edu.umd.cs.findbugs.annotations.SuppressWarnings(value = "LI_LAZY_INIT_UPDATE_STATIC", justification = "no multithreading in gwt code") |
|
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() { |