gov.sandia.ccaffeine.dc.user_iface.ccacmd
Class CmdContextCcaOneCommand

java.lang.Object
  extended by gov.sandia.ccaffeine.cmd.CmdContext
      extended by gov.sandia.ccaffeine.dc.user_iface.ccacmd.CmdContextCcaOneCommand

public class CmdContextCcaOneCommand
extends CmdContext


Constructor Summary
CmdContextCcaOneCommand()
           
 
Method Summary
 void addGuiUserListener(GuiUserListener listener)
           
protected  void broadcastGetComponentClassEvent(QueryEvent event)
           
protected  void broadcastGetComponentInstanceEvent(QueryEvent event)
           
protected  void broadcastPrint(java.lang.String message)
           
protected  void broadcastPrintEvent(PrintEvent event)
           
protected  void broadcastPrintln(java.lang.String message)
           
protected  void broadcastPrintlnEvent(PrintEvent event)
           
 java.lang.String getClass(java.lang.String className)
          Retrieve the Component Class from the GUI
 java.lang.String getInstance(java.lang.String instanceName)
          Retrieve the Component Instance from the GUI
 void p(java.lang.String s)
          Interpreter has a function for writing from a String.
 void pn(java.lang.String s)
          Interpreter has a function for writing line from a String.
 java.lang.String prompt()
          prompt string
 java.lang.String readLine()
          Interpreter has to get input from somewhere, line at a time.
 void removeGuiUserListener(GuiUserListener listener)
           
 void setOneCommand(java.lang.String oneCommand)
          Set the command
 
Methods inherited from class gov.sandia.ccaffeine.cmd.CmdContext
debug, setDebug, setVerbose, verbose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmdContextCcaOneCommand

public CmdContextCcaOneCommand()
Method Detail

setOneCommand

public void setOneCommand(java.lang.String oneCommand)
Set the command

Parameters:
oneCommand - The command

pn

public void pn(java.lang.String s)
Description copied from class: CmdContext
Interpreter has a function for writing line from a String.

Specified by:
pn in class CmdContext

p

public void p(java.lang.String s)
Description copied from class: CmdContext
Interpreter has a function for writing from a String.

Specified by:
p in class CmdContext

prompt

public java.lang.String prompt()
Description copied from class: CmdContext
prompt string

Specified by:
prompt in class CmdContext

readLine

public java.lang.String readLine()
                          throws java.io.IOException
Description copied from class: CmdContext
Interpreter has to get input from somewhere, line at a time. Dearly wish this could support command and name completions.

Specified by:
readLine in class CmdContext
Throws:
java.io.IOException

getInstance

public java.lang.String getInstance(java.lang.String instanceName)
                             throws java.lang.RuntimeException
Retrieve the Component Instance from the GUI

Specified by:
getInstance in class CmdContext
Throws:
java.lang.RuntimeException

getClass

public java.lang.String getClass(java.lang.String className)
                          throws java.lang.RuntimeException
Retrieve the Component Class from the GUI

Specified by:
getClass in class CmdContext
Throws:
java.lang.RuntimeException

addGuiUserListener

public void addGuiUserListener(GuiUserListener listener)

removeGuiUserListener

public void removeGuiUserListener(GuiUserListener listener)

broadcastPrint

protected void broadcastPrint(java.lang.String message)

broadcastPrintEvent

protected void broadcastPrintEvent(PrintEvent event)

broadcastPrintln

protected void broadcastPrintln(java.lang.String message)

broadcastPrintlnEvent

protected void broadcastPrintlnEvent(PrintEvent event)

broadcastGetComponentInstanceEvent

protected void broadcastGetComponentInstanceEvent(QueryEvent event)

broadcastGetComponentClassEvent

protected void broadcastGetComponentClassEvent(QueryEvent event)