pnuts.tools
Class JTextComponentConsoleUI

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

public class JTextComponentConsoleUI
extends java.lang.Object
implements ConsoleUI


Constructor Summary
protected JTextComponentConsoleUI()
           
 
Method Summary
 void append(java.lang.String str)
          Displays an output from the scripting engine
 void close()
           
protected  javax.swing.text.JTextComponent createTextComponent()
           
 void entered(java.lang.String command)
           
 javax.swing.text.JTextComponent getJTextComponent()
           
 int getLength()
           
 int getMarkPosition()
           
 Console getModel()
           
 void insert(java.lang.String str, int mark)
           
 void setCursorPosition(int pos)
           
 void setJTextComponent(javax.swing.text.JTextComponent c)
           
 void setMarkPosition(int pos)
           
 void setModel(Console console)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JTextComponentConsoleUI

protected JTextComponentConsoleUI()
Method Detail

setModel

public void setModel(Console console)

getModel

public Console getModel()

getJTextComponent

public javax.swing.text.JTextComponent getJTextComponent()

setJTextComponent

public void setJTextComponent(javax.swing.text.JTextComponent c)

createTextComponent

protected javax.swing.text.JTextComponent createTextComponent()

append

public void append(java.lang.String str)
Description copied from interface: ConsoleUI
Displays an output from the scripting engine

Specified by:
append in interface ConsoleUI

insert

public void insert(java.lang.String str,
                   int mark)

getLength

public int getLength()

setCursorPosition

public void setCursorPosition(int pos)

getMarkPosition

public int getMarkPosition()

setMarkPosition

public void setMarkPosition(int pos)

entered

public void entered(java.lang.String command)

close

public void close()
Specified by:
close in interface ConsoleUI