FileDocCategorySizeDatePackage
MIDletTunnelImpl.javaAPI DocphoneME MR2 API (J2ME)2955Wed May 02 18:00:06 BST 2007javax.microedition.midlet

MIDletTunnelImpl

public class MIDletTunnelImpl extends Object implements com.sun.midp.midlet.MIDletTunnel
This is an implementation of the MIDletTunnel interface, to allow com.sun.midp.midlet.MIDletState instance to call protected and package private methods of javax.microedition.midlet.MIDlet.

Fields Summary
Constructors Summary
Methods Summary
public voidcallDestroyApp(MIDlet m, boolean unconditional)
Calls the destroyApp method on the midlet instance.

param
m MIDlet instance
param
unconditional the flag to pass to destroy
exception
javax.microedition.midlet.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.

        m.destroyApp(unconditional);
    
public voidcallPauseApp(MIDlet m)
Calls the pauseApp method on the midlet instance.

param
m MIDlet instance

        m.pauseApp();
    
public voidcallStartApp(MIDlet m)
Calls the startApp method on the midlet instance.

param
m MIDlet instance
exception
javax.microedition.midlet.MIDletStateChangeException is thrown if the MIDlet cannot start now but might be able to start at a later time.

        m.startApp();
    
public com.sun.midp.midlet.MIDletPeergetMIDletPeer(MIDlet m)
Returns the MIDletPeer object corresponding to the given midlet instance.

param
m MIDlet instance
return
associated MIDletState instance

        return m.getMIDletPeer();