Fields Summary |
---|
static final int | MAIN_EXITreturn value from Main, so we know that Main exited normally |
static final int | SHUTDOWNstatus for shutdown |
static final int | OKstatus for success |
int | statusStatus of the last command. |
int | suiteIdThe ID given to a suite load. |
String | midletClassNameClass name of MIDlet. |
boolean | logoDisplayedHas the application manager MIDlet displayed the Java logo yet? |
int | lastSuiteIdThe ID of suite to load when there is no other queued. |
String | lastMidletClassNameThe MIDlet class name for the suite to load. |
String | lastArg0The argument for a last MIDlet, will be app property arg-0. |
String | lastArg1The argument for a last MIDlet, will be app property arg-1. |
String | arg0The argument for a MIDlet in the suite, will be app property arg-0. |
String | arg1The argument for a MIDlet in the suite, will be app property arg-1. |
String | arg2The argument for a MIDlet in the suite, will be app property arg-2. |
RuntimeInfo | runtimeInfoStructure containing the run time information about the midlet. |
Methods Summary |
---|
static native void | exitInternal(int status)Exit the VM with an error code. Our private version of Runtime.exit.
This is needed because the MIDP version of Runtime.exit cannot tell
if it is being called from a MIDlet or not, so it always throws an
exception.
|
static com.sun.midp.main.CommandState | getCommandState()Get the command state.
CommandState state = new CommandState();
restoreCommandState(state);
return state;
|
private static native void | restoreCommandState(com.sun.midp.main.CommandState state)Restore the command state.
|
void | save()Save the command state.
saveCommandState(this);
|
private static native void | saveCommandState(com.sun.midp.main.CommandState state)Save the command state.
|
public java.lang.String | toString()Returns the string form of this object.
return "CommandState:" +
"\n status: " + status +
"\n suite ID: " + suiteId +
"\n class name: " + midletClassName +
"\n logo displayed: " + logoDisplayed +
"\n last suite ID: " + lastSuiteId +
"\n last MIDlet class name: " + lastMidletClassName +
"\n arg 0: " + arg0 +
"\n arg 1: " + arg1 +
"\n arg 2: " + arg2 +
"\n memory reserved: " + runtimeInfo.memoryReserved +
"\n memory total: " + runtimeInfo.memoryTotal +
"\n priority:" + runtimeInfo.priority +
"\n profile name: " + runtimeInfo.profileName;
|