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

package com.vaadin.terminal;

import com.vaadin.ui.JavascriptCallback;

public class AbstractJavascriptExtension extends AbstractExtension {
    private JavascriptRpcHelper rpcHelper = new JavascriptRpcHelper(this);

    protected void registerCallback(String functionName,
            JavascriptCallback javascriptCallback) {
        rpcHelper.registerCallback(functionName, javascriptCallback);
    }

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