public class ExampleScript8 extends UserDefinedScript
| Constructor and Description |
|---|
ExampleScript8() |
| 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. |
void |
onEvent(EventIfc event)
This method is called for each posted event.
You can override this method to handle events. You can execute commands during the event handling and they will all be executed in one sequence between normal script commands. |
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, 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.Exceptionpublic void onEvent(EventIfc event) throws java.lang.Exception
UserDefinedScriptonEvent in class UserDefinedScriptevent - The event.java.lang.Exception