groovy.ui
Class ConsoleSupport

java.lang.Object
  extended by groovy.ui.ConsoleSupport

public abstract class ConsoleSupport
extends java.lang.Object

Base class for console

Version:
$Revision: 6778 $
Author:
James Strachan

Field Summary
(package private)  javax.swing.text.Style commandStyle
           
(package private)  int counter
           
(package private)  javax.swing.text.Style outputStyle
           
(package private)  javax.swing.text.Style promptStyle
           
private  GroovyShell shell
           
 
Constructor Summary
ConsoleSupport()
           
 
Method Summary
protected  void addStylesToDocument(javax.swing.JTextPane outputArea)
           
protected  java.lang.Object evaluate(java.lang.String text)
           
 javax.swing.text.Style getCommandStyle()
           
 javax.swing.text.Style getOutputStyle()
           
 javax.swing.text.Style getPromptStyle()
           
 GroovyShell getShell()
           
protected abstract  void handleException(java.lang.String text, java.lang.Exception e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

promptStyle

javax.swing.text.Style promptStyle

commandStyle

javax.swing.text.Style commandStyle

outputStyle

javax.swing.text.Style outputStyle

shell

private GroovyShell shell

counter

int counter
Constructor Detail

ConsoleSupport

public ConsoleSupport()
Method Detail

addStylesToDocument

protected void addStylesToDocument(javax.swing.JTextPane outputArea)

getCommandStyle

public javax.swing.text.Style getCommandStyle()

getOutputStyle

public javax.swing.text.Style getOutputStyle()

getPromptStyle

public javax.swing.text.Style getPromptStyle()

getShell

public GroovyShell getShell()

evaluate

protected java.lang.Object evaluate(java.lang.String text)

handleException

protected abstract void handleException(java.lang.String text,
                                        java.lang.Exception e)


Copyright © ${year} The Codehaus. All Rights Reserved.