example.bluetooth.demo
Class DemoMIDlet

java.lang.Object
  extended by javax.microedition.midlet.MIDlet
      extended by example.bluetooth.demo.DemoMIDlet
All Implemented Interfaces:
javax.microedition.lcdui.CommandListener

public final class DemoMIDlet
extends javax.microedition.midlet.MIDlet
implements javax.microedition.lcdui.CommandListener

Contains the Bluetooth API demo, that allows to download the specific images from the other devices.


Field Summary
(package private) static int ALERT_TIMEOUT
          The messages are shown in this demo this amount of time.
 
Constructor Summary
DemoMIDlet()
          Constructs main screen of the MIDlet.
 
Method Summary
 void commandAction(javax.microedition.lcdui.Command c, javax.microedition.lcdui.Displayable d)
          Responds to commands issued on "client or server" form.
protected  void destroyApp(boolean unconditional)
          Destroys the application.
(package private)  javax.microedition.lcdui.Displayable getDisplayable()
          Returns the displayable object of this screen - it is required for Alert construction for the error cases.
protected  void pauseApp()
          Does nothing.
(package private)  void show()
          Shows main menu of MIDlet on the screen.
 void startApp()
          Creates the demo view and action buttons.
 
Methods inherited from class javax.microedition.midlet.MIDlet
checkPermission, getAppProperty, notifyDestroyed, notifyPaused, platformRequest, resumeRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALERT_TIMEOUT

static final int ALERT_TIMEOUT
The messages are shown in this demo this amount of time.

See Also:
Constant Field Values
Constructor Detail

DemoMIDlet

public DemoMIDlet()
Constructs main screen of the MIDlet.

Method Detail

startApp

public void startApp()
Creates the demo view and action buttons.

Specified by:
startApp in class javax.microedition.midlet.MIDlet

destroyApp

protected void destroyApp(boolean unconditional)
Destroys the application.

Specified by:
destroyApp in class javax.microedition.midlet.MIDlet

pauseApp

protected void pauseApp()
Does nothing. Redefinition is required by MIDlet class.

Specified by:
pauseApp in class javax.microedition.midlet.MIDlet

commandAction

public void commandAction(javax.microedition.lcdui.Command c,
                          javax.microedition.lcdui.Displayable d)
Responds to commands issued on "client or server" form.

Specified by:
commandAction in interface javax.microedition.lcdui.CommandListener
Parameters:
c - command object source of action
d - screen object containing the item action was performed on

show

void show()
Shows main menu of MIDlet on the screen.


getDisplayable

javax.microedition.lcdui.Displayable getDisplayable()
Returns the displayable object of this screen - it is required for Alert construction for the error cases.