waba.ui
Class KeyEvent

java.lang.Object
  |
  +--waba.ui.Event
        |
        +--waba.ui.KeyEvent

public class KeyEvent
extends Event

KeyEvent is a key press event.


Field Summary
static int ACTION_KEY_PRESS
          The event type for a focus being transfered to this control with the ENTER or ACTION keys.
 int key
          The key pressed or entered by other means (grafitti input).
static int KEY_PRESS
          The event type for a key press event.
 int modifiers
          The state of the modifier keys when the event occured.
 
Fields inherited from class waba.ui.Event
consumed, target, timeStamp, type
 
Constructor Summary
KeyEvent()
          Constructs a KeyEvent, assigning the type as KEY_PRESS.
 
Method Summary
 boolean isActionKey()
          Returns true if the key press is an ACTION or ENTER one.
 boolean isDownKey()
          Returns true if the key press is any kind of the possible ones that means Down.
 boolean isNextKey()
          Returns true if the key press is any kind of the possible ones that means forward (TAB, PAGE_DOWN, DOWN, RIGHT, etc).
 boolean isPrevKey()
          Returns true if the key press is any kind of the possible ones that means previous (PAGE_UP, UP, LEFT, etc)
 boolean isUpKey()
          Returns true if the key press is any kind of the possible ones that means UP.
 
Methods inherited from class waba.ui.Event
getNextAvailableEventId, isAvailable, touch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_PRESS

public static final int KEY_PRESS
The event type for a key press event.

ACTION_KEY_PRESS

public static final int ACTION_KEY_PRESS
The event type for a focus being transfered to this control with the ENTER or ACTION keys.

key

public int key
The key pressed or entered by other means (grafitti input). This is either a normal character key (if the value is < 70000) or one of the special keys defined in the IKeys interface.
See Also:
IKeys

modifiers

public int modifiers
The state of the modifier keys when the event occured. This is a OR'ed combination of the modifiers present in the IKeys interface.
See Also:
IKeys
Constructor Detail

KeyEvent

public KeyEvent()
Constructs a KeyEvent, assigning the type as KEY_PRESS.
Method Detail

isActionKey

public boolean isActionKey()
Returns true if the key press is an ACTION or ENTER one.
Since:
SuperWaba 5.5

isUpKey

public boolean isUpKey()
Returns true if the key press is any kind of the possible ones that means UP.
Since:
SuperWaba 5.5

isDownKey

public boolean isDownKey()
Returns true if the key press is any kind of the possible ones that means Down.
Since:
SuperWaba 5.5

isNextKey

public boolean isNextKey()
Returns true if the key press is any kind of the possible ones that means forward (TAB, PAGE_DOWN, DOWN, RIGHT, etc).
Since:
SuperWaba 5.5

isPrevKey

public boolean isPrevKey()
Returns true if the key press is any kind of the possible ones that means previous (PAGE_UP, UP, LEFT, etc)
Since:
SuperWaba 5.5