public class ApplicationConfiguration extends Object implements com.google.gwt.core.client.EntryPoint
| Modifier and Type | Class and Description |
|---|---|
static class |
ApplicationConfiguration.ErrorMessage
Wraps a native javascript object containing fields for an error message
|
| Constructor and Description |
|---|
ApplicationConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
void |
addComponentInheritanceInfo(ValueMap valueMap) |
void |
addComponentMappings(ValueMap valueMap,
WidgetSet widgetSet) |
String |
getAtmosphereJSVersion()
Return Atmosphere JS version.
|
String |
getAtmosphereVersion()
Return Atmosphere version.
|
ApplicationConfiguration.ErrorMessage |
getAuthorizationError() |
ApplicationConfiguration.ErrorMessage |
getCommunicationError() |
static ApplicationConfiguration |
getConfigFromDOM(String appId) |
Class<? extends ServerConnector> |
getConnectorClassByEncodedTag(int tag) |
int |
getHeartbeatInterval() |
Integer |
getParentTag(int tag) |
String |
getRootPanelId() |
static List<ApplicationConnection> |
getRunningApplications() |
String |
getServerSideClassNameForTag(Integer tag) |
String |
getServiceUrl()
Gets the URL to the server-side VaadinService.
|
String |
getServiceUrlParameterName()
Return the name of the parameter used to to send data to the service url.
|
String |
getServletVersion() |
ApplicationConfiguration.ErrorMessage |
getSessionExpiredError() |
Integer[] |
getTagsForServerSideClassName(String classname)
Returns all tags for given class.
|
String |
getThemeName()
Deprecated.
as of 7.3. Use
UIConnector.getActiveTheme() to get
the theme currently in use |
String |
getUIDL()
Gets the initial UIDL from the DOM, if it was provided during the init
process.
|
int |
getUIId()
Gets the UI id of the server-side UI associated with this client-side
instance.
|
String |
getVaadinDirUrl()
Gets the URL of the VAADIN directory on the server.
|
com.google.gwt.core.client.JavaScriptObject |
getVersionInfoJSObject() |
static boolean |
isDebugMode()
Checks if client side is in debug mode.
|
static boolean |
isProductionMode()
Checks if production mode is enabled.
|
static boolean |
isQuietDebugMode()
Checks whether debug logging should be quiet
|
boolean |
isStandalone() |
boolean |
isWidgetsetVersionSent()
Checks whether the widget set version has been sent to the server.
|
void |
onModuleLoad() |
static void |
registerCallback(String widgetsetName)
Registers that callback that the bootstrap javascript uses to start
applications once the widgetset is loaded and all required information is
available
|
static void |
runWhenDependenciesLoaded(com.google.gwt.user.client.Command c) |
void |
setAppId(String appId) |
void |
setWidgetsetVersionSent()
Registers that the widget set version has been sent to the server.
|
static void |
startApplication(String applicationId)
Starts the application with a given id by reading the configuration
options stored by the bootstrap javascript.
|
boolean |
useServiceUrlPathParam()
Checks whether path info in requests to the server-side service should be
in a request parameter (named
v-resourcePath) or appended to
the end of the service URL. |
public boolean useServiceUrlPathParam()
v-resourcePath) or appended to
the end of the service URL.true if path info should be a request parameter;
false if the path info goes after the service URLgetServiceUrl()public String getServiceUrlParameterName()
useServiceUrlPathParam() is
true.v-resourcePathpublic String getRootPanelId()
public String getServiceUrl()
useServiceUrlPathParam() return true, the requested
path info should be in the v-resourcePath query parameter;
else the path info should be appended to the end of the URL.useServiceUrlPathParam()@Deprecated public String getThemeName()
UIConnector.getActiveTheme() to get
the theme currently in usepublic String getVaadinDirUrl()
public void setAppId(String appId)
public String getUIDL()
public boolean isStandalone()
public int getUIId()
public int getHeartbeatInterval()
public com.google.gwt.core.client.JavaScriptObject getVersionInfoJSObject()
public ApplicationConfiguration.ErrorMessage getCommunicationError()
public ApplicationConfiguration.ErrorMessage getAuthorizationError()
public ApplicationConfiguration.ErrorMessage getSessionExpiredError()
public static void startApplication(String applicationId)
applicationId - id of the application to load, this is also the id of the html
element into which the application should be rendered.public static List<ApplicationConnection> getRunningApplications()
public static ApplicationConfiguration getConfigFromDOM(String appId)
public String getServletVersion()
public String getAtmosphereVersion()
public String getAtmosphereJSVersion()
public Class<? extends ServerConnector> getConnectorClassByEncodedTag(int tag)
public void addComponentInheritanceInfo(ValueMap valueMap)
public Integer[] getTagsForServerSideClassName(String classname)
ApplicationConfiguration to keep track of different classes and
their hierarchyclassname - name of class which tags we wantpublic Integer getParentTag(int tag)
public static void runWhenDependenciesLoaded(com.google.gwt.user.client.Command c)
c - public void onModuleLoad()
onModuleLoad in interface com.google.gwt.core.client.EntryPointpublic static void registerCallback(String widgetsetName)
widgetsetName - the name of this widgetsetpublic static boolean isDebugMode()
isProductionMode()public static boolean isProductionMode()
true if production mode is enabled; otherwise
false.public static boolean isQuietDebugMode()
true if debug logging should be quietpublic boolean isWidgetsetVersionSent()
true if browser information has already been sentpublic void setWidgetsetVersionSent()
Copyright © 2016 Vaadin Ltd. All rights reserved.