public class ScriptEventListener extends Object implements XMLConvertible
| Modifier and Type | Field and Description |
|---|---|
static String |
BASIC_LANG
For scripts in Basic
|
static String |
JAVA_LANG
For scripts in Java
|
static String |
JAVASCRIPT_LANG
For scripts in JavaScript
|
static String |
PYTHON_LANG
For scripts in Python
|
| Constructor and Description |
|---|
ScriptEventListener(String genericLanguage,
ScriptEvent event,
String functionName,
String language) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendXMLContent(XMLUtil util,
Appendable appendable)
Write the XML format for this object.
|
static ScriptEventListenerBuilder |
builder(ScriptEvent event,
String functionName) |
static ScriptEventListener |
create(ScriptEvent event,
String functionName) |
public static final String BASIC_LANG
public static final String PYTHON_LANG
public static final String JAVA_LANG
public static final String JAVASCRIPT_LANG
public ScriptEventListener(String genericLanguage, ScriptEvent event, String functionName, String language)
genericLanguage - ooo:scriptevent - the event, e.g dom:loadfunctionName - the function, e.g Standard.Module1.Mainlanguage - Basic, Python, ...public static ScriptEventListener create(ScriptEvent event, String functionName)
event - the event, e.g dom:loadfunctionName - the function, e.g Standard.Module1.Mainpublic static ScriptEventListenerBuilder builder(ScriptEvent event, String functionName)
event - the event, e.g dom:loadfunctionName - the function, e.g Standard.Module1.Mainpublic void appendXMLContent(XMLUtil util, Appendable appendable) throws IOException
XMLConvertibleappendXMLContent in interface XMLConvertibleutil - a helper objectappendable - the appendable to append data toIOException - if the style can't be addedCopyright © 2016–2021. All rights reserved.