org.sapia.console
Interface ConsoleListener

All Known Implementing Classes:
ConsoleListenerImpl

public interface ConsoleListener

Listener that is called back by a CommandConsole instance at various moments.

Author:
Yanick Duchesne 29-Nov-02

Method Summary
 void onAbort(Console cons)
          Called when the console exits (can be implemented to display a good-bye message).
 void onCommandNotFound(Console cons, String commandName)
          Called when the console cannot interpret a given command (Can be implemented to display an error message).
 void onStart(Console cons)
          Called when the console starts (can be implemented to display welcome message).
 

Method Detail

onStart

public void onStart(Console cons)
Called when the console starts (can be implemented to display welcome message).


onCommandNotFound

public void onCommandNotFound(Console cons,
                              String commandName)
Called when the console cannot interpret a given command (Can be implemented to display an error message).


onAbort

public void onAbort(Console cons)
Called when the console exits (can be implemented to display a good-bye message).



Copyright © 2002 Sapia Open Community, Inc. All Rights Reserved.