|
www.RoboHobby.com - Java ME/SE robotics project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.microedition.midlet.MIDlet
com.robohobby.me.RobotMIDlet
public class RobotMIDlet
| Field Summary | |
|---|---|
(package private) CallBacks |
callBacks
|
private javax.microedition.lcdui.Command |
exitCommand
|
private javax.microedition.lcdui.Form |
form
|
private javax.microedition.lcdui.Command |
infoItemCommand
|
private javax.microedition.lcdui.Command |
itemCommand
|
boolean |
midletPaused
|
private javax.microedition.lcdui.Command |
readRemoteCmdItemCommand
|
private javax.microedition.lcdui.Command |
rootsCommand
|
private javax.microedition.lcdui.StringItem |
rootsStringItem
|
private javax.microedition.lcdui.StringItem |
stateStringItem
|
private javax.microedition.lcdui.StringItem |
timeInfoStringItem
|
private javax.microedition.lcdui.Command |
writeToDiscCommand
|
| Constructor Summary | |
|---|---|
RobotMIDlet()
The RobotMIDlet constructor. |
|
| Method Summary | |
|---|---|
void |
commandAction(javax.microedition.lcdui.Command command,
javax.microedition.lcdui.Displayable displayable)
Called by a system to indicated that a command has been invoked on a particular displayable. |
void |
destroyApp(boolean unconditional)
Called to signal the MIDlet to terminate. |
void |
exitMIDlet()
Exits MIDlet. |
javax.microedition.lcdui.Display |
getDisplay()
Returns a display instance. |
javax.microedition.lcdui.Command |
getExitCommand()
Returns an initiliazed instance of exitCommand component. |
javax.microedition.lcdui.Form |
getForm()
Returns an initiliazed instance of form component. |
javax.microedition.lcdui.Command |
getInfoItemCommand()
Returns an initiliazed instance of infoItemCommand component. |
javax.microedition.lcdui.Command |
getItemCommand()
Returns an initiliazed instance of itemCommand component. |
javax.microedition.lcdui.Command |
getReadRemoteCmdItemCommand()
Returns an initiliazed instance of readRemoteCmdItemCommand component. |
private void |
getRoots()
|
javax.microedition.lcdui.Command |
getRootsCommand()
Returns an initiliazed instance of rootsCommand component. |
javax.microedition.lcdui.StringItem |
getRootsStringItem()
Returns an initiliazed instance of rootsStringItem component. |
javax.microedition.lcdui.StringItem |
getStateStringItem()
Returns an initiliazed instance of stateStringItem component. |
javax.microedition.lcdui.StringItem |
getTimeInfoStringItem()
Returns an initiliazed instance of timeInfoStringItem component. |
javax.microedition.lcdui.Command |
getWriteToDiscCommand()
Returns an initiliazed instance of writeToDiscCommand component. |
private void |
initialize()
Initilizes the application. |
void |
pauseApp()
Called when MIDlet is paused. |
private void |
readCommandFromDisc()
|
void |
resumeMIDlet()
Performs an action assigned to the Mobile Device - MIDlet Resumed point. |
void |
startApp()
Called when MIDlet is started. |
void |
startMIDlet()
Performs an action assigned to the Mobile Device - MIDlet Started point. |
void |
switchDisplayable(javax.microedition.lcdui.Alert alert,
javax.microedition.lcdui.Displayable nextDisplayable)
Switches a current displayable in a display. |
void |
writeToDisc()
|
| 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 |
|---|
public boolean midletPaused
CallBacks callBacks
private javax.microedition.lcdui.Command exitCommand
private javax.microedition.lcdui.Command writeToDiscCommand
private javax.microedition.lcdui.Command infoItemCommand
private javax.microedition.lcdui.Command itemCommand
private javax.microedition.lcdui.Command rootsCommand
private javax.microedition.lcdui.Command readRemoteCmdItemCommand
private javax.microedition.lcdui.Form form
private javax.microedition.lcdui.StringItem timeInfoStringItem
private javax.microedition.lcdui.StringItem stateStringItem
private javax.microedition.lcdui.StringItem rootsStringItem
| Constructor Detail |
|---|
public RobotMIDlet()
| Method Detail |
|---|
private void initialize()
startMIDlet method.
public void startMIDlet()
public void resumeMIDlet()
public void switchDisplayable(javax.microedition.lcdui.Alert alert,
javax.microedition.lcdui.Displayable nextDisplayable)
display instance is taken from getDisplay method. This method is used by all actions in the design for switching displayable.
alert - the Alert which is temporarily set to the display; if null, then nextDisplayable is set immediatelynextDisplayable - the Displayable to be set
public void commandAction(javax.microedition.lcdui.Command command,
javax.microedition.lcdui.Displayable displayable)
commandAction in interface javax.microedition.lcdui.CommandListenercommand - the Command that was invokeddisplayable - the Displayable where the command was invokedpublic javax.microedition.lcdui.Command getExitCommand()
public javax.microedition.lcdui.Form getForm()
public javax.microedition.lcdui.StringItem getTimeInfoStringItem()
public javax.microedition.lcdui.Command getWriteToDiscCommand()
public javax.microedition.lcdui.Command getItemCommand()
public javax.microedition.lcdui.Command getInfoItemCommand()
public javax.microedition.lcdui.StringItem getStateStringItem()
public javax.microedition.lcdui.StringItem getRootsStringItem()
public javax.microedition.lcdui.Command getRootsCommand()
public javax.microedition.lcdui.Command getReadRemoteCmdItemCommand()
private void readCommandFromDisc()
private void getRoots()
public javax.microedition.lcdui.Display getDisplay()
public void exitMIDlet()
public void writeToDisc()
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, then the MIDlet has to be unconditionally terminated and all resources has to be released.
|
Copyright © 2004-2008 OLeg Lyubchenko, Anton Lyubchenko. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||