|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Groovy Swing console. Allows user to interactively enter and execute Groovy.
Field Summary | |
---|---|
String |
ICON_PATH
|
Closure |
afterExecution
|
Closure |
beforeExecution
|
boolean |
captureStdOut
|
int |
colNum
|
Style |
commandStyle
|
def |
consoleControllers
|
File |
currentFileChooserDir
|
int |
cursorPos
|
boolean |
dirty
|
JFrame |
frame
|
boolean |
fullStackTraces
|
Action |
fullStackTracesAction
|
List |
history
|
int |
historyIndex
|
JTextPane |
inputArea
|
ConsoleTextEditor |
inputEditor
|
int |
maxHistory
|
int |
maxOutputChars
|
Action |
nextHistoryAction
|
JTextPane |
outputArea
|
Style |
outputStyle
|
HistoryRecord |
pendingRecord
|
def |
prefs
|
Action |
prevHistoryAction
|
Style |
promptStyle
|
Style |
resultStyle
|
Element |
rootElement
|
int |
rowNum
|
JLabel |
rowNumAndColNum
|
Thread |
runThread
|
JDialog |
runWaitDialog
|
Action |
saveAction
|
def |
scriptFile
|
int |
scriptNameCounter
|
GroovyShell |
shell
|
boolean |
showToolbar
|
Action |
showToolbarAction
|
JLabel |
statusLabel
|
SwingBuilder |
swing
|
SystemOutputInterceptor |
systemOutInterceptor
|
int |
textSelectionEnd
|
int |
textSelectionStart
|
Component |
toolbar
|
Constructor Summary | |
Console()
|
|
Console(Binding binding)
|
|
Console(ClassLoader parent, Binding binding)
|
Method Summary | |
---|---|
void |
addToHistory(def record)
|
void |
appendOutput(def text, def style)
|
void |
appendOutputNl(def text, def style)
|
boolean |
askToSaveFile()
|
void |
beep()
|
void |
bindResults()
|
static void |
captureStdOut(EventObject evt)
|
void |
caretUpdate(CaretEvent e)
|
void |
clearOutput(EventObject evt)
|
void |
confirmRunInterrupt(EventObject evt)
|
void |
copy(EventObject evt)
|
void |
cut(EventObject evt)
|
void |
exit(EventObject evt)
|
void |
fileNewFile(EventObject evt)
|
void |
fileNewWindow(EventObject evt)
|
void |
fileOpen(EventObject evt)
|
boolean |
fileSave(EventObject evt)
|
boolean |
fileSaveAs(EventObject evt)
|
void |
find(EventObject evt)
|
void |
findNext(EventObject evt)
|
void |
findPrevious(EventObject evt)
|
def |
finishException(Throwable t)
|
def |
finishNormal(Object result)
|
void |
fullStackTraces(EventObject evt)
|
def |
getLastResult()
|
GroovyShell |
getShell()
|
void |
historyNext(EventObject evt)
|
void |
historyPrev(EventObject evt)
|
void |
inspectLast(EventObject evt)
|
void |
inspectVariables(EventObject evt)
|
void |
installInterceptor()
|
void |
invokeTextAction(def evt, def closure)
|
void |
largerFont(EventObject evt)
|
static void |
main(def args)
|
static boolean |
notifySystemOut(String str)
|
void |
paste(EventObject evt)
|
void |
print(EventObject evt)
|
void |
redo(EventObject evt)
|
void |
replace(EventObject evt)
|
void |
run()
|
void |
runScript(EventObject evt)
|
void |
runScriptImpl(boolean selected)
|
void |
runSelectedScript(EventObject evt)
|
void |
selectAll(EventObject evt)
|
def |
selectFilename(def name)
|
void |
setDirty(boolean newDirty)
|
void |
setInputTextFromHistory(def newIndex)
|
void |
setRowNumAndColNum()
|
void |
setVariable(String name, Object value)
|
void |
showAbout(EventObject evt)
|
void |
showRunWaitDialog()
|
void |
showToolbar(EventObject evt)
|
void |
smallerFont(EventObject evt)
|
void |
undo(EventObject evt)
|
void |
updateHistoryActions()
|
void |
updateTitle()
|
Constructor Detail |
---|
public Console()
public Console(Binding binding)
public Console(ClassLoader parent, Binding binding)
Method Detail |
---|
void addToHistory(def record)
void appendOutput(def text, def style)
void appendOutputNl(def text, def style)
boolean askToSaveFile()
void beep()
void bindResults()
public static void captureStdOut(EventObject evt)
void caretUpdate(CaretEvent e)
void clearOutput(EventObject evt)
void confirmRunInterrupt(EventObject evt)
void copy(EventObject evt)
void cut(EventObject evt)
void exit(EventObject evt)
void fileNewFile(EventObject evt)
void fileNewWindow(EventObject evt)
void fileOpen(EventObject evt)
boolean fileSave(EventObject evt)
boolean fileSaveAs(EventObject evt)
void find(EventObject evt)
void findNext(EventObject evt)
void findPrevious(EventObject evt)
public def finishException(Throwable t)
public def finishNormal(Object result)
void fullStackTraces(EventObject evt)
public def getLastResult()
GroovyShell getShell()
void historyNext(EventObject evt)
void historyPrev(EventObject evt)
void inspectLast(EventObject evt)
void inspectVariables(EventObject evt)
public void installInterceptor()
void invokeTextAction(def evt, def closure)
void largerFont(EventObject evt)
public static void main(def args)
public static boolean notifySystemOut(String str)
void paste(EventObject evt)
void print(EventObject evt)
void redo(EventObject evt)
void replace(EventObject evt)
void run()
void runScript(EventObject evt)
void runScriptImpl(boolean selected)
void runSelectedScript(EventObject evt)
void selectAll(EventObject evt)
public def selectFilename(def name)
void setDirty(boolean newDirty)
void setInputTextFromHistory(def newIndex)
void setRowNumAndColNum()
void setVariable(String name, Object value)
void showAbout(EventObject evt)
void showRunWaitDialog()
void showToolbar(EventObject evt)
void smallerFont(EventObject evt)
void undo(EventObject evt)
void updateHistoryActions()
void updateTitle()