|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.microedition.midlet.MIDlet
test.GoogleTranslateJavaMEInteractiveSample
public class GoogleTranslateJavaMEInteractiveSample
Constructor Summary | |
---|---|
GoogleTranslateJavaMEInteractiveSample()
|
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.Command |
getCancelCommand()
Returns an initiliazed instance of cancelCommand component. |
javax.microedition.lcdui.Display |
getDisplay()
Returns a display instance. |
javax.microedition.lcdui.Form |
getForm()
Returns an initiliazed instance of form component. |
javax.microedition.lcdui.Command |
getOkCommand()
Returns an initiliazed instance of okCommand component. |
javax.microedition.lcdui.TextField |
getTxtLanguageCode()
Returns an initiliazed instance of txtLanguageCode component. |
javax.microedition.lcdui.TextField |
getTxtTextToTranslate()
Returns an initiliazed instance of txtTextToTranslate component. |
void |
pauseApp()
Called when MIDlet is paused. |
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. |
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 |
Constructor Detail |
---|
public GoogleTranslateJavaMEInteractiveSample()
Method Detail |
---|
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 setpublic void commandAction(javax.microedition.lcdui.Command command, javax.microedition.lcdui.Displayable displayable)
commandAction
in interface javax.microedition.lcdui.CommandListener
command
- the Command that was invokeddisplayable
- the Displayable where the command was invokedpublic javax.microedition.lcdui.Form getForm()
public javax.microedition.lcdui.TextField getTxtTextToTranslate()
public javax.microedition.lcdui.Command getOkCommand()
public javax.microedition.lcdui.Command getCancelCommand()
public javax.microedition.lcdui.TextField getTxtLanguageCode()
public javax.microedition.lcdui.Display getDisplay()
public void exitMIDlet()
public void startApp()
startApp
in class javax.microedition.midlet.MIDlet
public void pauseApp()
pauseApp
in class javax.microedition.midlet.MIDlet
public void destroyApp(boolean unconditional)
destroyApp
in class javax.microedition.midlet.MIDlet
unconditional
- if true, then the MIDlet has to be unconditionally terminated and all resources has to be released.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |