public class KeyTrigger extends Object implements Trigger<Key,KeyTrigger.Type>
| Modifier and Type | Class and Description |
|---|---|
static class |
KeyTrigger.Type |
| Modifier and Type | Field and Description |
|---|---|
protected Key |
onKey |
protected KeyTrigger.Type |
type |
| Constructor and Description |
|---|
KeyTrigger(Key onKey)
Creates a new KeyTrigger, with a key and triggers on
key
KeyTrigger.Type.DOWN |
KeyTrigger(Key onKey,
KeyTrigger.Type type)
Creates a new KeyTrigger, with a key and triggers on
the given
KeyTrigger.Type |
protected Key onKey
protected KeyTrigger.Type type
public KeyTrigger(Key onKey)
KeyTrigger.Type.DOWNonKey - The key which should trigger the eventpublic KeyTrigger(Key onKey, KeyTrigger.Type type)
KeyTrigger.TypeonKey - The key which should trigger the eventtype - Only if the key event matches this type. The event does get firedpublic Key get()
get in interface Trigger<Key,KeyTrigger.Type>Copyright © 2014. All rights reserved.