|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.client.ApplicationConfiguration
public class ApplicationConfiguration
| Nested Class Summary | |
|---|---|
static class |
ApplicationConfiguration.ErrorMessage
Wraps a native javascript object containing fields for an error message |
| Constructor Summary | |
|---|---|
ApplicationConfiguration()
|
|
| Method Summary | |
|---|---|
void |
addComponentInheritanceInfo(ValueMap valueMap)
|
void |
addComponentMappings(ValueMap valueMap,
WidgetSet widgetSet)
|
ApplicationConfiguration.ErrorMessage |
getAuthorizationError()
|
ApplicationConfiguration.ErrorMessage |
getCommunicationError()
|
static ApplicationConfiguration |
getConfigFromDOM(java.lang.String appId)
|
java.lang.Class<? extends ServerConnector> |
getConnectorClassByEncodedTag(int tag)
|
int |
getHeartbeatInterval()
|
java.lang.Integer |
getParentTag(int tag)
|
java.lang.String |
getRootPanelId()
|
static java.util.List<ApplicationConnection> |
getRunningApplications()
|
java.lang.String |
getServerSideClassNameForTag(java.lang.Integer tag)
|
java.lang.String |
getServiceUrl()
Gets the URL to the server-side VaadinService. |
java.lang.String |
getServiceUrlParameterName()
Return the name of the parameter used to to send data to the service url. |
java.lang.String |
getServletVersion()
|
ApplicationConfiguration.ErrorMessage |
getSessionExpiredError()
|
java.lang.Integer[] |
getTagsForServerSideClassName(java.lang.String classname)
Returns all tags for given class. |
java.lang.String |
getThemeName()
Deprecated. as of 7.3. Use UIConnector.getActiveTheme() to get
the theme currently in use |
java.lang.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. |
java.lang.String |
getVaadinDirUrl()
Gets the URL of the VAADIN directory on the server. |
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(java.lang.String widgetsetName)
Registers that callback that the bootstrap javascript uses to start applications once the widgetset is loaded and all required information is available |
void |
setAppId(java.lang.String appId)
|
void |
setWidgetsetVersionSent()
Registers that the widget set version has been sent to the server. |
static void |
startApplication(java.lang.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ApplicationConfiguration()
| Method Detail |
|---|
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 java.lang.String getServiceUrlParameterName()
useServiceUrlPathParam() is
true.
v-resourcePathpublic java.lang.String getRootPanelId()
public java.lang.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 java.lang.String getThemeName()
UIConnector.getActiveTheme() to get
the theme currently in use
public java.lang.String getVaadinDirUrl()
public void setAppId(java.lang.String appId)
public java.lang.String getUIDL()
public boolean isStandalone()
public int getUIId()
public int getHeartbeatInterval()
public JavaScriptObject getVersionInfoJSObject()
public ApplicationConfiguration.ErrorMessage getCommunicationError()
public ApplicationConfiguration.ErrorMessage getAuthorizationError()
public ApplicationConfiguration.ErrorMessage getSessionExpiredError()
public static void startApplication(java.lang.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 java.util.List<ApplicationConnection> getRunningApplications()
public static ApplicationConfiguration getConfigFromDOM(java.lang.String appId)
public java.lang.String getServletVersion()
public java.lang.Class<? extends ServerConnector> getConnectorClassByEncodedTag(int tag)
public void addComponentInheritanceInfo(ValueMap valueMap)
public void addComponentMappings(ValueMap valueMap,
WidgetSet widgetSet)
public java.lang.Integer[] getTagsForServerSideClassName(java.lang.String classname)
ApplicationConfiguration to keep track of different classes and
their hierarchy
classname - name of class which tags we want
public java.lang.Integer getParentTag(int tag)
public java.lang.String getServerSideClassNameForTag(java.lang.Integer tag)
public void onModuleLoad()
public static void registerCallback(java.lang.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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||