|
BioLegato 0.7.5 Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biolegato.menu.CommandThread
public class CommandThread
Class used for making abstract actions which launch threads.
| Constructor Summary | |
|---|---|
CommandThread(java.lang.String command)
Creates a new instance of CommandThread. |
|
CommandThread(java.lang.String command,
java.util.Map<java.lang.String,Widget> widgets)
Creates a new instance of CommandThread. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Runs the command. |
protected java.lang.String |
replaceArguments(java.lang.String run)
Replaces the variables in the command string with their corresponding values. |
void |
run()
Used for running the command. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CommandThread(java.lang.String command)
command - the command for the thread to run
public CommandThread(java.lang.String command,
java.util.Map<java.lang.String,Widget> widgets)
command - the command for the thread to run| Method Detail |
|---|
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenere - ignored by this functionpublic void run()
This function gathers all of the parameter settings from the widgets, then generates and executes the corresponding command string.
run in interface java.lang.Runnableprotected java.lang.String replaceArguments(java.lang.String run)
run - the command to do the replacements on.widgets - the widget variables to use for string replacement.files - the file variables to use for string replacement.
|
BioLegato 0.7.5 Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||