Package com.vaadin.client.bootstrap
Class Bootstrapper
java.lang.Object
com.vaadin.client.bootstrap.Bootstrapper
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic JsArray<ApplicationConnection>Gets a list of references to all running application instances.voidstatic 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.
-
Constructor Details
-
Bootstrapper
public Bootstrapper()
-
-
Method Details
-
onModuleLoad
public void onModuleLoad()- Specified by:
onModuleLoadin interfacecom.google.gwt.core.client.EntryPoint
-
startApplication
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
Gets a list of references to all running application instances.- Returns:
- a list of ApplicationConnections currently active
-
registerCallback
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
-