jhomenet.shell.console
Class ApplicationController

java.lang.Object
  extended by jhomenet.shell.console.ApplicationController

public class ApplicationController
extends java.lang.Object


Method Summary
 void addConsoleListener(ConsoleListener listener)
          Add a console listener.
 java.lang.String executeCommand(java.lang.String sCommandLine)
           
 javax.swing.JTextArea getDisplayWindow()
          Get a reference to the display window (used for the output stream).
static ApplicationController getInstance()
          Return a reference to the single application controller.
 void removeConsoleListener(ConsoleListener listener)
          Remove a console listener.
 void startConsole()
          Start the console.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ApplicationController getInstance()
Return a reference to the single application controller.

Returns:
Reference to application controller

startConsole

public void startConsole()
Start the console. By placing all startup code in its own method it makes it easy to restart the console if necessary.


executeCommand

public java.lang.String executeCommand(java.lang.String sCommandLine)

getDisplayWindow

public javax.swing.JTextArea getDisplayWindow()
Get a reference to the display window (used for the output stream).

Returns:

addConsoleListener

public void addConsoleListener(ConsoleListener listener)
Add a console listener.

Parameters:
listener - Listener to attempt to add

removeConsoleListener

public void removeConsoleListener(ConsoleListener listener)
Remove a console listener.

Parameters:
listener - Listener to attemp to remove


Copyright © 2004-2005 David Irwin. All Rights Reserved.