frysk.gui.monitor.actions
Class RunExternal
java.lang.Object
frysk.gui.monitor.GuiObject
frysk.gui.monitor.LiaisonItem
frysk.gui.monitor.actions.Action
frysk.gui.monitor.actions.TaskAction
frysk.gui.monitor.actions.RunExternal
- All Implemented Interfaces:
- SaveableXXX
public class RunExternal
- extends TaskAction
Provides the ability to execute a binary or other program
externally to Frysk, allowing the flexibility of user-defined
actions following some event.
Nested Class Summary |
(package private) class |
RunExternal.AttachedObserver
Attach to this executed program so that we know whats going on - we'll be
able to gather information or manipulate it in other ways, should the need
arise later. |
(package private) class |
RunExternal.RunExBlocker
|
(package private) class |
RunExternal.TaskTerminatedObserver
We want to know when the externally-executed program has quit, so that we
can continue or optionally run another program. |
execString
private String execString
blocker
private RunExternal.RunExBlocker blocker
theTask
private Task theTask
errorLog
private static Logger errorLog
RunExternal
public RunExternal()
RunExternal
public RunExternal(RunExternal other)
execute
public void execute(Task task,
TaskObserverRoot observer,
Event event)
- Specified by:
execute
in class TaskAction
getCopy
public GuiObject getCopy()
- Specified by:
getCopy
in class LiaisonItem
setArgument
public boolean setArgument(String argument)
- Specified by:
setArgument
in class LiaisonItem
getArgument
public String getArgument()
- Description copied from class:
LiaisonItem
- uset to get the item's argument
- Specified by:
getArgument
in class LiaisonItem
- Returns:
- the argument, null if the object takes no argument
getArgumentCompletionList
public ObservableLinkedList getArgumentCompletionList()
- Description copied from class:
LiaisonItem
- If the item whishes to have a completion list for its arguments then it can
return an observable linked list describing the list of possible arguments.
Otherwise just return null.
- Specified by:
getArgumentCompletionList
in class LiaisonItem
- Returns: