summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/terminal/gwt/client/WidgetLoader.java
blob: 16e99716a0bc45e03a7b54f24866f12a19b4b392 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
@VaadinApache2LicenseForJavaFiles@
 */
package com.vaadin.terminal.gwt.client;

import com.google.gwt.core.client.RunAsyncCallback;

/** A helper class used by WidgetMap implementation. Used by the generated code. */
abstract class WidgetLoader implements RunAsyncCallback {

    public void onFailure(Throwable reason) {
        ApplicationConfiguration.endWidgetLoading();
    }

    public void onSuccess() {
        addInstantiator();
        ApplicationConfiguration.endWidgetLoading();
    }

    abstract void addInstantiator();
}