| java.lang.Object example.bluetooth.demo.GUIImageClient
GUIImageClient | final class GUIImageClient implements CommandListener(Code) | | Provides a GUI to present the download options
to used, gives a chance to make a choice,
finally shows the downloaded image.
version: , |
Method Summary | |
public void | commandAction(Command c, Displayable d) Process the command events. | 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. | void | destroy() Destroys this component. | void | informLoadError(String resMsg) Informs the error during the selected image load. | void | informSearchError(String resMsg) Informs the error during the images search. | void | showImage(Image img, String imgName) Shows the downloaded image. | boolean | showImagesNames(Hashtable base) Shows the available images names. |
commandAction | public void commandAction(Command c, Displayable d)(Code) | | Process the command events.
Parameters: c - - the issued command. Parameters: d - - the screen object the command was issued for. |
completeInitialization | void completeInitialization(boolean isBTReady)(Code) | | 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 BTImageClient after it is done
with bluetooth initialization and next screen is ready
to appear.
|
destroy | void destroy()(Code) | | Destroys this component.
|
informLoadError | void informLoadError(String resMsg)(Code) | | Informs the error during the selected image load.
|
informSearchError | void informSearchError(String resMsg)(Code) | | Informs the error during the images search.
|
showImage | void showImage(Image img, String imgName)(Code) | | Shows the downloaded image.
|
showImagesNames | boolean showImagesNames(Hashtable base)(Code) | | Shows the available images names.
|
|
|