com.monica.javacom.virtualinput
Class MJCKeyListener

java.lang.Object
  |
  +--com.monica.javacom.virtualinput.MJCKeyListener
All Implemented Interfaces:
java.util.EventListener, java.awt.event.KeyListener, MJCConfigureable, MJCVirtualInput, MJCWriter

public class MJCKeyListener
extends java.lang.Object
implements java.awt.event.KeyListener, MJCVirtualInput

This class if responsible for handling keyboard events from the user. The catched keyboard events will be passed to the MJCTerminal below.


Constructor Summary
MJCKeyListener()
          Default constructor.
 
Method Summary
 MJCConfiguration getConfiguration()
          Returns the MJCConfiguration with which this object is customized.
 java.lang.String getVirtualInputName()
          Returns the MJC name of the MJCVirtualInput.
 java.lang.String getVirtualInputVersion()
          Returns the MJC version of the MJCVirtualInput.
 MJCWriteable getWriteable()
          Returns the MJCWriteable to which this MCJWriter will write.
 java.lang.String getWriterName()
          Returns the MJC name of the MJCWriter.
 java.lang.String getWriterVersion()
          Returns the MJC version of the MJCWriter.
 void keyPressed(java.awt.event.KeyEvent e)
          Handler method for the key pressing event.
 void keyReleased(java.awt.event.KeyEvent e)
          Handler method for the key releasing event.
 void keyTyped(java.awt.event.KeyEvent e)
          Handler method for the key typing event.
 void setConfiguration(MJCConfiguration configuration)
          Sets the MJCConfiguration for this object.
 void setWriteable(MJCWriteable writeable)
          Sets the MJCWriteable to which this MJCWriter will write.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MJCKeyListener

public MJCKeyListener()
Default constructor.
Method Detail

getVirtualInputName

public java.lang.String getVirtualInputName()
Returns the MJC name of the MJCVirtualInput.
Specified by:
getVirtualInputName in interface MJCVirtualInput
Returns:
String: the MJC name of the MJCVirtualInput

getVirtualInputVersion

public java.lang.String getVirtualInputVersion()
Returns the MJC version of the MJCVirtualInput.
Specified by:
getVirtualInputVersion in interface MJCVirtualInput
Returns:
String: the MJC version of the MJCVirtualInput

getWriterName

public java.lang.String getWriterName()
Returns the MJC name of the MJCWriter.
Specified by:
getWriterName in interface MJCWriter
Returns:
String: the MJC name of the MJCWriter

getWriterVersion

public java.lang.String getWriterVersion()
Returns the MJC version of the MJCWriter.
Specified by:
getWriterVersion in interface MJCWriter
Returns:
String: the MJC version of the MJCWriter

setWriteable

public void setWriteable(MJCWriteable writeable)
Sets the MJCWriteable to which this MJCWriter will write.
Specified by:
setWriteable in interface MJCWriter
Parameters:
MJCWriteable - writeable: the MJCWriteable to which this MJCWriter will write

getWriteable

public MJCWriteable getWriteable()
Returns the MJCWriteable to which this MCJWriter will write.
Specified by:
getWriteable in interface MJCWriter
Returns:
MJCWriteable: the MJCWriteable to which this MJCWriter will write

setConfiguration

public void setConfiguration(MJCConfiguration configuration)
Sets the MJCConfiguration for this object.
Specified by:
setConfiguration in interface MJCConfigureable
Parameters:
MJCConfiguration - configuration: the MJCConfiguration object for the customization

getConfiguration

public MJCConfiguration getConfiguration()
Returns the MJCConfiguration with which this object is customized.
Specified by:
getConfiguration in interface MJCConfigureable
Returns:
MJCConfiguration: the MJCConfiguration with which this object is customized

keyTyped

public void keyTyped(java.awt.event.KeyEvent e)
Handler method for the key typing event.
Specified by:
keyTyped in interface java.awt.event.KeyListener
Parameters:
KeyEvent - e: the KeyEvent generated

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
Handler method for the key pressing event.
Specified by:
keyPressed in interface java.awt.event.KeyListener
Parameters:
KeyEvent - e: the KeyEvent generated

keyReleased

public void keyReleased(java.awt.event.KeyEvent e)
Handler method for the key releasing event.
Specified by:
keyReleased in interface java.awt.event.KeyListener
Parameters:
KeyEvent - e: the KeyEvent generated