aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/main/java/com/vaadin/tests/application/ResynchronizeUI.java
blob: 50b89067f3ed1d784d732b3039973f768a8f37f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package com.vaadin.tests.application;

import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUIWithLog;
import com.vaadin.ui.Button;

public class ResynchronizeUI extends AbstractTestUIWithLog {

    @Override
    protected void setup(VaadinRequest request) {
        Button b = new Button("Resynchronize", event -> {
            // Theme change is currently the only operation which always
            // does resynchronize
            setTheme("runo");
            log("Set theme to runo");
        });
        addComponent(b);
    }
}