public final class SWMMobile extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SWMMobile.ClientSupportedAsserter
Checks if client is supported by SWM-mobile.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
applySettings(SWMMobileSettings settings)
Apply settings for this mgwt app.
|
static I18NConstants |
getI18N()
Returns the internationalization constants.
|
static OsDetection |
getOsDetection() |
static SWMMobileTheme |
getTheme()
Return the current theme of the Application.
|
static void |
redirectIfClientUnsupported(SWMMobile.ClientSupportedAsserter clientSupportedAsserter,
String redirectUrl)
Checks if client is supported by the application.
|
static void |
setPageResolutionCSS()
Sets the css matching the screen resolution.
|
static void |
setTheme(SWMMobileTheme toSet)
Sets the current theme of the Application.
|
public static I18NConstants getI18N()
public static SWMMobileTheme getTheme()
public static void setTheme(SWMMobileTheme toSet)
toSet - the theme to set.public static OsDetection getOsDetection()
public static void setPageResolutionCSS()
public static void applySettings(SWMMobileSettings settings)
SWMMobileSettingssettings - the settings for this apppublic static void redirectIfClientUnsupported(SWMMobile.ClientSupportedAsserter clientSupportedAsserter, String redirectUrl)
clientSupportedAsserter - class that performs the support check. Default implementation SWMMobile.ClientSupportedAsserter.redirectUrl - URL to redirect to if client is not supportedCopyright © 2011–2015 SWM. All rights reserved.