public abstract class WebUiPlugin extends Object
To automatically register (instead of writing a Guice module), declare the intention with
@Listen, extend the correct class and define a constructor to configure the correct
resource:
@Listen
class MyJs extends JavaScriptPlugin {
MyJs() {
super("hello.js");
}
}
GwtPlugin,
JavaScriptPlugin| Constructor and Description |
|---|
WebUiPlugin() |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
getJavaScriptResourcePath() |
String |
getPluginName() |
static GwtPlugin |
gwt(String moduleName) |
static JavaScriptPlugin |
js(String scriptName) |
String |
toString() |
public static final JavaScriptPlugin js(String scriptName)
public final String getPluginName()
public abstract String getJavaScriptResourcePath()