public class ExampleScript3 extends UserDefinedScript
Constructor and Description |
---|
ExampleScript3() |
Modifier and Type | Method and Description |
---|---|
void |
endScript(boolean finished)
Called by the framework when the script is finished.
You can override this method to clean up after the script if needed. |
java.lang.String |
getDescription()
Called by the framework to get the description of the script.
You should override this method to provide a script description. The script description can be an URL to a HTML page or file. |
java.lang.String |
getName()
Called by the framework to get the name of the script.
You should override this method. |
boolean |
initScript()
Called by the framework to initialise the script.
You should override this method to make your own initialisation. |
boolean |
runScript()
Called by the framework to run the script.
You should override this method to define the script body. |
atPrompt, beginTurboCycle, endTurboCycle, execInstance, getClassName, getParams, getResource, initInstance, onEvent, postEvent, printTrace, printTrace, registerParam, repeatTurboCycle, showUserParamWindow, showUserParamWindow, sleep
public java.lang.String getName()
UserDefinedScript
getName
in class UserDefinedScript
public java.lang.String getDescription()
UserDefinedScript
"http://www.swath.net/Help.html"
"file:///C:/HelpDir/Help.html"
"<html>This <b>script</b> will...</html>"
"This script will..."
getDescription
in class UserDefinedScript
public boolean initScript() throws java.lang.Exception
UserDefinedScript
initScript
in class UserDefinedScript
true
if the initialisation was successful,
otherwise false
.java.lang.Exception
UserDefinedScript.atPrompt(int)
,
UserDefinedScript.showUserParamWindow(Panel,int,int)
,
UserDefinedScript.showUserParamWindow(JPanel,int,int)
public boolean runScript() throws java.lang.Exception
UserDefinedScript
runScript
in class UserDefinedScript
true
if the script finished correctly,
otherwise false
.java.lang.Exception
public void endScript(boolean finished) throws java.lang.Exception
UserDefinedScript
endScript
in class UserDefinedScript
finished
- true
if the script finished correctly or
false
if the script was interrupted in some way.java.lang.Exception