Search in sources :

Example 1 with CustomScheduler

use of com.vaadin.client.CustomScheduler in project flow by vaadin.

the class GwtPolymerModelTest method gwtSetUp.

@Override
protected void gwtSetUp() throws Exception {
    super.gwtSetUp();
    node = createNode();
    modelNode = createAndAttachModelNode(MODEL_PROPERTY_NAME);
    nextId = node.getId() + 1;
    element = createHtmlElement();
    initPolymer(element);
    initScheduler(new CustomScheduler());
    node.setDomNode(element);
}
Also used : CustomScheduler(com.vaadin.client.CustomScheduler)

Example 2 with CustomScheduler

use of com.vaadin.client.CustomScheduler in project flow by vaadin.

the class GwtAtmoshperePushConnectionTest method gwtSetUp.

@Override
protected void gwtSetUp() throws Exception {
    super.gwtSetUp();
    initScheduler(new CustomScheduler());
    registry = new Registry() {

        {
            set(ConstantPool.class, new ConstantPool());
            set(StateTree.class, new StateTree(this));
            set(URIResolver.class, new URIResolver(this));
            set(UILifecycle.class, new UILifecycle());
            set(ApplicationConfiguration.class, new ApplicationConfiguration());
            set(MessageHandler.class, new MessageHandler(this));
            set(PushConfiguration.class, new PushConfiguration(this) {

                @Override
                public JsMap<String, String> getParameters() {
                    return JsCollections.map();
                }
            });
            set(ConnectionStateHandler.class, new DefaultConnectionStateHandler(this));
        }
    };
}
Also used : StateTree(com.vaadin.client.flow.StateTree) ConstantPool(com.vaadin.client.flow.ConstantPool) URIResolver(com.vaadin.client.URIResolver) CustomScheduler(com.vaadin.client.CustomScheduler) Registry(com.vaadin.client.Registry) UILifecycle(com.vaadin.client.UILifecycle) ApplicationConfiguration(com.vaadin.client.ApplicationConfiguration)

Aggregations

CustomScheduler (com.vaadin.client.CustomScheduler)2 ApplicationConfiguration (com.vaadin.client.ApplicationConfiguration)1 Registry (com.vaadin.client.Registry)1 UILifecycle (com.vaadin.client.UILifecycle)1 URIResolver (com.vaadin.client.URIResolver)1 ConstantPool (com.vaadin.client.flow.ConstantPool)1 StateTree (com.vaadin.client.flow.StateTree)1