pnuts.tools
Class PnutsConsoleUI

java.lang.Object
  extended by pnuts.tools.JTextComponentConsoleUI
      extended by pnuts.tools.PnutsConsoleUI
All Implemented Interfaces:
ConsoleUI

public class PnutsConsoleUI
extends JTextComponentConsoleUI

Swing based UI


Constructor Summary
PnutsConsoleUI()
           
PnutsConsoleUI(Console console)
           
 
Method Summary
 void close()
           
protected  PnutsConsole createConsole()
           
 PnutsConsole createConsole(Context context, java.lang.String inputlog)
           
 PnutsConsole createConsole(java.lang.String[] modules, Context context, java.lang.ClassLoader cl, java.lang.String inputlog, boolean greeting, java.lang.Runnable terminationCallback, int priority)
           
 void entered(java.lang.String command)
           
 javax.swing.JComponent getComponent()
           
 javax.swing.JFrame getFrame()
           
 javax.swing.JTextArea getTextArea()
           
 java.lang.String getTitle()
           
 void setTitle(java.lang.String title)
           
 
Methods inherited from class pnuts.tools.JTextComponentConsoleUI
append, createTextComponent, getJTextComponent, getLength, getMarkPosition, getModel, insert, setCursorPosition, setJTextComponent, setMarkPosition, setModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PnutsConsoleUI

public PnutsConsoleUI()

PnutsConsoleUI

public PnutsConsoleUI(Console console)
Method Detail

createConsole

public PnutsConsole createConsole(Context context,
                                  java.lang.String inputlog)

createConsole

protected PnutsConsole createConsole()

createConsole

public PnutsConsole createConsole(java.lang.String[] modules,
                                  Context context,
                                  java.lang.ClassLoader cl,
                                  java.lang.String inputlog,
                                  boolean greeting,
                                  java.lang.Runnable terminationCallback,
                                  int priority)

entered

public void entered(java.lang.String command)
Overrides:
entered in class JTextComponentConsoleUI

getTextArea

public javax.swing.JTextArea getTextArea()

getComponent

public javax.swing.JComponent getComponent()

setTitle

public void setTitle(java.lang.String title)

getTitle

public java.lang.String getTitle()

getFrame

public javax.swing.JFrame getFrame()

close

public void close()
Specified by:
close in interface ConsoleUI
Overrides:
close in class JTextComponentConsoleUI