com.itmill.toolkit.terminal.gwt.client
Class ApplicationConfiguration

java.lang.Object
  extended by com.itmill.toolkit.terminal.gwt.client.ApplicationConfiguration

public class ApplicationConfiguration
extends Object


Constructor Summary
ApplicationConfiguration()
           
 
Method Summary
 String getApplicationUri()
           
 String getApplicationVersion()
           
 String getCommunicationErrorCaption()
           
 String getCommunicationErrorMessage()
           
 String getCommunicationErrorUrl()
           
static ApplicationConfiguration getConfigFromDOM(String appId)
           
 String getInitialWindowName()
           
 String getPathInfo()
           
 String getRootPanelId()
           
static List<ApplicationConnection> getRunningApplications()
           
 String getServletVersion()
           
 String getThemeUri()
           
 com.google.gwt.core.client.JavaScriptObject getVersionInfoJSObject()
           
static void initConfigurations(WidgetSet widgetset)
          Inits the ApplicationConfiguration by reading the DOM and instantiating ApplicationConenctions accordingly.
 void setAppId(String appId)
           
 void setInitialWindowName(String name)
           
static boolean startNextApplication()
          Starts the next unstarted application.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationConfiguration

public ApplicationConfiguration()
Method Detail

getRootPanelId

public String getRootPanelId()

getApplicationUri

public String getApplicationUri()

getPathInfo

public String getPathInfo()

getThemeUri

public String getThemeUri()

setAppId

public void setAppId(String appId)

setInitialWindowName

public void setInitialWindowName(String name)

getInitialWindowName

public String getInitialWindowName()

getVersionInfoJSObject

public com.google.gwt.core.client.JavaScriptObject getVersionInfoJSObject()

getCommunicationErrorCaption

public String getCommunicationErrorCaption()

getCommunicationErrorMessage

public String getCommunicationErrorMessage()

getCommunicationErrorUrl

public String getCommunicationErrorUrl()

initConfigurations

public static void initConfigurations(WidgetSet widgetset)
Inits the ApplicationConfiguration by reading the DOM and instantiating ApplicationConenctions accordingly. Call startNextApplication() to actually start the applications.

Parameters:
widgetset - the widgetset that is running the apps

startNextApplication

public static boolean startNextApplication()
Starts the next unstarted application. The WidgetSet should call this once to start the first application; after that, each application should call this once it has started. This ensures that the applications are started synchronously, which is neccessary to avoid session-id problems.

Returns:
true if an unstarted application was found

getRunningApplications

public static List<ApplicationConnection> getRunningApplications()

getConfigFromDOM

public static ApplicationConfiguration getConfigFromDOM(String appId)

getServletVersion

public String getServletVersion()

getApplicationVersion

public String getApplicationVersion()


Copyright © 2000-2009 IT Mill Ltd. All Rights Reserved.