|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.ui.InteractiveShell
ucar.unidata.idv.ui.JythonShell
public class JythonShell
This class provides an interactive shell for running JYthon
| Field Summary | |
|---|---|
static String |
PROP_JYTHON_SHELL_HISTORY
property that holds the history |
| Fields inherited from class ucar.unidata.ui.InteractiveShell |
|---|
commandArea, commandFld, contents, editorPane, frame, history, historyIdx, sb |
| Constructor Summary | |
|---|---|
JythonShell(IntegratedDataViewer theIdv)
ctor |
|
| Method Summary | |
|---|---|
void |
clear()
Clear everything, gui and make new interp |
protected JMenuBar |
doMakeMenuBar()
Make menu bar |
void |
eval(String jython)
eval |
void |
exportHistory()
Take all of the commands and write them to the library |
protected String |
formatCode(String code)
Format code to output |
boolean |
getAutoSelect()
Get the AutoSelect property. |
protected List |
getDataMenuItems()
_more_ |
protected List |
getDisplayMenuItems()
get menu items |
protected void |
handleKeyPress(KeyEvent e,
JTextComponent cmdFld)
handle event |
protected void |
handleRightMouseClick(JTextComponent commandFld,
MouseEvent e)
handle event |
void |
insertAction(String action)
Add the idv action |
void |
listHistory()
print the history |
void |
listVars()
List the variables in the interpreter |
protected void |
makeFrame()
This gets called by the base class to make the frame. |
void |
printType(Data d)
print type |
void |
saveHistory()
write the hostory |
void |
setAutoSelect(boolean value)
Set the AutoSelect property. |
void |
showHelp()
show help |
void |
showProcedurePopup(JTextComponent cmdFld)
popup menu |
| Methods inherited from class ucar.unidata.ui.InteractiveShell |
|---|
clearOutput, close, doMakeContents, endBufferingOutput, eval, flipField, getHref, hyperlinkUpdate, init, insert, insertText, output, setText, show, showNormalCursor, showWaitCursor, startBufferingOutput, toFront |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PROP_JYTHON_SHELL_HISTORY
| Constructor Detail |
|---|
public JythonShell(IntegratedDataViewer theIdv)
theIdv - idv| Method Detail |
|---|
public void listHistory()
public void saveHistory()
protected void makeFrame()
makeFrame in class InteractiveShellpublic void showProcedurePopup(JTextComponent cmdFld)
cmdFld - fieldpublic void listVars()
public void insertAction(String action)
action - action
protected void handleKeyPress(KeyEvent e,
JTextComponent cmdFld)
handleKeyPress in class InteractiveShelle - eventcmdFld - fieldpublic void showHelp()
public void exportHistory()
public void clear()
clear in class InteractiveShellprotected JMenuBar doMakeMenuBar()
doMakeMenuBar in class InteractiveShellprotected List getDisplayMenuItems()
protected List getDataMenuItems()
protected void handleRightMouseClick(JTextComponent commandFld,
MouseEvent e)
handleRightMouseClick in class InteractiveShellcommandFld - fielde - eventprotected String formatCode(String code)
formatCode in class InteractiveShellcode - code
public void eval(String jython)
eval in class InteractiveShelljython - jythonpublic void printType(Data d)
d - datapublic void setAutoSelect(boolean value)
value - The new value for AutoSelectpublic boolean getAutoSelect()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||