FileDocCategorySizeDatePackage
MIDletEventListener.javaAPI DocJ2ME MIDP 2.01766Thu Nov 07 12:02:22 GMT 2002com.sun.midp.lcdui

MIDletEventListener

public interface MIDletEventListener
This is the DisplayManager/Scheduler contract for MIDlet events.

Fields Summary
Constructors Summary
Methods Summary
public voiddestroyMIDlet(javax.microedition.midlet.MIDlet midlet)
Destroy the MIDlet given midlet. Return to the control to AMS if there are no another active MIDlets in the scheduled. This is a system callback which allows a user to forcibly exit a running MIDlet in cases where it is necessary (such as a rogue MIDlet which does not provide exit capability).

param
midlet midlet that the event applies to

public voidpauseMIDlet(javax.microedition.midlet.MIDlet midlet)
Pause the current foreground MIDlet and return to the AMS or "selector" to possibly run another MIDlet in the currently active suite. Currently, the RI does not support running multiple MIDlets, but if it did, this system callback would allow it. The listener should not deactivate the display of the MIDlet.

param
midlet midlet that the event applies to

public voidstartMIDlet(javax.microedition.midlet.MIDlet midlet)
Start the currently suspended state. This is a result of the underlying system returning control to MIDP. Any previously paused foreground MIDlet will be restarted and the Display will be refreshed. The listener should not activate the display of the MIDlet since this will be done automatically.

param
midlet midlet that the event applies to