Fields Summary |
---|
static final int | KEY_EVENTMajor ID for an event on a key. |
static final int | PEN_EVENTMajor ID for a pointer event. |
static final int | COMMAND_EVENTMajor ID for an Abstract Command. |
static final int | SYSTEM_EVENTMajor ID for a "system" event. This type of
an event is for identifying things like
interruptions by the underlying device to
stop the VM, pause the current MIDlet, suspend
operations, kill the current MIDlet, etc. |
static final int | MM_EOM_EVENTMajor ID for an multimedia EOM event.
--- by hsy |
static final int | PRESSEDMinor ID indicating a press, either on a key or a pointer. |
static final int | RELEASEDMinor ID indicating a release, either of a key or a pointer. |
static final int | REPEATEDMinor ID indicating a key repeat. |
static final int | TYPEDMinor ID indicating a character typed (internal). |
static final int | IMEMinor ID indicating a IME string typed (internal). |
static final int | DRAGGEDMinor ID indicating a pointer drag. |
static final int | MENU_REQUESTEDMinor ID indicating that command event requires posting a menu. |
static final int | MENU_DISMISSEDMinor ID indicating that command event is dismissing a menu. |
static final int | SYSTEM_KEY_POWERThe value returned from getSystemKey if the keyCode is the POWER key. |
static final int | SYSTEM_KEY_SENDThe value returned from getSystemKey if the keyCode is SEND. |
static final int | SYSTEM_KEY_ENDThe value returned from getSystemKey if the keyCode is END. |
static final int | SYSTEM_KEY_CLEARThe value returned from getSystemKey if the keyCode is CLEAR. |
static final int | SUSPEND_ALLMinor ID indicating a SYSTEM_EVENT to suspend all current
activity |
static final int | RESUME_ALLMinor ID indicating a SYSTEM_EVENT to resume the currently
suspended MIDlet (that is, the followup to a previous
SUSPEND_CURRENT event) |
static final int | SHUTDOWNMinor ID indicating a SYSTEM_EVENT to stop all MIDlets
(active and paused) and exit the system |
static final int | SUSPEND_CURRENTMinor ID indicating a SYSTEM_EVENT to pause the currently
active MIDlet (and optionally return to the selector) |
static final int | RESUME_PREVIOUSMinor ID indicating a SYSTEM_EVENT to resume the currently
paused MIDlet |
static final int | KILL_CURRENTMinor ID indicating a SYSTEM_EVENT to kill the currently
active MIDlet (and optionally return to the selector) |
Methods Summary |
---|
public void | clearSystemScreen()Called to force the event handler to clear whatever system screen
has interrupted the current Displayable and allow the foreground
Display to resume painting.
|
public int | getGameAction(int keyCode)Get the abstract gameAction corresponding to the given keyCode.
|
public int | getKeyCode(int gameAction)Get the system-specific key code corresponding to the given gameAction.
|
public java.lang.String | getKeyName(int keyCode)Get the informative key string corresponding to the given keyCode.
|
public int | getSystemKey(int keyCode)Get the abstract system key that corresponds to keyCode.
|
public boolean | isDispatchThread()Returns true if the current thread is the EventHandler's dispatch
thread.
|
public void | scheduleCallSerially()Called to schedule a serial callback of a Runnable object passed
into Display's callSerially() method.
|
public void | scheduleInvalidate(javax.microedition.lcdui.Item src)Called to schedule an invalidation of a Form
|
public void | scheduleItemStateChanged(javax.microedition.lcdui.Item src)Called to schedule an ItemStateChanged notification
|
public void | scheduleRepaint(int x, int y, int w, int h, java.lang.Object target)Called to schedule a repaint of the current Displayable
as soon as possible
|
public void | scheduleScreenChange(javax.microedition.lcdui.Display parent, javax.microedition.lcdui.Displayable d)Called to schedule a screen change to the given Displayable
as soon as possible
|
public void | serviceRepaints()Called to service any pending repaint operations
|
public void | updateCommandSet(javax.microedition.lcdui.Command[] itemCommands, int numItemCommands, javax.microedition.lcdui.Command[] commands, int numCommands)Set the current set of active Abstract Commands.
|