de.lessvoid.nifty.controls
Class ConsoleExecuteCommandEvent

java.lang.Object
  extended by de.lessvoid.nifty.controls.ConsoleExecuteCommandEvent
All Implemented Interfaces:
NiftyEvent

public class ConsoleExecuteCommandEvent
extends Object
implements NiftyEvent

Executed when a new command is being issued on the console.

Author:
void

Constructor Summary
ConsoleExecuteCommandEvent(Console console, String commandLine)
           
 
Method Summary
 int getArgumentCount()
          Get the number of arguments, that means all arguments (separated by whitespace).
 String[] getArguments()
          Get all of the command arguments as an array.
 String getCommand()
          Get the command (the first string in the whitespace separated commandline).
 String getCommandLine()
          Get the complete command line as send from the console.
 Console getConsole()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleExecuteCommandEvent

public ConsoleExecuteCommandEvent(Console console,
                                  String commandLine)
Method Detail

getConsole

public Console getConsole()

getCommandLine

public String getCommandLine()
Get the complete command line as send from the console.

Returns:
command line

getArgumentCount

public int getArgumentCount()
Get the number of arguments, that means all arguments (separated by whitespace).

Returns:
argument counts

getCommand

public String getCommand()
Get the command (the first string in the whitespace separated commandline).

Returns:

getArguments

public String[] getArguments()
Get all of the command arguments as an array.

Returns:
arguments as String array.


Copyright © 2011. All Rights Reserved.