Package com.vaadin.client.bootstrap
Class Bootstrapper
- java.lang.Object
-
- com.vaadin.client.bootstrap.Bootstrapper
-
- All Implemented Interfaces:
com.google.gwt.core.client.EntryPoint
public class Bootstrapper extends Object implements com.google.gwt.core.client.EntryPoint
Handles bootstrapping of the application.Reads the configuration provided by the server in the DOM and starts the client engine (
ApplicationConnection).Acts as the GWT entry point.
- Since:
- 1.0
- Author:
- Vaadin Ltd
-
-
Constructor Summary
Constructors Constructor Description Bootstrapper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JsArray<ApplicationConnection>getRunningApplications()Gets a list of references to all running application instances.voidonModuleLoad()static voidregisterCallback(String widgetsetName)Registers the callback that the bootstrap javascript uses to start applications once the widgetset is loaded and all required information is available.static voidstartApplication(String applicationId)Starts the application with a given id by reading the configuration options stored by the bootstrap javascript.
-
-
-
Method Detail
-
onModuleLoad
public void onModuleLoad()
- Specified by:
onModuleLoadin interfacecom.google.gwt.core.client.EntryPoint
-
startApplication
public static void startApplication(String applicationId)
Starts the application with a given id by reading the configuration options stored by the bootstrap javascript.- Parameters:
applicationId- id of the application to load, this is also the id of the html element into which the application should be rendered.
-
getRunningApplications
public static JsArray<ApplicationConnection> getRunningApplications()
Gets a list of references to all running application instances.- Returns:
- a list of ApplicationConnections currently active
-
registerCallback
public static void registerCallback(String widgetsetName)
Registers the callback that the bootstrap javascript uses to start applications once the widgetset is loaded and all required information is available.- Parameters:
widgetsetName- the name of this widgetset
-
-