org.gnu.gtk.event

Class KeyEvent

Implemented Interfaces:
Serializable

public class KeyEvent
extends GtkEvent

See Also:
KeyListener

Nested Class Summary

static class
KeyEvent.Type

Field Summary

Fields inherited from class org.gnu.gtk.event.GtkEvent

source, type

Constructor Summary

KeyEvent(Object source, KeyEvent.Type type, EventKey gdkEvent)
Construct a KeyEvent object.

Method Summary

int
getKeyval()
Returns the keyval.
int
getLength()
Returns the length.
ModifierType
getModifierKey()
Returns the modifierKey.
String
getString()
Returns the string.
boolean
isOfType(KeyEvent.Type test)
Test to compare events.

Methods inherited from class org.gnu.gtk.event.GtkEvent

getSource, getType, toString

Constructor Details

KeyEvent

public KeyEvent(Object source,
                KeyEvent.Type type,
                EventKey gdkEvent)
Construct a KeyEvent object.

Method Details

getKeyval

public int getKeyval()
Returns the keyval.

Returns:
int


getLength

public int getLength()
Returns the length.

Returns:
int


getModifierKey

public ModifierType getModifierKey()
Returns the modifierKey.

Returns:
ModifierType


getString

public String getString()
Returns the string.

Returns:
String


isOfType

public boolean isOfType(KeyEvent.Type test)
Test to compare events.