summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/terminal/AbstractJavaScriptExtension.java
blob: 49f361f343dbdb2f6f1dc8f62b412925305a163e (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;

import com.vaadin.ui.JavaScriptCallback;

public class AbstractJavaScriptExtension extends AbstractExtension {
    private JavaScriptCallbackHelper callbackHelper = new JavaScriptCallbackHelper(
            this);

    protected void registerCallback(String functionName,
            JavaScriptCallback javaScriptCallback) {
        callbackHelper.registerCallback(functionName, javaScriptCallback);
    }

    protected void invokeCallback(String name, Object... arguments) {
        callbackHelper.invokeCallback(name, arguments);
    }
}