example.bluetooth.demo
Class GUIImageServer

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

final class GUIImageServer
extends java.lang.Object
implements javax.microedition.lcdui.CommandListener

Allows to customize the images list to be published, creates the corresponding service record to describe this list and send the images to clients by request.


Constructor Summary
GUIImageServer(DemoMIDlet parent)
          Constructs images server GUI.
 
Method Summary
 void commandAction(javax.microedition.lcdui.Command c, javax.microedition.lcdui.Displayable d)
          Process the command event.
(package private)  void completeInitialization(boolean isBTReady)
          We have to provide this method due to "do not do network operation in command listener method" restriction, which is caused by crooked midp design.
(package private)  void destroy()
          Destroys this component.
(package private)  java.lang.String getImageFileName(java.lang.String imgName)
          Gets the image file name from its title (label).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GUIImageServer

GUIImageServer(DemoMIDlet parent)
Constructs images server GUI.

Method Detail

commandAction

public void commandAction(javax.microedition.lcdui.Command c,
                          javax.microedition.lcdui.Displayable d)
Process the command event.

Specified by:
commandAction in interface javax.microedition.lcdui.CommandListener
Parameters:
c - - the issued command.
d - - the screen object the command was issued for.

completeInitialization

void completeInitialization(boolean isBTReady)
We have to provide this method due to "do not do network operation in command listener method" restriction, which is caused by crooked midp design. This method is called by BTImageServer after it is done with bluetooth initialization and next screen is ready to appear.


destroy

void destroy()
Destroys this component.


getImageFileName

java.lang.String getImageFileName(java.lang.String imgName)
Gets the image file name from its title (label).