org.jagatoo.input.events
Class KeyTypedEvent

java.lang.Object
  extended by org.jagatoo.input.events.InputEvent
      extended by org.jagatoo.input.events.KeyboardEvent
          extended by org.jagatoo.input.events.KeyTypedEvent

public class KeyTypedEvent
extends KeyboardEvent

This type of eevnt is fired when a printable key was typed.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jagatoo.input.events.KeyboardEvent
KeyboardEvent.SubType
 
Nested classes/interfaces inherited from class org.jagatoo.input.events.InputEvent
InputEvent.Type
 
Constructor Summary
protected KeyTypedEvent()
          Creates a new KeyboardEvent with the default settings
protected KeyTypedEvent(Keyboard keyboard, char keyChar, int modifierMask, long when, long lastWhen)
          Initialises the new KeyboardEvent using the given values.
 
Method Summary
 char getKeyChar()
          The key related to this event.
protected  void set(Keyboard keyboard, char keyChar, int modifierMask, long when, long lastWhen)
          Initialises the new KeyboardEvent using the given values.
 
Methods inherited from class org.jagatoo.input.events.KeyboardEvent
getKey, getKeyboard, getKeyCode, getModifierMask, getSubType, set, toString
 
Methods inherited from class org.jagatoo.input.events.InputEvent
getComponent, getLastWhen, getType, getWhen, set, set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KeyTypedEvent

protected KeyTypedEvent()
Creates a new KeyboardEvent with the default settings


KeyTypedEvent

protected KeyTypedEvent(Keyboard keyboard,
                        char keyChar,
                        int modifierMask,
                        long when,
                        long lastWhen)
Initialises the new KeyboardEvent using the given values.

Parameters:
keyChar - the char of the typed key
when - the timestamp of the KeyboardEvent
Method Detail

getKeyChar

public final char getKeyChar()
The key related to this event.


set

protected void set(Keyboard keyboard,
                   char keyChar,
                   int modifierMask,
                   long when,
                   long lastWhen)
Initialises the new KeyboardEvent using the given values.

Parameters:
keyChar - the char of the typed key
when - the timestamp of the KeyboardEvent