JSampler
v0.8a

org.jsampler.event
Class LSConsoleEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.jsampler.event.LSConsoleEvent
All Implemented Interfaces:
java.io.Serializable

public class LSConsoleEvent
extends java.util.EventObject

A semantic event which indicates LS Console changes.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
LSConsoleEvent(java.lang.Object source)
          Constructs an LSConsoleEvent object.
LSConsoleEvent(java.lang.Object source, java.lang.String response)
          Constructs an LSConsoleEvent object.
LSConsoleEvent(java.lang.Object source, java.lang.String response, java.lang.String oldCmdLine)
          Constructs an LSConsoleEvent object.
 
Method Summary
 java.lang.String getPreviousCommandLineText()
          Returns the previous command line text when commandLineTextChanged event occurs.
 java.lang.String getResponse()
          Returns the LinuxSampler's response when responseReceived event occurs.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LSConsoleEvent

public LSConsoleEvent(java.lang.Object source)
Constructs an LSConsoleEvent object.

Parameters:
source - The object that originated the event.

LSConsoleEvent

public LSConsoleEvent(java.lang.Object source,
                      java.lang.String response)
Constructs an LSConsoleEvent object.

Parameters:
source - The object that originated the event.

LSConsoleEvent

public LSConsoleEvent(java.lang.Object source,
                      java.lang.String response,
                      java.lang.String oldCmdLine)
Constructs an LSConsoleEvent object.

Parameters:
source - The object that originated the event.
response - Provides the LinuxSampler's response when responseReceived event occurs.
oldCmdLine - Provides the previous text of the command line when commandLineTextChanged event occurs.
Method Detail

getResponse

public java.lang.String getResponse()
Returns the LinuxSampler's response when responseReceived event occurs.

Returns:
The LinuxSampler's response when responseReceived event occurs and null for all other events.

getPreviousCommandLineText

public java.lang.String getPreviousCommandLineText()
Returns the previous command line text when commandLineTextChanged event occurs.

Returns:
The previous command line text when commandLineTextChanged event occurs and null for all other events.

JSampler
v0.8a

Copyright © 2007 Grigor Iliev. All rights reserved.