pnuts.tools
Class JTextComponentConsoleUI
java.lang.Object
pnuts.tools.JTextComponentConsoleUI
- All Implemented Interfaces:
- ConsoleUI
- Direct Known Subclasses:
- PnutsConsoleUI
public class JTextComponentConsoleUI
- extends java.lang.Object
- implements ConsoleUI
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JTextComponentConsoleUI
protected JTextComponentConsoleUI()
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