public class SetupUtility
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CUSTOM |
Modifier and Type | Method and Description |
---|---|
static void |
putMethods(java.util.Map<java.lang.Object,java.lang.Object> currentObject) |
static void |
setCustomFunctions(java.util.Map<java.lang.Object,java.lang.Object> object,
WindowModel windowModel) |
static void |
writeJavaScriptMethods(javax.script.ScriptEngine engine,
WindowModel windowModel,
java.lang.Class clazz)
Sets up the javascript methods to link to our Java code.
|
public static final java.lang.String CUSTOM
public static void putMethods(@NotNull java.util.Map<java.lang.Object,java.lang.Object> currentObject)
public static void writeJavaScriptMethods(@NotNull javax.script.ScriptEngine engine, @NotNull WindowModel windowModel, @NotNull java.lang.Class clazz)
engine
- The script enginewindowModel
- The window model, which is the root of all the code hereclazz
- The class to build stuff forpublic static void setCustomFunctions(@NotNull java.util.Map<java.lang.Object,java.lang.Object> object, @NotNull WindowModel windowModel)