Package jmri.script.swing
Class ScriptOutput
java.lang.Object
jmri.script.swing.ScriptOutput
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ScriptOutputProvide access to the JTextArea containing all ScriptEngine output.static voidwriteScript(String script) Write a script to the output area.
-
Constructor Details
-
ScriptOutput
public ScriptOutput()
-
-
Method Details
-
getOutputArea
Provide access to the JTextArea containing all ScriptEngine output.The output JTextArea is not created until this is invoked, so that code that doesn't use this feature can run on GUI-less machines.
This creates a "ScriptOutput PipeListener" thread which is not normally terminated.
- Returns:
- component containing script output
-
getDefault
-
writeScript
Write a script to the output area. The output is prepended with a leading ">>>" on the first line and a leading ellipsis on subsequent lines.- Parameters:
script- The script to write.
-