| |
|
| javax.swing.JFrame org.cougaar.tutorials.bsh.BeanShellFrame
BeanShellFrame | public class BeanShellFrame extends JFrame (Code) | | A frame containing a Bean Shell console. Unfortunately, I can't
figure out how to gracefully stop the interpreter. That means it
might be best to hold on to the frame, redisplaying it as needed.
version: $Revision: 1.1 $ on $Date: 2007/06/20 19:13:13 $ |
Method Summary | |
protected void | init(Interpreter i) Performs any desired initializations on the Bean Shell
Interpreter. | public void | interpreterImport(String path) | public static void | main(String[] argv) | protected JPanel | makeButtonPanel() Creates the button panel on the frame. | public void | run() Runs this interpreter in the current thread. | public void | runInThread() Runs this interpreter in its own thread. | public void | set(String var, Object obj) Sets the bean shell variable var to
obj in the bean shell interpreter of this frame. |
BeanShellFrame | public BeanShellFrame()(Code) | | Constructs a new Bean Shell Frame. The frame consists of a
bean shell console and a close button. The default size is 500
x 300.
|
BeanShellFrame | public BeanShellFrame(String title)(Code) | | Constructs a new Bean Shell Frame. The frame consists of a
bean shell console and a close button. The default size is 500
x 300.
|
init | protected void init(Interpreter i)(Code) | | Performs any desired initializations on the Bean Shell
Interpreter. This method can be overridden in extending
classes to perform additional initializations on the
interpreter.
Parameters: i - the bean shell interpreter |
interpreterImport | public void interpreterImport(String path)(Code) | | Import a class or package into the interpreter
Parameters: path - the fully qualified class or package name |
makeButtonPanel | protected JPanel makeButtonPanel()(Code) | | Creates the button panel on the frame. The default is a close
button. Extending classes can create a more compilcated button
panel if desired by overriding this method.
|
run | public void run()(Code) | | Runs this interpreter in the current thread. I don't think
this method will ever return because of limitations in the bean
shell interpreter API.
|
runInThread | public void runInThread()(Code) | | Runs this interpreter in its own thread.
|
set | public void set(String var, Object obj)(Code) | | Sets the bean shell variable var to
obj in the bean shell interpreter of this frame.
Parameters: var - the bean shell variable to set Parameters: obj - the value of the beans shell variablevar |
|
|
|