|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gnu.gtk.event.GtkEvent
org.gnu.gtk.event.KeyEvent
public class KeyEvent
This event object is used to identify when a key has been pressed and
released. In particular, it allows you to get at which key was
pressed - see getKeyval().
An example of how to listen for KeyEvents,
KeyValue,
Serialized Form| Nested Class Summary | |
|---|---|
static class |
KeyEvent.Type
Deprecated. |
| Constructor Summary | |
|---|---|
KeyEvent(java.lang.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. |
|
| Method Summary | |
|---|---|
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. |
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. |
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. |
java.lang.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. |
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. |
| Methods inherited from class org.gnu.gtk.event.GtkEvent |
|---|
getSource, getType, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public KeyEvent(java.lang.Object source,
KeyEvent.Type type,
EventKey gdkEvent)
| Method Detail |
|---|
public boolean isOfType(KeyEvent.Type test)
public int getKeyval()
if (key == KeyValue.Return) {
...
}
KeyValue for the
comprehensive list of values.public int getLength()
getString()).
public ModifierType getModifierKey()
ModifierType)public java.lang.String getString()
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?
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||