|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.swath.UserDefinedScript
ExampleScript5
This script shows how to create and display your own custom parameter window. You can add any components you like. Read more about the Java Abstract Window Toolkit (AWT) or the Swing framework for information about how to use the different components available.
| Constructor Summary | |
ExampleScript5()
|
|
| Method Summary | |
void |
endScript(boolean finished)
Called by the framework when the script is finished. |
java.lang.String |
getDescription()
Called by the framework to get the description of the script. |
java.lang.String |
getName()
Called by the framework to get the name of the script. |
boolean |
initScript()
Called by the framework to initialise the script. |
boolean |
runScript()
Called by the framework to run the script. |
| Methods inherited from class com.swath.UserDefinedScript |
atPrompt, execInstance, getClassName, getParams, getResource, initInstance, postEvent, printTrace, printTrace, registerParam, showUserParamWindow, showUserParamWindow, sleep |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ExampleScript5()
| Method Detail |
public java.lang.String getName()
UserDefinedScript
getName 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 UserDefinedScript
public boolean initScript()
throws java.lang.Exception
UserDefinedScript
initScript 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
UserDefinedScript
runScript in class UserDefinedScripttrue if the script finished correctly,
otherwise false.
java.lang.Exception
public void endScript(boolean finished)
throws java.lang.Exception
UserDefinedScript
endScript in class UserDefinedScriptfinished - true if the script finished correctly or
false if the script was interrupted in some way.
java.lang.Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||