|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnl.toolforge.karma.cli.cmd.ConsoleCommandResponseHandler
This class is responsible for handling CommandResponses in an interactive way. Each time a CommandResponse changes, the changes are logged through the writer.
| Constructor Summary | |
ConsoleCommandResponseHandler(nl.toolforge.karma.console.KarmaConsole karmaConsole)
Creates a handler. |
|
| Method Summary | |
void |
commandFinished(nl.toolforge.karma.core.cmd.event.CommandResponseEvent event)
Calls messageLogged(nl.toolforge.karma.core.cmd.event.CommandResponseEvent). |
void |
commandStarted(nl.toolforge.karma.core.cmd.event.CommandResponseEvent event)
Calls messageLogged(nl.toolforge.karma.core.cmd.event.CommandResponseEvent). |
void |
messageLogged(nl.toolforge.karma.core.cmd.event.CommandResponseEvent event)
Writes the events' message text to the KarmaConsole. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ConsoleCommandResponseHandler(nl.toolforge.karma.console.KarmaConsole karmaConsole)
karmaConsole - A KarmaConsole instance.| Method Detail |
public void commandStarted(nl.toolforge.karma.core.cmd.event.CommandResponseEvent event)
messageLogged(nl.toolforge.karma.core.cmd.event.CommandResponseEvent).
commandStarted in interface nl.toolforge.karma.core.cmd.event.CommandResponseListenerevent - An event.public void commandFinished(nl.toolforge.karma.core.cmd.event.CommandResponseEvent event)
messageLogged(nl.toolforge.karma.core.cmd.event.CommandResponseEvent).
commandFinished in interface nl.toolforge.karma.core.cmd.event.CommandResponseListenerevent - An event.public void messageLogged(nl.toolforge.karma.core.cmd.event.CommandResponseEvent event)
messageLogged in interface nl.toolforge.karma.core.cmd.event.CommandResponseListenerevent - An event.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||