use of com.vaadin.client.ApplicationConfiguration in project flow by vaadin.
the class GwtMultipleBindingTest method gwtSetUp.
@Override
protected void gwtSetUp() throws Exception {
super.gwtSetUp();
Reactive.reset();
registry = new Registry() {
{
set(ConstantPool.class, new ConstantPool());
set(ExistingElementMap.class, new ExistingElementMap());
set(ApplicationConfiguration.class, new ApplicationConfiguration());
}
};
tree = new StateTree(registry) {
@Override
public void sendTemplateEventToServer(StateNode node, String methodName, JsArray<?> argValues, int promiseId) {
}
};
node = new TestStateNode(tree);
// populate "element data" feature to be able to bind node as a plain
// element
node.getMap(NodeFeatures.ELEMENT_DATA);
element = Browser.getDocument().createElement("div");
}
use of com.vaadin.client.ApplicationConfiguration in project flow by vaadin.
the class Bootstrapper method getConfigFromDOM.
/**
* Constructs an ApplicationConfiguration object based on the information
* available in the DOM.
*
* @param appId
* the application id
* @return an application configuration object containing the read
* information
*/
private static ApplicationConfiguration getConfigFromDOM(String appId) {
ApplicationConfiguration conf = new ApplicationConfiguration();
conf.setApplicationId(appId);
populateApplicationConfiguration(conf, getJsoConfiguration(appId));
return conf;
}
use of com.vaadin.client.ApplicationConfiguration in project flow by vaadin.
the class Bootstrapper method doStartApplication.
private static void doStartApplication(final String applicationId) {
Profiler.enter("Bootstrapper.startApplication");
ApplicationConfiguration appConf = getConfigFromDOM(applicationId);
ApplicationConnection applicationConnection = new ApplicationConnection(appConf);
runningApplications.push(applicationConnection);
Profiler.leave("Bootstrapper.startApplication");
ValueMap initialUidl = getJsoConfiguration(applicationId).getUIDL();
applicationConnection.start(initialUidl);
}
use of com.vaadin.client.ApplicationConfiguration in project flow by vaadin.
the class GwtEventHandlerTest method gwtSetUp.
@Override
protected void gwtSetUp() throws Exception {
super.gwtSetUp();
Reactive.reset();
registry = new Registry() {
{
set(ConstantPool.class, new ConstantPool());
set(ApplicationConfiguration.class, new ApplicationConfiguration());
}
};
tree = new StateTree(registry) {
@Override
public void sendTemplateEventToServer(StateNode node, String methodName, JsArray<?> argValues, int promiseId) {
serverMethods.put(methodName, argValues);
serverRpcNodes.put(methodName, node);
serverPromiseIds.put(methodName, Integer.valueOf(promiseId));
}
};
node = new StateNode(0, tree);
// populate "element data" feature to be able to bind node as a plain
// element
node.getMap(NodeFeatures.ELEMENT_DATA);
element = Browser.getDocument().createElement("div");
}
use of com.vaadin.client.ApplicationConfiguration in project flow by vaadin.
the class GwtErrotHandlerTest method gwtSetUp.
@Override
protected void gwtSetUp() throws Exception {
super.gwtSetUp();
Reactive.reset();
registry = new Registry() {
{
set(ApplicationConfiguration.class, new ApplicationConfiguration());
set(SystemErrorHandler.class, new SystemErrorHandler(this));
}
};
}
Aggregations