public class ExampleScript7 extends UserDefinedScript
| Constructor and Description |
|---|
ExampleScript7() |
| 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, sleeppublic java.lang.String getName()
UserDefinedScriptgetName in class UserDefinedScriptpublic 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 UserDefinedScriptpublic boolean initScript()
throws java.lang.Exception
UserDefinedScriptinitScript in class UserDefinedScripttrue if the initialisation was successful,
otherwise false.java.lang.ExceptionUserDefinedScript.atPrompt(int),
UserDefinedScript.showUserParamWindow(Panel,int,int),
UserDefinedScript.showUserParamWindow(JPanel,int,int)public boolean runScript()
throws java.lang.Exception
UserDefinedScriptrunScript in class UserDefinedScripttrue if the script finished correctly,
otherwise false.java.lang.Exceptionpublic void endScript(boolean finished)
throws java.lang.Exception
UserDefinedScriptendScript in class UserDefinedScriptfinished - true if the script finished correctly or
false if the script was interrupted in some way.java.lang.Exception