example.obex.demo
Class GUIImageReceiver

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

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


Constructor Summary
GUIImageReceiver(ObexDemoMIDlet parent)
          Constructor initialize receiverForm to show states of receiving.
 
Method Summary
(package private)  boolean askPermission(java.lang.String imageName, int imageLength)
          Ascs user to download image.
(package private)  void canNotConnectMessage()
          Shows alert with "not ready" message.
 void commandAction(javax.microedition.lcdui.Command c, javax.microedition.lcdui.Displayable d)
          Responds to commands used on this displayable.
(package private)  void showImage(byte[] imageData)
          Shows downloaded image.
(package private)  void showProgress(int maxValue)
          Shows progress bar of image downloading
(package private)  void showWaiting()
          Shows string with waiting for connection message.
(package private)  void stop()
          Stops receiving process in OBEX part.
(package private)  void stopMessage()
          Shows alert with "stop" message.
(package private)  void updateProgress(int value)
          Update progress of image downloading
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GUIImageReceiver

GUIImageReceiver(ObexDemoMIDlet parent)
Constructor initialize receiverForm to show states of receiving.

Method Detail

commandAction

public void commandAction(javax.microedition.lcdui.Command c,
                          javax.microedition.lcdui.Displayable d)
Responds to commands used on this displayable.

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

askPermission

boolean askPermission(java.lang.String imageName,
                      int imageLength)
Ascs user to download image.


showWaiting

void showWaiting()
Shows string with waiting for connection message.


showProgress

void showProgress(int maxValue)
Shows progress bar of image downloading


updateProgress

void updateProgress(int value)
Update progress of image downloading


showImage

void showImage(byte[] imageData)
Shows downloaded image.


canNotConnectMessage

void canNotConnectMessage()
Shows alert with "not ready" message.


stopMessage

void stopMessage()
Shows alert with "stop" message.


stop

void stop()
Stops receiving process in OBEX part.