public class InteractiveShell
extends java.lang.Object
implements javax.swing.event.HyperlinkListener
Modifier and Type | Field and Description |
---|---|
protected javax.swing.JTextArea |
commandArea
_more_
|
protected javax.swing.JTextField |
commandFld
_more_
|
protected javax.swing.JComponent |
contents
_more_
|
protected javax.swing.JEditorPane |
editorPane
_more_
|
protected javax.swing.JFrame |
frame
_more_
|
protected java.util.List |
history
_more_
|
protected int |
historyIdx
_more_
|
protected java.lang.StringBuffer |
sb
_more_
|
Constructor and Description |
---|
InteractiveShell(java.lang.String title)
_more_
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
_more_
|
void |
clearOutput() |
void |
close() |
protected javax.swing.JComponent |
doMakeContents()
_more_
|
protected javax.swing.JMenuBar |
doMakeMenuBar()
_more_
|
protected void |
endBufferingOutput() |
void |
eval()
_more_
|
void |
eval(java.lang.String code)
_more_
|
void |
flipField()
_more_
|
protected java.lang.String |
formatCode(java.lang.String code)
_more_
|
protected java.lang.String |
getHref(java.lang.String text,
java.lang.String label) |
protected void |
handleKeyPress(java.awt.event.KeyEvent e,
javax.swing.text.JTextComponent cmdFld)
_more_
|
protected void |
handleRightMouseClick(javax.swing.text.JTextComponent commandFld,
java.awt.event.MouseEvent e)
_more_
|
void |
hyperlinkUpdate(javax.swing.event.HyperlinkEvent e)
_more_
|
protected void |
init()
_more_
|
void |
insert(java.lang.String s)
_more_
|
void |
insertText(java.lang.String t)
_more_
|
protected void |
makeFrame()
_more_
|
void |
output(java.lang.String m)
_more_
|
void |
setText(java.lang.String text) |
void |
show() |
protected void |
showNormalCursor() |
protected void |
showWaitCursor() |
protected void |
startBufferingOutput() |
void |
toFront()
_more_
|
protected javax.swing.JFrame frame
protected javax.swing.JTextField commandFld
protected javax.swing.JTextArea commandArea
protected javax.swing.JEditorPane editorPane
protected java.lang.StringBuffer sb
protected java.util.List history
protected int historyIdx
protected javax.swing.JComponent contents
public InteractiveShell(java.lang.String title)
title
- _more_protected void makeFrame()
public void close()
public void show()
protected java.lang.String getHref(java.lang.String text, java.lang.String label)
protected void showWaitCursor()
protected void showNormalCursor()
protected void init()
public void hyperlinkUpdate(javax.swing.event.HyperlinkEvent e)
hyperlinkUpdate
in interface javax.swing.event.HyperlinkListener
e
- _more_public void setText(java.lang.String text)
protected javax.swing.JComponent doMakeContents()
protected void handleRightMouseClick(javax.swing.text.JTextComponent commandFld, java.awt.event.MouseEvent e)
commandFld
- _more_e
- _more_protected javax.swing.JMenuBar doMakeMenuBar()
public void toFront()
public void flipField()
public void insertText(java.lang.String t)
t
- _more_protected void handleKeyPress(java.awt.event.KeyEvent e, javax.swing.text.JTextComponent cmdFld)
e
- _more_cmdFld
- _more_public void insert(java.lang.String s)
s
- _more_public void clear()
public void clearOutput()
public void eval()
protected void startBufferingOutput()
protected void endBufferingOutput()
public void output(java.lang.String m)
m
- _more_public void eval(java.lang.String code)
code
- the code that was evaluatedprotected java.lang.String formatCode(java.lang.String code)
code
- _more_