Fields Summary |
---|
private com.sun.midp.security.SecurityToken | classSecurityTokenThis class has a different security domain than the application. |
protected com.sun.midp.lcdui.DisplayContainer | displayContainerStores array of active displays for a MIDlet suite isolate. |
private MIDletControllerEventProducer | midletControllerEventProducerCached reference to the MIDletControllerEventProducer. |
private boolean | vmInMidletStartModeIndicates if the VM is in MIDlet start mode. |
private boolean | previouslyActiveIndicate if a MIDlet has been active before. |
Methods Summary |
---|
public void | midletActivated(MIDletSuite suite, MIDlet midlet)Called after a MIDlet is successfully activated. This is after
the startApp method is called.
String className = midlet.getClass().getName();
/*
* JAMS UE feature: If a MIDlet has not set a current displayable
* in its display by the time it has returned from startApp,
* display the headless alert. The headless alert has been
* set as the initial displayable but for the display but the
* foreground has not been requested, to avoid displaying the
* alert for MIDlet that do set a current displayable.
*/
if (!previouslyActive) {
previouslyActive = true;
if (Display.getDisplay(midlet).getCurrent() == null) {
displayContainer.requestForegroundForDisplay(className);
}
}
midletControllerEventProducer.sendMIDletActiveNotifyEvent(
suite.getID(), className);
|
public void | midletCreated(MIDletSuite suite, java.lang.String className, int externalAppId)Called after a MIDlet is successfully created.
midletControllerEventProducer.sendMIDletCreateNotifyEvent(
suite.getID(), className, externalAppId,
suite.getMIDletName(className));
OtaNotifier.retryInstallNotification(classSecurityToken, suite);
if (vmInMidletStartMode) {
/*
* Send a hint to VM about end of a MIDlet startup phase within
* current isolate to allow VM to restore its internal parameters
* changed for startup time for better performance
*/
MIDletSuiteUtils.vmEndStartUp(
classSecurityToken, MIDletSuiteUtils.getIsolateId());
vmInMidletStartMode = false;
}
|
public void | midletDestroyed(MIDletSuite suite, java.lang.String className)Called after a MIDlet is successfully destroyed.
displayContainer.removeDisplay(className);
midletControllerEventProducer.sendMIDletDestroyNotifyEvent(
suite.getID(), className);
|
public void | midletPaused(MIDletSuite suite, java.lang.String className)Called after a MIDlet is successfully paused.
midletControllerEventProducer.sendMIDletPauseNotifyEvent(
suite.getID(), className);
/*
* IMPL_NOTE: it is now implied that MIDlet is always
* requested to be paused together with all the
* suspendable resources.
*
* This code is not suitable when mulitple MIDlet are running in this
* isolate.
*/
SuspendSystem.getInstance(classSecurityToken).suspend();
midletControllerEventProducer.sendMIDletRsPauseNotifyEvent(
suite.getID(), className);
|
public void | midletPausedItself(MIDletSuite suite, java.lang.String className)Called after a MIDlet pauses itself. In this case pauseApp has
not been called.
midletControllerEventProducer.sendMIDletPauseNotifyEvent(
suite.getID(), className);
|
public void | midletPreStart(MIDletSuite suite, java.lang.String className)Called before a MIDlet is created.
/*
* Send a hint to VM about begining of a MIDlet startup phase within
* current isolate to allow VM to adjust internal parameters for
* better performance
*/
MIDletSuiteUtils.vmBeginStartUp(
classSecurityToken, MIDletSuiteUtils.getIsolateId());
vmInMidletStartMode = true;
// Do ContentHandler initialization for this MIDlet
CHManager.getManager(classSecurityToken).
midletInit(suite.getID(), className);
|
public void | preActivated(MIDletSuite suite, java.lang.String className)Called before a MIDlet is activated.
SuspendSystem.getInstance(classSecurityToken).resume();
|
public void | resumeRequest(MIDletSuite suite, java.lang.String className)Called when a MIDlet calls MIDlet resume request.
midletControllerEventProducer.sendMIDletResumeRequest(
suite.getID(), className);
|