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