console
Class ConsoleBeanShell

java.lang.Object
  extended by console.Shell
      extended by console.ConsoleBeanShell

public class ConsoleBeanShell
extends Shell


Nested Class Summary
 
Nested classes/interfaces inherited from class console.Shell
Shell.CompletionInfo, Shell.ShellAction, Shell.SwitchAction, Shell.ToggleAction
 
Field Summary
 
Fields inherited from class console.Shell
SERVICE
 
Constructor Summary
ConsoleBeanShell()
           
 
Method Summary
 void execute(Console console, java.lang.String input, Output output, Output error, java.lang.String command)
          Executes a command.
 void printInfoMessage(Output output)
          Prints a 'info' message to the specified console.
 void printPrompt(Console console, Output output)
          Prints a prompt to the specified console.
 void stop(Console console)
          Stops the currently executing command, if any.
 boolean waitFor(Console console)
          Waits until any currently executing commands finish.
 
Methods inherited from class console.Shell
closeConsole, detach, endOfFile, execute, getCompletions, getName, getShell, getShellNames, openConsole, registerShell, toString, unregisterShell, waitUntilDone
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConsoleBeanShell

public ConsoleBeanShell()
Method Detail

printInfoMessage

public void printInfoMessage(Output output)
Description copied from class: Shell
Prints a 'info' message to the specified console.

Overrides:
printInfoMessage in class Shell
Parameters:
output - The output

printPrompt

public void printPrompt(Console console,
                        Output output)
Prints a prompt to the specified console.

Overrides:
printPrompt in class Shell
Parameters:
output - The output
console - The console instance

execute

public void execute(Console console,
                    java.lang.String input,
                    Output output,
                    Output error,
                    java.lang.String command)
Description copied from class: Shell
Executes a command. Override this abstract method in custom derived classes.

Specified by:
execute in class Shell
Parameters:
console - The Console instance, to distinguish it from others when there are multiple View or Console instances.
input - optional string to feed into the command's Standard input
output - Standard output - the destination to send output
error - Standard error - the destionation to send error messages
command - The command

stop

public void stop(Console console)
Description copied from class: Shell
Stops the currently executing command, if any. When the user clicks the "stop" button on the console, this method is called.

Overrides:
stop in class Shell
Parameters:
console - the same Console instance that was passed to execute()

waitFor

public boolean waitFor(Console console)
Description copied from class: Shell
Waits until any currently executing commands finish.

Overrides:
waitFor in class Shell
Parameters:
console - the same Console instance that was passed to execute()
Returns:
True if the most recent command exited successfully, false otherwise