FileDocCategorySizeDatePackage
MIDletProxy.javaAPI DocJ2ME MIDP 2.02067Thu Nov 07 12:02:28 GMT 2002javax.microedition.midlet

MIDletProxy

public class MIDletProxy extends com.sun.midp.midlet.MIDletState
a proxy object that extends the state of the MIDlet. This class provides access to startApp,pauseApp and destroyApp methods.

Fields Summary
Constructors Summary
MIDletProxy(MIDlet m)
Protected constructor for subclasses. If any MIDlet is constructed it should be registered with Scheduler. That will allow them to be managed even if the application creates them itself.

param
m the MIDlet that will be accessed from this proxy object.

        MIDletStateMap.setMapImpl(new MIDletStateMapImpl());
    
	super(m);
    
Methods Summary
protected voiddestroyApp(boolean unconditional)
Forwards destoryApp method to the MIDlet from the scheduler.

param
unconditional the flag to pass to destroy
exception
MIDletStateChangeException is thrown if the MIDlet wishes to continue to execute (Not enter the Destroyed state). This exception is ignored if unconditional is equal to true.

	midlet.destroyApp(unconditional);
    
protected voidpauseApp()
Forwards pauseApp method to the MIDlet from the scheduler.

	midlet.pauseApp();
    
protected voidstartApp()
Forwards startApp method to the MIDlet from the scheduler.

exception
MIDletStateChangeException is thrown if the MIDlet cannot start now but might be able to start at a later time.

	midlet.startApp();