org.openscience.jmol.app

Class ConsoleTextPane

class ConsoleTextPane extends JTextPane

Field Summary
booleanchecking
ConsoleDocumentconsoleDoc
EnterListenerenterListener
JmolViewerviewer
Constructor Summary
ConsoleTextPane(ScriptWindow scriptWindow)
Method Summary
voidappendNewline()
voidcheckCommand()
voidclearContent()
voidclearContent(String text)
voidenterPressed()
StringgetCommandString()
voidoutputEcho(String strEcho)
voidoutputError(String strError)
voidoutputErrorForeground(String strError)
voidoutputStatus(String strStatus)
protected voidprocessKeyEvent(KeyEvent ke)
Custom key event processing for command 0 implementation.
voidrecallCommand(boolean up)
Recall command history.
voidsetPrompt()

Field Detail

checking

boolean checking

consoleDoc

ConsoleDocument consoleDoc

enterListener

EnterListener enterListener

viewer

JmolViewer viewer

Constructor Detail

ConsoleTextPane

ConsoleTextPane(ScriptWindow scriptWindow)

Method Detail

appendNewline

public void appendNewline()

checkCommand

void checkCommand()

clearContent

public void clearContent()

clearContent

public void clearContent(String text)

enterPressed

public void enterPressed()

getCommandString

public String getCommandString()

outputEcho

public void outputEcho(String strEcho)

outputError

public void outputError(String strError)

outputErrorForeground

public void outputErrorForeground(String strError)

outputStatus

public void outputStatus(String strStatus)

processKeyEvent

protected void processKeyEvent(KeyEvent ke)
Custom key event processing for command 0 implementation. Captures key up and key down strokes to call command history and redefines the same events with control down to allow caret vertical shift.

See Also: java.awt.Component#processKeyEvent(java.awt.event.KeyEvent)

recallCommand

void recallCommand(boolean up)
Recall command history.

Parameters: up - history up or down

setPrompt

public void setPrompt()