blob: 0a26c10239cf9abd4094ef53b1ac0d55595f6150 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/*
@VaadinApache2LicenseForJavaFiles@
*/
package com.vaadin.ui;
import com.vaadin.terminal.JavascriptRpcHelper;
public class AbstractJavascriptComponent extends AbstractComponent {
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);
}
}
|