|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Object groovy.ui.Console
class Console
Groovy Swing console. Allows user to interactively enter and execute Groovy.
Field Summary | |
---|---|
static java.net.URL |
ICON_PATH
|
static java.net.URL |
NODE_ICON_PATH
|
Property Summary | |
---|---|
static java.lang.String |
DEFAULT_SCRIPT_NAME_START
|
Closure |
afterExecution
|
boolean |
autoClearOutput
|
javax.swing.Action |
autoClearOutputAction
|
Closure |
beforeExecution
|
java.awt.Component |
blank
|
static boolean |
captureStdErr
|
static boolean |
captureStdOut
|
int |
colNum
|
javax.swing.text.Style |
commandStyle
|
CompilerConfiguration |
config
|
static java.lang.Object |
consoleControllers
|
java.awt.Component |
copyFromComponent
|
java.io.File |
currentClasspathDir
|
java.io.File |
currentClasspathJarDir
|
java.io.File |
currentFileChooserDir
|
int |
cursorPos
|
boolean |
detachedOutput
|
javax.swing.Action |
detachedOutputAction
|
boolean |
dirty
|
javax.swing.RootPaneContainer |
frame
|
static java.lang.Object |
frameConsoleDelegates
|
boolean |
fullStackTraces
|
javax.swing.Action |
fullStackTracesAction
|
javax.swing.Action |
hideOutputWindowAction1
|
javax.swing.Action |
hideOutputWindowAction2
|
javax.swing.Action |
hideOutputWindowAction3
|
javax.swing.Action |
hideOutputWindowAction4
|
java.util.List |
history
|
int |
historyIndex
|
javax.swing.text.Style |
hyperlinkStyle
|
javax.swing.JTextPane |
inputArea
|
ConsoleTextEditor |
inputEditor
|
javax.swing.Action |
interruptAction
|
int |
maxHistory
|
int |
maxOutputChars
|
javax.swing.Action |
nextHistoryAction
|
int |
origDividerSize
|
javax.swing.JTextPane |
outputArea
|
javax.swing.text.Style |
outputStyle
|
java.awt.Component |
outputWindow
|
HistoryRecord |
pendingRecord
|
javax.swing.Action |
prevHistoryAction
|
javax.swing.text.Style |
promptStyle
|
javax.swing.text.Style |
resultStyle
|
javax.swing.text.Element |
rootElement
|
int |
rowNum
|
javax.swing.JLabel |
rowNumAndColNum
|
java.lang.Thread |
runThread
|
javax.swing.Action |
saveAction
|
java.lang.Object |
scriptFile
|
int |
scriptNameCounter
|
java.awt.Component |
scrollArea
|
GroovyShell |
shell
|
javax.swing.Action |
showOutputWindowAction
|
boolean |
showScriptInOutput
|
javax.swing.Action |
showScriptInOutputAction
|
boolean |
showToolbar
|
javax.swing.Action |
showToolbarAction
|
javax.swing.JSplitPane |
splitPane
|
javax.swing.text.Style |
stacktraceStyle
|
javax.swing.JLabel |
statusLabel
|
SwingBuilder |
swing
|
SystemOutputInterceptor |
systemErrorInterceptor
|
SystemOutputInterceptor |
systemOutInterceptor
|
int |
textSelectionEnd
|
int |
textSelectionStart
|
boolean |
threadInterrupt
|
javax.swing.Action |
threadInterruptAction
|
java.awt.Component |
toolbar
|
boolean |
visualizeScriptResults
|
javax.swing.Action |
visualizeScriptResultsAction
|
Constructor Summary | |
Console()
|
|
Console(Binding binding)
|
|
Console(java.lang.ClassLoader parent)
|
|
Console(java.lang.ClassLoader parent, Binding binding)
|
Method Summary | |
---|---|
void
|
addClasspathDir(java.util.EventObject evt = null)
|
void
|
addClasspathJar(java.util.EventObject evt = null)
|
void
|
addToHistory(java.lang.Object record)
|
void
|
appendOutput(java.lang.String text, javax.swing.text.AttributeSet style)
|
void
|
appendOutput(java.awt.Window window, javax.swing.text.AttributeSet style)
|
void
|
appendOutput(java.lang.Object object, javax.swing.text.AttributeSet style)
|
void
|
appendOutput(java.awt.Component component, javax.swing.text.AttributeSet style)
|
void
|
appendOutput(javax.swing.Icon icon, javax.swing.text.AttributeSet style)
|
void
|
appendOutputLines(java.lang.Object text, java.lang.Object style)
|
void
|
appendOutputNl(java.lang.Object text, java.lang.Object style)
|
void
|
appendStacktrace(java.lang.Object text)
|
java.lang.Object
|
askToInterruptScript()
|
boolean
|
askToSaveFile()
|
void
|
autoClearOutput(java.util.EventObject evt)
|
void
|
beep()
|
void
|
bindResults()
|
static void
|
captureStdErr(java.util.EventObject evt)
|
static void
|
captureStdOut(java.util.EventObject evt)
|
void
|
caretUpdate(javax.swing.event.CaretEvent e)
|
void
|
clearContext(java.util.EventObject evt = null)
|
void
|
clearOutput(java.util.EventObject evt = null)
|
java.lang.Object
|
compileFinishNormal()
|
void
|
compileScript(java.util.EventObject evt = null)
|
void
|
componentHidden(java.awt.event.ComponentEvent e)
|
void
|
componentMoved(java.awt.event.ComponentEvent e)
|
void
|
componentResized(java.awt.event.ComponentEvent e)
|
void
|
componentShown(java.awt.event.ComponentEvent e)
|
void
|
copy(java.util.EventObject evt = null)
|
void
|
cut(java.util.EventObject evt = null)
|
void
|
detachedOutput(java.util.EventObject evt)
|
void
|
doInterrupt(java.util.EventObject evt = null)
|
void
|
exit(java.util.EventObject evt = null)
|
void
|
fileNewFile(java.util.EventObject evt = null)
|
void
|
fileNewWindow(java.util.EventObject evt = null)
|
void
|
fileOpen(java.util.EventObject evt = null)
|
boolean
|
fileSave(java.util.EventObject evt = null)
|
boolean
|
fileSaveAs(java.util.EventObject evt = null)
|
void
|
find(java.util.EventObject evt = null)
|
void
|
findNext(java.util.EventObject evt = null)
|
void
|
findPrevious(java.util.EventObject evt = null)
|
java.lang.Object
|
finishException(java.lang.Throwable t, boolean executing)
|
java.lang.Object
|
finishNormal(java.lang.Object result)
|
void
|
focusGained(java.awt.event.FocusEvent e)
|
void
|
focusLost(java.awt.event.FocusEvent e)
|
void
|
fullStackTraces(java.util.EventObject evt)
|
java.lang.Object
|
getLastResult()
|
void
|
hideAndClearOutputWindow(java.util.EventObject evt = null)
|
void
|
hideOutputWindow(java.util.EventObject evt = null)
|
void
|
historyNext(java.util.EventObject evt = null)
|
void
|
historyPrev(java.util.EventObject evt = null)
|
void
|
hyperlinkUpdate(javax.swing.event.HyperlinkEvent e)
|
void
|
inspectAst(java.util.EventObject evt = null)
|
void
|
inspectLast(java.util.EventObject evt = null)
|
void
|
inspectVariables(java.util.EventObject evt = null)
|
void
|
installInterceptor()
|
void
|
invokeTextAction(java.lang.Object evt, java.lang.Object closure, java.lang.Object area = inputArea)
|
void
|
largerFont(java.util.EventObject evt = null)
|
void
|
loadScriptFile(java.io.File file)
|
static void
|
main(java.lang.Object args)
|
void
|
newScript(java.lang.ClassLoader parent, Binding binding)
|
static boolean
|
notifySystemErr(java.lang.String str)
|
static boolean
|
notifySystemOut(java.lang.String str)
|
void
|
paste(java.util.EventObject evt = null)
|
void
|
print(java.util.EventObject evt = null)
|
void
|
redo(java.util.EventObject evt = null)
|
void
|
replace(java.util.EventObject evt = null)
|
void
|
run()
|
void
|
run(javax.swing.JApplet applet)
|
void
|
run(java.util.Map defaults)
|
void
|
runScript(java.util.EventObject evt = null)
|
void
|
runSelectedScript(java.util.EventObject evt = null)
|
void
|
selectAll(java.util.EventObject evt = null)
|
java.lang.Object
|
selectFilename(java.lang.Object name = "Open")
|
void
|
setDirty(boolean newDirty)
|
void
|
setRowNumAndColNum()
|
void
|
setVariable(java.lang.String name, java.lang.Object value)
|
void
|
showAbout(java.util.EventObject evt = null)
|
void
|
showCompilingMessage()
|
void
|
showExecutingMessage()
|
void
|
showMessage(java.lang.String message)
|
void
|
showOutputWindow(java.util.EventObject evt = null)
|
void
|
showScriptInOutput(java.util.EventObject evt)
|
void
|
showToolbar(java.util.EventObject evt)
|
void
|
smallerFont(java.util.EventObject evt = null)
|
void
|
threadInterruption(java.util.EventObject evt)
|
void
|
undo(java.util.EventObject evt = null)
|
void
|
updateTitle()
|
void
|
visualizeScriptResults(java.util.EventObject evt)
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Field Detail |
---|
public static java.net.URL ICON_PATH
public static java.net.URL NODE_ICON_PATH
Property Detail |
---|
static final java.lang.String DEFAULT_SCRIPT_NAME_START
Closure afterExecution
boolean autoClearOutput
javax.swing.Action autoClearOutputAction
Closure beforeExecution
java.awt.Component blank
static boolean captureStdErr
static boolean captureStdOut
int colNum
javax.swing.text.Style commandStyle
CompilerConfiguration config
static java.lang.Object consoleControllers
java.awt.Component copyFromComponent
java.io.File currentClasspathDir
java.io.File currentClasspathJarDir
java.io.File currentFileChooserDir
int cursorPos
boolean detachedOutput
javax.swing.Action detachedOutputAction
boolean dirty
javax.swing.RootPaneContainer frame
static java.lang.Object frameConsoleDelegates
boolean fullStackTraces
javax.swing.Action fullStackTracesAction
javax.swing.Action hideOutputWindowAction1
javax.swing.Action hideOutputWindowAction2
javax.swing.Action hideOutputWindowAction3
javax.swing.Action hideOutputWindowAction4
java.util.List history
int historyIndex
javax.swing.text.Style hyperlinkStyle
javax.swing.JTextPane inputArea
ConsoleTextEditor inputEditor
javax.swing.Action interruptAction
int maxHistory
int maxOutputChars
javax.swing.Action nextHistoryAction
int origDividerSize
javax.swing.JTextPane outputArea
javax.swing.text.Style outputStyle
java.awt.Component outputWindow
HistoryRecord pendingRecord
javax.swing.Action prevHistoryAction
javax.swing.text.Style promptStyle
javax.swing.text.Style resultStyle
javax.swing.text.Element rootElement
int rowNum
javax.swing.JLabel rowNumAndColNum
java.lang.Thread runThread
javax.swing.Action saveAction
java.lang.Object scriptFile
int scriptNameCounter
java.awt.Component scrollArea
GroovyShell shell
javax.swing.Action showOutputWindowAction
boolean showScriptInOutput
javax.swing.Action showScriptInOutputAction
boolean showToolbar
javax.swing.Action showToolbarAction
javax.swing.JSplitPane splitPane
javax.swing.text.Style stacktraceStyle
javax.swing.JLabel statusLabel
SwingBuilder swing
SystemOutputInterceptor systemErrorInterceptor
SystemOutputInterceptor systemOutInterceptor
int textSelectionEnd
int textSelectionStart
boolean threadInterrupt
javax.swing.Action threadInterruptAction
java.awt.Component toolbar
boolean visualizeScriptResults
javax.swing.Action visualizeScriptResultsAction
Constructor Detail |
---|
Console()
Console(Binding binding)
Console(java.lang.ClassLoader parent)
Console(java.lang.ClassLoader parent, Binding binding)
Method Detail |
---|
void addClasspathDir(java.util.EventObject evt = null)
void addClasspathJar(java.util.EventObject evt = null)
void addToHistory(java.lang.Object record)
void appendOutput(java.lang.String text, javax.swing.text.AttributeSet style)
void appendOutput(java.awt.Window window, javax.swing.text.AttributeSet style)
void appendOutput(java.lang.Object object, javax.swing.text.AttributeSet style)
void appendOutput(java.awt.Component component, javax.swing.text.AttributeSet style)
void appendOutput(javax.swing.Icon icon, javax.swing.text.AttributeSet style)
void appendOutputLines(java.lang.Object text, java.lang.Object style)
void appendOutputNl(java.lang.Object text, java.lang.Object style)
void appendStacktrace(java.lang.Object text)
java.lang.Object askToInterruptScript()
boolean askToSaveFile()
void autoClearOutput(java.util.EventObject evt)
void beep()
void bindResults()
static void captureStdErr(java.util.EventObject evt)
static void captureStdOut(java.util.EventObject evt)
void caretUpdate(javax.swing.event.CaretEvent e)
void clearContext(java.util.EventObject evt = null)
void clearOutput(java.util.EventObject evt = null)
java.lang.Object compileFinishNormal()
void compileScript(java.util.EventObject evt = null)
void componentHidden(java.awt.event.ComponentEvent e)
void componentMoved(java.awt.event.ComponentEvent e)
void componentResized(java.awt.event.ComponentEvent e)
void componentShown(java.awt.event.ComponentEvent e)
void copy(java.util.EventObject evt = null)
void cut(java.util.EventObject evt = null)
void detachedOutput(java.util.EventObject evt)
void doInterrupt(java.util.EventObject evt = null)
void exit(java.util.EventObject evt = null)
void fileNewFile(java.util.EventObject evt = null)
void fileNewWindow(java.util.EventObject evt = null)
void fileOpen(java.util.EventObject evt = null)
boolean fileSave(java.util.EventObject evt = null)
boolean fileSaveAs(java.util.EventObject evt = null)
void find(java.util.EventObject evt = null)
void findNext(java.util.EventObject evt = null)
void findPrevious(java.util.EventObject evt = null)
java.lang.Object finishException(java.lang.Throwable t, boolean executing)
java.lang.Object finishNormal(java.lang.Object result)
void focusGained(java.awt.event.FocusEvent e)
void focusLost(java.awt.event.FocusEvent e)
void fullStackTraces(java.util.EventObject evt)
java.lang.Object getLastResult()
void hideAndClearOutputWindow(java.util.EventObject evt = null)
void hideOutputWindow(java.util.EventObject evt = null)
void historyNext(java.util.EventObject evt = null)
void historyPrev(java.util.EventObject evt = null)
void hyperlinkUpdate(javax.swing.event.HyperlinkEvent e)
void inspectAst(java.util.EventObject evt = null)
void inspectLast(java.util.EventObject evt = null)
void inspectVariables(java.util.EventObject evt = null)
void installInterceptor()
void invokeTextAction(java.lang.Object evt, java.lang.Object closure, java.lang.Object area = inputArea)
void largerFont(java.util.EventObject evt = null)
void loadScriptFile(java.io.File file)
static void main(java.lang.Object args)
void newScript(java.lang.ClassLoader parent, Binding binding)
static boolean notifySystemErr(java.lang.String str)
static boolean notifySystemOut(java.lang.String str)
void paste(java.util.EventObject evt = null)
void print(java.util.EventObject evt = null)
void redo(java.util.EventObject evt = null)
void replace(java.util.EventObject evt = null)
void run()
void run(javax.swing.JApplet applet)
void run(java.util.Map defaults)
void runScript(java.util.EventObject evt = null)
void runSelectedScript(java.util.EventObject evt = null)
void selectAll(java.util.EventObject evt = null)
java.lang.Object selectFilename(java.lang.Object name = "Open")
void setDirty(boolean newDirty)
void setRowNumAndColNum()
void setVariable(java.lang.String name, java.lang.Object value)
void showAbout(java.util.EventObject evt = null)
void showCompilingMessage()
void showExecutingMessage()
void showMessage(java.lang.String message)
void showOutputWindow(java.util.EventObject evt = null)
void showScriptInOutput(java.util.EventObject evt)
void showToolbar(java.util.EventObject evt)
void smallerFont(java.util.EventObject evt = null)
void threadInterruption(java.util.EventObject evt)
void undo(java.util.EventObject evt = null)
void updateTitle()
void visualizeScriptResults(java.util.EventObject evt)
Groovy Documentation