|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.microedition.midlet.MIDlet
m3g03.midp2.Main
public class Main
Application for starting the device tests. Requires MIDP 2.0.
| Field Summary | |
|---|---|
private javax.microedition.lcdui.Command |
backCommand
Back command. |
private javax.microedition.lcdui.Command |
exitCommand
Exit command. |
private static javax.microedition.midlet.MIDlet |
midlet
Static reference to current MIDlet instance. |
private javax.microedition.lcdui.List |
selectionScreen
Screen for selecting samples. |
private static java.lang.String[][] |
TESTS
List of tests. |
| Constructor Summary | |
|---|---|
Main()
Constructor. |
|
| Method Summary | |
|---|---|
void |
commandAction(javax.microedition.lcdui.Command command,
javax.microedition.lcdui.Displayable displayable)
Receives command actions from the selection screen as well as the samples. |
void |
destroyApp(boolean unconditional)
Enters the destroyed state. |
static javax.microedition.lcdui.Display |
getDisplay()
Returns the display unique to this MIDlet. |
void |
pauseApp()
Enters the paused state. |
void |
startApp()
Enters the active state. |
| Methods inherited from class javax.microedition.midlet.MIDlet |
|---|
checkPermission, getAppProperty, notifyDestroyed, notifyPaused, platformRequest, resumeRequest |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static javax.microedition.midlet.MIDlet midlet
private static final java.lang.String[][] TESTS
Displayable.
private javax.microedition.lcdui.List selectionScreen
private javax.microedition.lcdui.Command exitCommand
private javax.microedition.lcdui.Command backCommand
| Constructor Detail |
|---|
public Main()
| Method Detail |
|---|
public void startApp()
startApp in class javax.microedition.midlet.MIDletpublic void pauseApp()
pauseApp in class javax.microedition.midlet.MIDletpublic void destroyApp(boolean unconditional)
destroyApp in class javax.microedition.midlet.MIDletunconditional - if true, MIDlet is required to exit
unconditionally.
public void commandAction(javax.microedition.lcdui.Command command,
javax.microedition.lcdui.Displayable displayable)
commandAction in interface javax.microedition.lcdui.CommandListenercommand - command.displayable - source of the command.public static javax.microedition.lcdui.Display getDisplay()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||