brf.j2me.dynaworks.env
Class Event

java.lang.Object
  |
  +--brf.j2me.dynaworks.env.Event
Direct Known Subclasses:
ActionEvent

public class Event
extends java.lang.Object

The Event class represents "raw" events generated by the PalmOS event loop that are passed to the application event handler 'handleSysEvent()'

Version:
1.0
Author:
Bernd R. Fix
See Also:
EventQueue

Field Summary
static int APP_IDLE
          event code
static int APP_PWRDOWN
          event code
static int APP_PWRUP
          event code
static int APP_QUIT
          event code
static int APP_START
          event code
protected  int code
          Event code (one of the above constants).
static int KEY_APP
          event code
static int KEY_BUTTON1
          event code
static int KEY_BUTTON2
          event code
static int KEY_BUTTON3
          event code
static int KEY_BUTTON4
          event code
static int KEY_CHAR
          event code
static int KEY_DOWN
          event code
static int KEY_MENU
          event code
static int KEY_UP
          event code
protected  java.lang.Object param
          Event parameter.
static int PEN_DOWN
          event code
static int PEN_MOVE
          event code
static int PEN_UP
          event code
 
Constructor Summary
Event(int code)
          constructor.
Event(int code, int param)
          constructor.
Event(int code, int x, int y)
          constructor.
 
Method Summary
 int getCode()
          get the event code
 java.lang.Object getParam()
          get the event parameter
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

APP_IDLE

public static final int APP_IDLE
event code


APP_START

public static final int APP_START
event code


APP_PWRUP

public static final int APP_PWRUP
event code


APP_PWRDOWN

public static final int APP_PWRDOWN
event code


APP_QUIT

public static final int APP_QUIT
event code


PEN_DOWN

public static final int PEN_DOWN
event code


PEN_MOVE

public static final int PEN_MOVE
event code


PEN_UP

public static final int PEN_UP
event code


KEY_CHAR

public static final int KEY_CHAR
event code


KEY_UP

public static final int KEY_UP
event code


KEY_DOWN

public static final int KEY_DOWN
event code


KEY_MENU

public static final int KEY_MENU
event code


KEY_APP

public static final int KEY_APP
event code


KEY_BUTTON1

public static final int KEY_BUTTON1
event code


KEY_BUTTON2

public static final int KEY_BUTTON2
event code


KEY_BUTTON3

public static final int KEY_BUTTON3
event code


KEY_BUTTON4

public static final int KEY_BUTTON4
event code


code

protected int code
Event code (one of the above constants).


param

protected java.lang.Object param
Event parameter.

Constructor Detail

Event

public Event(int code)
constructor.

Parameters:
code - int - event code.

Event

public Event(int code,
             int param)
constructor.

Parameters:
code - int - event code.
param - int - event parameter.

Event

public Event(int code,
             int x,
             int y)
constructor.

Parameters:
code - int - event code.
x - int - x-coordinate of (pen) event.
y - int - y-coordinate of (pen) event.
Method Detail

getCode

public int getCode()
get the event code

Returns:
int - event code

getParam

public java.lang.Object getParam()
get the event parameter

Returns:
Object - event parameter