FileDocCategorySizeDatePackage
MIDletTunnel.javaAPI DocphoneME MR2 API (J2ME)2868Wed May 02 18:00:06 BST 2007com.sun.midp.midlet

MIDletTunnel

public interface MIDletTunnel
This is the interface to "tunnel" across Java package namespace, and call the protected methods in the another package namespace. The callee package will implement this interface, and provide a static utility instance to the caller package.

Fields Summary
Constructors Summary
Methods Summary
public voidcallDestroyApp(javax.microedition.midlet.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.

public voidcallPauseApp(javax.microedition.midlet.MIDlet m)
Calls the pauseApp method on the midlet instance.

param
m MIDlet instance

public voidcallStartApp(javax.microedition.midlet.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.

public MIDletPeergetMIDletPeer(javax.microedition.midlet.MIDlet m)
Returns the MIDletPeer object corresponding to the given midlet instance.

param
m MIDlet instance
return
associated MIDletPeer instance