org.adougou.cline
Class TextAreaPrompt

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--org.adougou.cline.BasePrompt
              |
              +--org.adougou.cline.TextAreaPrompt
All Implemented Interfaces:
IPrompt, java.lang.Runnable

public class TextAreaPrompt
extends BasePrompt

This class is used in conjunction with TextArea to provide an AWT-based command prompt.

See Also:
TextArea, ShellPrompt

Fields inherited from class org.adougou.cline.BasePrompt
err, in, out
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TextAreaPrompt(java.lang.String name, TextArea textArea)
          Same idea as the other constructor however will allocate a new command register for use by the prompt.
TextAreaPrompt(java.lang.String name, TextArea textArea, CommandRegister register)
          The TextAreaPrompt requires a TextArea.
 
Methods inherited from class org.adougou.cline.BasePrompt
askBooleanQuestion, askQuestion, askQuestion, exit, printPrompt, redirectSystemIOToPrompt, registerCommand, registerPackage, run
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.adougou.cline.IPrompt
start
 

Constructor Detail

TextAreaPrompt

public TextAreaPrompt(java.lang.String name,
                      TextArea textArea,
                      CommandRegister register)
The TextAreaPrompt requires a TextArea. The TextArea should first be allocated and configured, and then passed to this constructor. The second parameter is a command register containing previously registered commands that will be available to this prompt.

TextAreaPrompt

public TextAreaPrompt(java.lang.String name,
                      TextArea textArea)
Same idea as the other constructor however will allocate a new command register for use by the prompt.