| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.gnu.gtk.event.GtkEventorg.gnu.gtk.event.KeyEventpublic class KeyEventextends GtkEventgetKeyval().
Nested Class Summary | |
static class | |
Constructor Summary | |
| |
Method Summary | |
int |
|
int |
|
ModifierType |
|
String |
|
boolean |
|
public KeyEvent(Object source,
KeyEvent.Type type,
EventKey gdkEvent)Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.
Construct a KeyEvent object.
public int getKeyval()
Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.
Returns the key value. Example:if (key == KeyValue.Return) { ... }
- Returns:
- an int, the key value. See
KeyValuefor the comprehensive list of values.
public int getLength()
Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.
Returns the length of the String that resulted from this keypress (seegetString()).
- Returns:
- int
public ModifierType getModifierKey()
Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.
Returns the modifier key used.
- Returns:
- (see
ModifierType)
public String getString()
Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.
Get the "null-terminated multi-byte string containing the composed characters resulting from the key press". FIXME: Isn't null termination hidden in Java? And, in any case, characters in Strings in Java are multi-byte. So does this work right nor not?
- Returns:
- String the character(s) resulting from the key press.
public boolean isOfType(KeyEvent.Type test)
Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.
Test to compare events.