public abstract class AbstractScriptListener extends java.lang.Object implements ScriptListener
Modifier and Type | Field and Description |
---|---|
protected org.scripthelper.exceptions.ScriptExceptionListener |
exceptionListener |
protected ScriptManager |
manager |
protected ScriptHandle |
script |
Constructor and Description |
---|
AbstractScriptListener() |
Modifier and Type | Method and Description |
---|---|
void |
alert(java.lang.String message,
javax.swing.JComponent root)
Alert with a message.
|
void |
print(java.lang.String message)
Print a message.
|
void |
setCurrentScript(ScriptHandle script)
Set the name of the current external script that is executed.
|
void |
setScriptManager(ScriptManager manager)
Set the script manager.
|
void |
showException(java.lang.String message,
java.lang.Throwable e)
Show an exception with a message.
|
void |
showException(java.lang.Throwable e)
Show an exception.
|
protected ScriptManager manager
protected ScriptHandle script
protected org.scripthelper.exceptions.ScriptExceptionListener exceptionListener
public void setScriptManager(ScriptManager manager)
setScriptManager
in interface ScriptListener
manager
- the script managerpublic void print(java.lang.String message)
print
in interface ScriptListener
message
- the messagepublic void alert(java.lang.String message, javax.swing.JComponent root)
alert
in interface ScriptListener
message
- the message alterroot
- the root componentpublic void setCurrentScript(ScriptHandle script)
setCurrentScript
in interface ScriptListener
script
- the scriptpublic void showException(java.lang.String message, java.lang.Throwable e)
showException
in interface ScriptListener
message
- the messagee
- the Throwablepublic void showException(java.lang.Throwable e)
showException
in interface ScriptListener
e
- the ThrowableCopyright © 2008-2020 Herve Girod. All Rights Reserved. Documentation and source under the LGPL licence