Package ucar.unidata.ui
Class InteractiveShell
java.lang.Object
ucar.unidata.ui.InteractiveShell
- All Implemented Interfaces:
EventListener
,HyperlinkListener
- Direct Known Subclasses:
JythonShell
,SqlShell
This class provides an abstract interactive shell
- Version:
- $Revision: 1.50 $Date: 2007/08/21 12:15:45 $
- Author:
- IDV development team
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JTextArea
_more_protected JTextField
_more_protected JComponent
_more_protected JEditorPane
_more_protected JFrame
_more_protected List
_more_protected int
_more_protected StringBuffer
_more_ -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
_more_void
void
close()
protected JComponent
_more_protected JMenuBar
_more_protected void
void
eval()
_more_void
_more_void
_more_protected String
formatCode
(String code) _more_protected String
protected void
handleKeyPress
(KeyEvent e, JTextComponent cmdFld) _more_protected void
handleRightMouseClick
(JTextComponent commandFld, MouseEvent e) _more_void
_more_protected void
init()
_more_void
_more_void
insertText
(String t) _more_protected void
_more_void
_more_void
void
show()
protected void
protected void
protected void
void
toFront()
_more_
-
Field Details
-
frame
_more_ -
commandFld
_more_ -
commandArea
_more_ -
editorPane
_more_ -
sb
_more_ -
history
_more_ -
historyIdx
protected int historyIdx_more_ -
contents
_more_
-
-
Constructor Details
-
InteractiveShell
_more_- Parameters:
title
- _more_
-
-
Method Details
-
makeFrame
protected void makeFrame()_more_ -
close
public void close() -
show
public void show() -
getHref
-
showWaitCursor
protected void showWaitCursor() -
showNormalCursor
protected void showNormalCursor() -
init
protected void init()_more_ -
hyperlinkUpdate
_more_- Specified by:
hyperlinkUpdate
in interfaceHyperlinkListener
- Parameters:
e
- _more_
-
setText
-
doMakeContents
_more_- Returns:
- _more_
-
handleRightMouseClick
_more_- Parameters:
commandFld
- _more_e
- _more_
-
doMakeMenuBar
_more_- Returns:
- _more_
-
toFront
public void toFront()_more_ -
flipField
public void flipField()_more_ -
insertText
_more_- Parameters:
t
- _more_
-
handleKeyPress
_more_- Parameters:
e
- _more_cmdFld
- _more_
-
insert
_more_- Parameters:
s
- _more_
-
clear
public void clear()_more_ -
clearOutput
public void clearOutput() -
eval
public void eval()_more_ -
startBufferingOutput
protected void startBufferingOutput() -
endBufferingOutput
protected void endBufferingOutput() -
output
_more_- Parameters:
m
- _more_
-
eval
_more_- Parameters:
code
- the code that was evaluated
-
formatCode
_more_- Parameters:
code
- _more_- Returns:
- _more_
-