Fri Jan 27 19:11:38 KST 2006
Class Diagrams
Subpackages
Class Diagram <default>
Package Nodes
Class Diagrams
Class Diagram images
Class Diagrams
Subpackages
Class Diagram net
Package Nodes
Class Diagrams
Subpackages
Class Diagram benhui
Package Nodes
Package net.benhui.btgallery
|
Class Diagrams
Subpackages
Classes
Class Diagram btgallery
Package Nodes
Class Nodes
public class MessageUI
Extends:
Canvas
A screen to display text string on screen.
Description: This is a canvas screen to display the current messages in
virtual chat room. Only the latest messages are displayed. If there are more
messages than those can fit into one screen, old messages are roll off from
the upper edge. User is not able to scroll back to see old messages, however,
the old messages is still available in msgs Vector until a clear command
is invoked. When a clear command is invoked, all message will be removed
from msgs vector.
Copyright: Copyright (c) 2003
Author:
Ben Hui (www.benhui.net)
Version:
1.0
| Field Summary |
public int |
|
public int |
|
Font |
|
int |
|
int |
|
int |
|
public Vector |
|
int |
|
int |
|
int |
|
| Constructor Summary |
public |
|
| Method Summary |
public void |
|
public void |
|
public void |
|
public void |
|
protected void |
|
public int backTo = 0
public int bookmarkId = 1
Font f
int fh
int h
int midx = 0
public Vector msgs = new Vector()
int w
int x0 = 0
int y0 = 0
public MessageUI()
public void add(String s)
public void addNoRepaint(String s)
public void clear()
public void keyPressed(int key)
protected void paint(Graphics g)
public class Util
Title: A utility class to dump JABWT object contents and perform object conversion
Description: A collection of print utility method that output the attributes of JABWT objects to System.out
Supported objects are:
LocalDevice
RemoteDevice
DeviceClass
UUID
ServiceRecord
DataElement
Major Service Class
Major, Minor Device Class
Attribute ID
OBEXHeader (incomplete)
Copyright: Copyright (c) 2003
Author:
Ben Hui (www.benhui.net)
Version:
1.0
LICENSE:
This code is licensed under GPL. (See http://www.gnu.org/copyleft/gpl.html)
| Constructor Summary |
private |
|
| Method Summary |
public static String |
|
public static String |
|
public static String |
|
public static String |
|
public static String |
|
public static void |
|
public static void |
|
public static void |
|
public static void |
|
public static void |
|
public static String |
|
public static String |
|
public static String |
|
public static String |
|
private Util()
public static String attrTypeToName(int type)
public static String idToName(int id)
public static String majorServiceToName(int d)
public static String majorToName(int d)
public static String minorToName(int d, int m)
Parameters:
d major device class
m minor device class
Returns
public static void printDataElement(DataElement e, int id, String indent)
public static void printLocalDevice(LocalDevice dev)
public static void printObexHeaderSet(HeaderSet h)
public static void printRemoteDevice(RemoteDevice dev, DeviceClass devClass)
public static void printServiceRecord(ServiceRecord r)
public static String toHexString(long l)
public static String toHexString(byte[] b)
public static String toHexString(int i)
public static String uuidToName(UUID u)
Package net.benhui.btgallery.bluelet
|
Class Diagrams
Classes
Class Diagram bluelet
Class Nodes
public class BLUElet
Implements:
CommandListener
Title: Bluetooth Application Utility GUI Component
Description:
Note: This class must be used as singleton.
Author:
Ben Hui (www.benhui.net) - refered by Yoosoo Oh (2005.11.13)
Version:
1.0
LICENSE:
This code is licensed under GPL. (See http://www.gnu.org/copyleft/gpl.html)
| Inner Class Summary |
final static class |
BLUElet.Listener Bluetooth listener object.
|
final static class |
BLUElet.Worker Worker thread that invoke callback CommandListener upon Bluetooth event occurs. |
| Field Summary |
private DiscoveryAgent |
|
public static Command |
|
public static CommandListener |
|
public static Command |
|
private LocalDevice |
|
public static Vector |
|
public int |
|
public static Vector |
|
public int |
|
public static Display |
|
public static MIDlet |
|
private final static int |
|
private final static int |
|
private final static int |
|
|
|
|
|
public boolean |
|
public static Command |
|
public static int |
|
public int |
|
public static Vector |
|
public UUID[] |
|
int |
cmd |
| Constructor Summary |
public |
BLUElet(MIDlet host, CommandListener listener) Creae a new BLUElet. |
public |
Worker(int cmd) |
| Method Summary |
public void |
|
public void |
Mirror MIDlet.destroyApp(), should be called by your MIDlet destroyApp(). |
public int |
Return the Bluetooth result code from device inquiry.
|
public ServiceRecord[] |
Get all discovered services from selected remote device.
|
public ServiceRecord |
Get the first discovered service from selected remote device.
|
public RemoteDevice |
Return user selected remote device that is used for service discovery.
|
public int |
Return the Bluetooth result code from service discovery.
|
public Screen |
Obtain reference to device selection screen component.
|
public void |
deviceDiscovered(RemoteDevice remoteDevice, DeviceClass deviceClass) |
public void |
inquiryCompleted(int complete) |
public void |
servicesDiscovered(int transId, ServiceRecord[] records) |
public void |
serviceSearchCompleted(int transId, int complete) |
public static void |
Utility function to write log message. |
public void |
Mirror MIDlet.pauseApp(), should be called by your MIDlet pauseApp(). |
public void |
|
public void |
Mirror MIDlet.startApp(), should be called by your MIDlet startApp(). |
public void |
Start device inquiry. |
public void |
run() |
private DiscoveryAgent agent
public static Command BACK = new Command( "Back", Command.BACK, 1 )
public static CommandListener callback
public static Command COMPLETED = new Command( "COMPLETED", Command.SCREEN, 1 )
private LocalDevice device
public static Vector deviceClasses = new Vector()
public int deviceReturnCode
public static Vector devices = new Vector()
public int discoveryMode
public static Display display
public static MIDlet host
private final static int ID_DEVICE_COMPLETED = 2
private final static int ID_DEVICE_SELECTED = 3
private final static int ID_SERVICE_COMPLETED = 1
public boolean search_loop_flag = true
public static Command SELECTED = new Command( "SELECTED", Command.SCREEN, 1 )
public static int selectedDevice = -1
public int serviceReturnCode
public static Vector services = new Vector()
public UUID[] serviceUUIDs = null
public BLUElet(MIDlet host, CommandListener listener)
Creae a new BLUElet.
Parameters:
host MIDlet
listener CommandListener
public void commandAction(Command c, Displayable d)
Parameters:
c Command
d Displayable
public void destroyApp(boolean unconditional)
Mirror MIDlet.destroyApp(), should be called by your MIDlet destroyApp().
getDeviceDiscoveryReturnCode
public int getDeviceDiscoveryReturnCode()
Return the Bluetooth result code from device inquiry.
This is the result code obtained in DiscoveryListener.inquiryCompleted().
Your application cal call this method after a COMPLETED callback event
is received.
Returns:
int
public ServiceRecord[] getDiscoveredServices()
Get all discovered services from selected remote device.
Your application call this method after your app receive COMPLETED callback
event. This will return all services that match your UUIDs in startInquiry().
Returns:
ServiceRecord[]
getFirstDiscoveredService
public ServiceRecord getFirstDiscoveredService()
Get the first discovered service from selected remote device.
Your application call this method after your app receives COMPLETED
callback event. This will return the first service that match your
UUIDs in startInquiry().
Returns:
ServiceRecord null if no service discovered
public RemoteDevice getSelectedDevice()
Return user selected remote device that is used for service discovery.
Your application can call this after your app received SELECTED callback
event.
Returns:
RemoteDevice null if user didn't select anything
getServiceDiscoveryReturnCode
public int getServiceDiscoveryReturnCode()
Return the Bluetooth result code from service discovery.
This is the result code obtained in DiscoveryListener.serviceSearchCompleted().
Your application cal call this method after a COMPLETED callback event
is received.
Returns:
int
public Screen getUI()
Obtain reference to device selection screen component.
You should show this screen when user invoke device search.
Returns:
Screen
public static void log(String s)
Utility function to write log message.
Parameters:
s String
public void pauseApp()
Mirror MIDlet.pauseApp(), should be called by your MIDlet pauseApp().
public void searchAction()
public void startApp()
Mirror MIDlet.startApp(), should be called by your MIDlet startApp().
public void startInquiry(int mode, UUID[] serviceUUIDs)
Start device inquiry. Your application call this method to start inquiry.
Parameters:
mode int one of DiscoveryAgent.GIAC or DiscoveryAgent.LIAC
serviceUUIDs UUID[]
class RemoteDeviceUI
Extends:
List
Title: Remote Device List Component
Description: This is a List screen to display a list of discovered Bluetooth
devices. This is a class used by BLUEletUI.
Author:
Ben Hui (www.benhui.net)
Version:
1.0
LICENSE:
This code is licensed under GPL. (See http://www.gnu.org/copyleft/gpl.html)
| Constructor Summary |
public |
|
| Method Summary |
public void |
Set a one-line message to screen. |
public void |
refresh the list with blutooth devices |
public RemoteDeviceUI()
public void setMsg(String str)
Set a one-line message to screen.
Parameters:
str String
public void showui()
refresh the list with blutooth devices
Package net.benhui.btgallery.spp_bt
|
Class Diagrams
Classes
Class Diagram spp_bt
Class Nodes
public class SPP_Client
Title: Example Serial Port Profile Client
Description: Important area: send_SPP_message()
This client only does the portion that send and receive data over a SPP
connection. In an actual client applicaion, you also need to do device
discovery and service discovery. This is taken care by Bluelet.
Author:
Ben Hui (www.benhui.net) - refered by Yoosoo Oh (2005.11.13)
Version:
1.0
LICENSE:
This code is licensed under GPL. (See http://www.gnu.org/copyleft/gpl.html)
| Constructor Summary |
public |
|
| Method Summary |
public void |
|
public void |
Send a message to server using Serial Port Profile.
|
public SPP_Client()
public void log(String s)
public void send_SPP_message(ServiceRecord r, String msg)
Send a message to server using Serial Port Profile.
Connect to incoming service record, send a text, and read
in a text. This method illustrate how to send and receive
data using serial port profile.
Device and service discovery is part of Serial Port client but it is
done by Bluelet component. See SPP_MIDlet for usage of Bluelet.
Parameters:
msg
public class SPP_Server
Implements:
java.lang.Runnable
Title: Example Serial Port Profile Server.
Description: This example server only handle one SPP server connection
and wait for a client to connect. Once a client connection accept, it read
one string off the connection stream, display this string on screen, then
echo the string back to client.
Then it waits for the next client connection again.
Description: Important area: run()
Author:
Ben Hui (www.benhui.net) - refered by Yoosoo Oh (2005.11.13)
Version:
1.0
LICENSE:
This code is licensed under GPL. (See http://www.gnu.org/copyleft/gpl.html)
| Field Summary |
DiscoveryAgent |
|
LocalDevice |
|
public boolean |
|
public StreamConnectionNotifier |
|
private final static int |
|
public final static UUID |
|
| Constructor Summary |
public |
|
| Method Summary |
public void |
An utility function to display a log message |
public void |
|
public void |
|
DiscoveryAgent agent
LocalDevice device
public boolean done = false
public StreamConnectionNotifier server
private final static int SERVICE_TELEPHONY = 0x400000
public final static UUID uuid = new UUID("102030405060708090A0B0C0D0E0F010", false)
public SPP_Server()
public void log(String s)
An utility function to display a log message
Parameters:
s String
public void run()
public void run_server()
Class Diagrams
Classes
Class Diagram ubiMobile
Class Nodes
public class RecStoreDB
This class is ready to save the user's profile information in Record Store.
Since:
J2SDK1.5
Version:
ubi-UCAM 2.0 (ubiSensor)
Author:
Yoosoo Oh
| Field Summary |
private RecordStore |
|
public String |
|
public String |
|
| Constructor Summary |
public |
Creates a new instance of RecStoreDB_ID |
| Method Summary |
public void |
A method to close Record Store |
public void |
A method to delete data with specific record ID in Record Store |
public void |
A method to open Record Store |
public void |
A method to read data from Record Store |
public void |
A method to write data into Record Store |
private RecordStore recStore = null
public String REC_STORE
public String returnData = null
public RecStoreDB()
Creates a new instance of RecStoreDB_ID
public void closeRecStore()
A method to close Record Store
public void deleteRecord(int id)
A method to delete data with specific record ID in Record Store
public void openRecStore()
A method to open Record Store
public void readRecords()
A method to read data from Record Store
public void writeRecord(String record_str)
A method to write data into Record Store
public class ubiMobile
Extends:
MIDlet
Implements:
javax.microedition.lcdui.CommandListener
This class is ready to manage all classes of ubiMobile.
Since:
J2SDK1.5
Version:
ubi-UCAM 2.0 (ubiSensor)
Author:
Yoosoo Oh
| Inner Class Summary |
public final static class |
ubiMobile.BTClientConnect A thread to send the first confirm message to the server through Bluetooth Communication |
public final static class |
ubiMobile.DataSend A thread to send a message to the server through Bluetooth Communication |
| Field Summary |
javax.microedition.lcdui.Command |
|
javax.microedition.lcdui.Command |
|
javax.microedition.lcdui.Command |
|
javax.microedition.lcdui.Command |
|
javax.microedition.lcdui.Command |
|
javax.microedition.lcdui.Command |
|
javax.microedition.lcdui.Command |
|
|
To utilize Bluelet to do device disvcovery and service discovery |
public String |
|
javax.microedition.lcdui.List |
|
private Date |
|
|
|
|
To record store object |
|
|
|
|
public static Display |
|
javax.microedition.lcdui.ChoiceGroup |
|
javax.microedition.lcdui.Command |
|
javax.microedition.lcdui.Form |
|
javax.microedition.lcdui.Form |
|
javax.microedition.lcdui.Form |
|
javax.microedition.lcdui.Form |
|
javax.microedition.lcdui.Form |
|
javax.microedition.lcdui.Form |
|
javax.microedition.lcdui.Command |
|
javax.microedition.lcdui.Gauge |
|
javax.microedition.lcdui.StringItem |
|
javax.microedition.lcdui.ImageItem |
|
javax.microedition.lcdui.ImageItem |
|
javax.microedition.lcdui.ImageItem |
|
javax.microedition.lcdui.ImageItem |
|
javax.microedition.lcdui.ImageItem |
|
javax.microedition.lcdui.ImageItem |
|
javax.microedition.lcdui.ImageItem |
|
javax.microedition.lcdui.ImageItem |
|
javax.microedition.lcdui.ImageItem |
|
javax.microedition.lcdui.Image |
|
javax.microedition.lcdui.Image |
|
javax.microedition.lcdui.Image |
|
javax.microedition.lcdui.Image |
|
javax.microedition.lcdui.Image |
|
javax.microedition.lcdui.Image |
|
javax.microedition.lcdui.Image |
|
javax.microedition.lcdui.Image |
|
javax.microedition.lcdui.Image |
|
javax.microedition.lcdui.Image |
|
javax.microedition.lcdui.Image |
|
javax.microedition.lcdui.Image |
|
javax.microedition.lcdui.Image |
|
javax.microedition.lcdui.Image |
|
|
To commonly used singleton object |
javax.microedition.lcdui.Command |
|
javax.microedition.lcdui.Command |
|
javax.microedition.lcdui.Gauge |
|
javax.microedition.lcdui.StringItem |
|
javax.microedition.lcdui.Command |
|
javax.microedition.lcdui.Command |
|
javax.microedition.lcdui.TextField |
|
javax.microedition.lcdui.Command |
|
javax.microedition.lcdui.ChoiceGroup |
|
javax.microedition.lcdui.List |
|
javax.microedition.lcdui.ChoiceGroup |
|
javax.microedition.lcdui.Command |
|
javax.microedition.lcdui.DateField |
|
javax.microedition.lcdui.Command |
|
javax.microedition.lcdui.Command |
|
javax.microedition.lcdui.Command |
|
javax.microedition.lcdui.Command |
|
javax.microedition.lcdui.Command |
|
javax.microedition.lcdui.Command |
|
String |
To send messages |
|
SPP client logic |
javax.microedition.lcdui.StringItem |
|
javax.microedition.lcdui.StringItem |
|
javax.microedition.lcdui.TextField |
|
javax.microedition.lcdui.TextField |
|
javax.microedition.lcdui.TextField |
|
javax.microedition.lcdui.TextField |
|
| Constructor Summary |
public |
Creates a new instance of ubiMobile |
| Method Summary |
public static void |
alert(Exception e, Displayable next_screen) An utility function that show a alert box that display an exception message. |
public static void |
alert(String m, Displayable next_screen) An utility function that show a alert box that display a message. |
public void |
run() |
public Displayable |
A method to call main form |
public void |
commandAction(javax.microedition.lcdui.Command command, javax.microedition.lcdui.Displayable displayable) Called by the system to indicate that a command has been invoked on a particular displayable. |
public void |
run() |
public void |
|
private javax.microedition.lcdui.Command |
This method returns instance for backCommand_control component and should be called instead of accessing backCommand_control field directly. |
private javax.microedition.lcdui.Command |
This method returns instance for backCommand_heating component and should be called instead of accessing backCommand_heating field directly. |
private javax.microedition.lcdui.Command |
This method returns instance for backCommand_lighting component and should be called instead of accessing backCommand_lighting field directly. |
private javax.microedition.lcdui.Command |
This method returns instance for backCommand_profile component and should be called instead of accessing backCommand_profile field directly. |
private javax.microedition.lcdui.Command |
This method returns instance for backCommand_schedulelist component and should be called instead of accessing backCommand_schedulelist field directly. |
private javax.microedition.lcdui.Command |
This method returns instance for backCommand_schedulesettting component and should be called instead of accessing backCommand_schedulesettting field directly. |
private javax.microedition.lcdui.Command |
This method returns instance for backCommand_security component and should be called instead of accessing backCommand_security field directly. |
private javax.microedition.lcdui.List |
This method returns instance for control_list component and should be called instead of accessing control_list field directly. |
private javax.microedition.lcdui.ChoiceGroup |
This method returns instance for DoorLock component and should be called instead of accessing DoorLock field directly. |
private javax.microedition.lcdui.Command |
This method returns instance for exitCommand_program component and should be called instead of accessing exitCommand_program field directly. |
private javax.microedition.lcdui.Form |
This method returns instance for form_heating component and should be called instead of accessing form_heating field directly. |
private javax.microedition.lcdui.Form |
This method returns instance for form_lighting component and should be called instead of accessing form_lighting field directly. |
private javax.microedition.lcdui.Form |
This method returns instance for form_main component and should be called instead of accessing form_main field directly. |
private javax.microedition.lcdui.Form |
This method returns instance for form_profile component and should be called instead of accessing form_profile field directly. |
private javax.microedition.lcdui.Form |
This method returns instance for form_schedule component and should be called instead of accessing form_schedule field directly. |
private javax.microedition.lcdui.Form |
This method returns instance for form_security component and should be called instead of accessing form_security field directly. |
private javax.microedition.lcdui.Command |
This method returns instance for heating_execution component and should be called instead of accessing heating_execution field directly. |
private javax.microedition.lcdui.Gauge |
This method returns instance for heating_level component and should be called instead of accessing heating_level field directly. |
private javax.microedition.lcdui.StringItem |
This method returns instance for heating_value component and should be called instead of accessing heating_value field directly. |
private javax.microedition.lcdui.ImageItem |
This method returns instance for imageItem1 component and should be called instead of accessing imageItem1 field directly. |
private javax.microedition.lcdui.ImageItem |
This method returns instance for imageItem2 component and should be called instead of accessing imageItem2 field directly. |
private javax.microedition.lcdui.ImageItem |
This method returns instance for imageItem3 component and should be called instead of accessing imageItem3 field directly. |
private javax.microedition.lcdui.ImageItem |
This method returns instance for imageItem_heater component and should be called instead of accessing imageItem_heater field directly. |
private javax.microedition.lcdui.ImageItem |
This method returns instance for imageItem_light component and should be called instead of accessing imageItem_light field directly. |
private javax.microedition.lcdui.ImageItem |
This method returns instance for imageItem_main component and should be called instead of accessing imageItem_main field directly. |
private javax.microedition.lcdui.ImageItem |
This method returns instance for imageItem_profile_m component and should be called instead of accessing imageItem_profile_m field directly. |
private javax.microedition.lcdui.ImageItem |
This method returns instance for imageItem_schedule component and should be called instead of accessing imageItem_schedule field directly. |
private javax.microedition.lcdui.Image |
This method returns instance for image_door component and should be called instead of accessing image_door field directly. |
private javax.microedition.lcdui.Image |
This method returns instance for image_door_s component and should be called instead of accessing image_door_s field directly. |
private javax.microedition.lcdui.Image |
This method returns instance for image_heater component and should be called instead of accessing image_heater field directly. |
private javax.microedition.lcdui.Image |
This method returns instance for image_heater_s component and should be called instead of accessing image_heater_s field directly. |
private javax.microedition.lcdui.Image |
This method returns instance for image_light component and should be called instead of accessing image_light field directly. |
private javax.microedition.lcdui.Image |
This method returns instance for image_light_s component and should be called instead of accessing image_light_s field directly. |
private javax.microedition.lcdui.Image |
This method returns instance for image_profile_m component and should be called instead of accessing image_profile_m field directly. |
private javax.microedition.lcdui.Image |
This method returns instance for image_profile_m_s component and should be called instead of accessing image_profile_m_s field directly. |
private javax.microedition.lcdui.Image |
This method returns instance for image_profile_w component and should be called instead of accessing image_profile_w field directly. |
private javax.microedition.lcdui.Image |
This method returns instance for image_profile_w_s component and should be called instead of accessing image_profile_w_s field directly. |
private javax.microedition.lcdui.Image |
This method returns instance for image_schedule component and should be called instead of accessing image_schedule field directly. |
private javax.microedition.lcdui.Image |
This method returns instance for image_schedule_s component and should be called instead of accessing image_schedule_s field directly. |
private javax.microedition.lcdui.Image |
This method returns instance for image_ubiMobile component and should be called instead of accessing image_ubiMobile field directly. |
private javax.microedition.lcdui.Image |
This method returns instance for image_ubimobile_s component and should be called instead of accessing image_ubimobile_s field directly. |
private javax.microedition.lcdui.Command |
This method returns instance for itemCommand1 component and should be called instead of accessing itemCommand1 field directly. |
private javax.microedition.lcdui.Command |
This method returns instance for lighting_execution component and should be called instead of accessing lighting_execution field directly. |
private javax.microedition.lcdui.Gauge |
This method returns instance for lighting_level component and should be called instead of accessing lighting_level field directly. |
private javax.microedition.lcdui.StringItem |
This method returns instance for lighting_value component and should be called instead of accessing lighting_value field directly. |
private javax.microedition.lcdui.Command |
This method returns instance for profile_save component and should be called instead of accessing profile_save field directly. |
private javax.microedition.lcdui.Command |
This method returns instance for schedule_delete component and should be called instead of accessing schedule_delete field directly. |
private javax.microedition.lcdui.TextField |
This method returns instance for schedule_duration component and should be called instead of accessing schedule_duration field directly. |
private javax.microedition.lcdui.Command |
This method returns instance for schedule_edit component and should be called instead of accessing schedule_edit field directly. |
private javax.microedition.lcdui.ChoiceGroup |
This method returns instance for schedule_event component and should be called instead of accessing schedule_event field directly. |
private javax.microedition.lcdui.List |
This method returns instance for schedule_list component and should be called instead of accessing schedule_list field directly. |
private javax.microedition.lcdui.ChoiceGroup |
This method returns instance for schedule_place component and should be called instead of accessing schedule_place field directly. |
private javax.microedition.lcdui.Command |
This method returns instance for schedule_save component and should be called instead of accessing schedule_save field directly. |
private javax.microedition.lcdui.DateField |
This method returns instance for schedule_time component and should be called instead of accessing schedule_time field directly. |
private javax.microedition.lcdui.Command |
This method returns instance for schedule_update component and should be called instead of accessing schedule_update field directly. |
private javax.microedition.lcdui.Command |
This method returns instance for screenCommand_controllist component and should be called instead of accessing screenCommand_controllist field directly. |
private javax.microedition.lcdui.Command |
This method returns instance for screenCommand_scheduler component and should be called instead of accessing screenCommand_scheduler field directly. |
private javax.microedition.lcdui.Command |
This method returns instance for screenCommand_search component and should be called instead of accessing screenCommand_search field directly. |
private javax.microedition.lcdui.Command |
This method returns instance for screenCommand_userprofile component and should be called instead of accessing screenCommand_userprofile field directly. |
private javax.microedition.lcdui.Command |
This method returns instance for security_execution component and should be called instead of accessing security_execution field directly. |
private javax.microedition.lcdui.StringItem |
This method returns instance for stringItem_profile_info component and should be called instead of accessing stringItem_profile_info field directly. |
private javax.microedition.lcdui.StringItem |
This method returns instance for stringItem_time component and should be called instead of accessing stringItem_time field directly. |
private javax.microedition.lcdui.TextField |
This method returns instance for textField1 component and should be called instead of accessing textField1 field directly. |
private javax.microedition.lcdui.TextField |
This method returns instance for textField_email component and should be called instead of accessing textField_email field directly. |
private javax.microedition.lcdui.TextField |
This method returns instance for textField_id component and should be called instead of accessing textField_id field directly. |
private javax.microedition.lcdui.TextField |
This method returns instance for textField_password component and should be called instead of accessing textField_password field directly. |
private void |
This method initializes UI of the application. |
public static void |
An utility function to display a log message |
public void |
|
public void |
A method to load User Profile information from Record Store |
public void |
A method to save User Profile information into Record Store |
public void |
A method to display main form |
public void |
A method to ready for Bluetooth & send the first confirm message |
public void |
|
javax.microedition.lcdui.Command backCommand_control
javax.microedition.lcdui.Command backCommand_heating
javax.microedition.lcdui.Command backCommand_lighting
javax.microedition.lcdui.Command backCommand_profile
javax.microedition.lcdui.Command backCommand_schedulelist
backCommand_schedulesettting
javax.microedition.lcdui.Command backCommand_schedulesettting
javax.microedition.lcdui.Command backCommand_security
To utilize Bluelet to do device disvcovery and service discovery
public String Bluetooth_address = null
javax.microedition.lcdui.List control_list
private Date currentTime
To record store object
public static Display display
javax.microedition.lcdui.ChoiceGroup DoorLock
javax.microedition.lcdui.Command exitCommand_program
javax.microedition.lcdui.Form form_heating
javax.microedition.lcdui.Form form_lighting
javax.microedition.lcdui.Form form_main
javax.microedition.lcdui.Form form_profile
javax.microedition.lcdui.Form form_schedule
javax.microedition.lcdui.Form form_security
javax.microedition.lcdui.Command heating_execution
javax.microedition.lcdui.Gauge heating_level
javax.microedition.lcdui.StringItem heating_value
javax.microedition.lcdui.ImageItem imageItem1
javax.microedition.lcdui.ImageItem imageItem2
javax.microedition.lcdui.ImageItem imageItem3
javax.microedition.lcdui.ImageItem imageItem_door
javax.microedition.lcdui.ImageItem imageItem_heater
javax.microedition.lcdui.ImageItem imageItem_light
javax.microedition.lcdui.ImageItem imageItem_main
javax.microedition.lcdui.ImageItem imageItem_profile_m
javax.microedition.lcdui.ImageItem imageItem_schedule
javax.microedition.lcdui.Image image_door
javax.microedition.lcdui.Image image_door_s
javax.microedition.lcdui.Image image_heater
javax.microedition.lcdui.Image image_heater_s
javax.microedition.lcdui.Image image_light
javax.microedition.lcdui.Image image_light_s
javax.microedition.lcdui.Image image_profile_m
javax.microedition.lcdui.Image image_profile_m_s
javax.microedition.lcdui.Image image_profile_w
javax.microedition.lcdui.Image image_profile_w_s
javax.microedition.lcdui.Image image_schedule
javax.microedition.lcdui.Image image_schedule_s
javax.microedition.lcdui.Image image_ubiMobile
javax.microedition.lcdui.Image image_ubimobile_s
To commonly used singleton object
javax.microedition.lcdui.Command itemCommand1
javax.microedition.lcdui.Command lighting_execution
javax.microedition.lcdui.Gauge lighting_level
javax.microedition.lcdui.StringItem lighting_value
javax.microedition.lcdui.Command profile_save
javax.microedition.lcdui.Command schedule_delete
javax.microedition.lcdui.TextField schedule_duration
javax.microedition.lcdui.Command schedule_edit
javax.microedition.lcdui.ChoiceGroup schedule_event
javax.microedition.lcdui.List schedule_list
javax.microedition.lcdui.ChoiceGroup schedule_place
javax.microedition.lcdui.Command schedule_save
javax.microedition.lcdui.DateField schedule_time
javax.microedition.lcdui.Command schedule_update
screenCommand_controllist
javax.microedition.lcdui.Command screenCommand_controllist
javax.microedition.lcdui.Command screenCommand_scheduler
javax.microedition.lcdui.Command screenCommand_search
screenCommand_userprofile
javax.microedition.lcdui.Command screenCommand_userprofile
javax.microedition.lcdui.Command security_execution
String sndMessage = null
To send messages
SPP client logic
javax.microedition.lcdui.StringItem stringItem_profile_info
javax.microedition.lcdui.StringItem stringItem_time
javax.microedition.lcdui.TextField textField1
javax.microedition.lcdui.TextField textField_email
javax.microedition.lcdui.TextField textField_id
javax.microedition.lcdui.TextField textField_password
public ubiMobile()
Creates a new instance of ubiMobile
public static void alert(Exception e, Displayable next_screen)
An utility function that show a alert box that display an exception message.
Parameters:
e
next_screen
public static void alert(String m, Displayable next_screen)
An utility function that show a alert box that display a message.
Parameters:
m String
next_screen Screen
public Displayable call_form_main()
A method to call main form
public void commandAction(javax.microedition.lcdui.Command command, javax.microedition.lcdui.Displayable displayable)
Called by the system to indicate that a command has been invoked on a particular displayable.
Parameters:
command the Command that ws invoked
displayable the Displayable on which the command was invoked
public void destroyApp(boolean unconditional)
private javax.microedition.lcdui.Command get_backCommand_control()
This method returns instance for backCommand_control component and should be called instead of accessing backCommand_control field directly.
Returns:
Instance for backCommand_control component
private javax.microedition.lcdui.Command get_backCommand_heating()
This method returns instance for backCommand_heating component and should be called instead of accessing backCommand_heating field directly.
Returns:
Instance for backCommand_heating component
private javax.microedition.lcdui.Command get_backCommand_lighting()
This method returns instance for backCommand_lighting component and should be called instead of accessing backCommand_lighting field directly.
Returns:
Instance for backCommand_lighting component
private javax.microedition.lcdui.Command get_backCommand_profile()
This method returns instance for backCommand_profile component and should be called instead of accessing backCommand_profile field directly.
Returns:
Instance for backCommand_profile component
get_backCommand_schedulelist
private javax.microedition.lcdui.Command get_backCommand_schedulelist()
This method returns instance for backCommand_schedulelist component and should be called instead of accessing backCommand_schedulelist field directly.
Returns:
Instance for backCommand_schedulelist component
get_backCommand_schedulesettting
private javax.microedition.lcdui.Command get_backCommand_schedulesettting()
This method returns instance for backCommand_schedulesettting component and should be called instead of accessing backCommand_schedulesettting field directly.
Returns:
Instance for backCommand_schedulesettting component
private javax.microedition.lcdui.Command get_backCommand_security()
This method returns instance for backCommand_security component and should be called instead of accessing backCommand_security field directly.
Returns:
Instance for backCommand_security component
private javax.microedition.lcdui.List get_control_list()
This method returns instance for control_list component and should be called instead of accessing control_list field directly.
Returns:
Instance for control_list component
private javax.microedition.lcdui.ChoiceGroup get_DoorLock()
This method returns instance for DoorLock component and should be called instead of accessing DoorLock field directly.
Returns:
Instance for DoorLock component
private javax.microedition.lcdui.Command get_exitCommand_program()
This method returns instance for exitCommand_program component and should be called instead of accessing exitCommand_program field directly.
Returns:
Instance for exitCommand_program component
private javax.microedition.lcdui.Form get_form_heating()
This method returns instance for form_heating component and should be called instead of accessing form_heating field directly.
Returns:
Instance for form_heating component
private javax.microedition.lcdui.Form get_form_lighting()
This method returns instance for form_lighting component and should be called instead of accessing form_lighting field directly.
Returns:
Instance for form_lighting component
private javax.microedition.lcdui.Form get_form_main()
This method returns instance for form_main component and should be called instead of accessing form_main field directly.
Returns:
Instance for form_main component
private javax.microedition.lcdui.Form get_form_profile()
This method returns instance for form_profile component and should be called instead of accessing form_profile field directly.
Returns:
Instance for form_profile component
private javax.microedition.lcdui.Form get_form_schedule()
This method returns instance for form_schedule component and should be called instead of accessing form_schedule field directly.
Returns:
Instance for form_schedule component
private javax.microedition.lcdui.Form get_form_security()
This method returns instance for form_security component and should be called instead of accessing form_security field directly.
Returns:
Instance for form_security component
private javax.microedition.lcdui.Command get_heating_execution()
This method returns instance for heating_execution component and should be called instead of accessing heating_execution field directly.
Returns:
Instance for heating_execution component
private javax.microedition.lcdui.Gauge get_heating_level()
This method returns instance for heating_level component and should be called instead of accessing heating_level field directly.
Returns:
Instance for heating_level component
private javax.microedition.lcdui.StringItem get_heating_value()
This method returns instance for heating_value component and should be called instead of accessing heating_value field directly.
Returns:
Instance for heating_value component
private javax.microedition.lcdui.ImageItem get_imageItem1()
This method returns instance for imageItem1 component and should be called instead of accessing imageItem1 field directly.
Returns:
Instance for imageItem1 component
private javax.microedition.lcdui.ImageItem get_imageItem2()
This method returns instance for imageItem2 component and should be called instead of accessing imageItem2 field directly.
Returns:
Instance for imageItem2 component
private javax.microedition.lcdui.ImageItem get_imageItem3()
This method returns instance for imageItem3 component and should be called instead of accessing imageItem3 field directly.
Returns:
Instance for imageItem3 component
private javax.microedition.lcdui.ImageItem get_imageItem_heater()
This method returns instance for imageItem_heater component and should be called instead of accessing imageItem_heater field directly.
Returns:
Instance for imageItem_heater component
private javax.microedition.lcdui.ImageItem get_imageItem_light()
This method returns instance for imageItem_light component and should be called instead of accessing imageItem_light field directly.
Returns:
Instance for imageItem_light component
private javax.microedition.lcdui.ImageItem get_imageItem_main()
This method returns instance for imageItem_main component and should be called instead of accessing imageItem_main field directly.
Returns:
Instance for imageItem_main component
private javax.microedition.lcdui.ImageItem get_imageItem_profile_m()
This method returns instance for imageItem_profile_m component and should be called instead of accessing imageItem_profile_m field directly.
Returns:
Instance for imageItem_profile_m component
private javax.microedition.lcdui.ImageItem get_imageItem_schedule()
This method returns instance for imageItem_schedule component and should be called instead of accessing imageItem_schedule field directly.
Returns:
Instance for imageItem_schedule component
private javax.microedition.lcdui.Image get_image_door()
This method returns instance for image_door component and should be called instead of accessing image_door field directly.
Returns:
Instance for image_door component
private javax.microedition.lcdui.Image get_image_door_s()
This method returns instance for image_door_s component and should be called instead of accessing image_door_s field directly.
Returns:
Instance for image_door_s component
private javax.microedition.lcdui.Image get_image_heater()
This method returns instance for image_heater component and should be called instead of accessing image_heater field directly.
Returns:
Instance for image_heater component
private javax.microedition.lcdui.Image get_image_heater_s()
This method returns instance for image_heater_s component and should be called instead of accessing image_heater_s field directly.
Returns:
Instance for image_heater_s component
private javax.microedition.lcdui.Image get_image_light()
This method returns instance for image_light component and should be called instead of accessing image_light field directly.
Returns:
Instance for image_light component
private javax.microedition.lcdui.Image get_image_light_s()
This method returns instance for image_light_s component and should be called instead of accessing image_light_s field directly.
Returns:
Instance for image_light_s component
private javax.microedition.lcdui.Image get_image_profile_m()
This method returns instance for image_profile_m component and should be called instead of accessing image_profile_m field directly.
Returns:
Instance for image_profile_m component
private javax.microedition.lcdui.Image get_image_profile_m_s()
This method returns instance for image_profile_m_s component and should be called instead of accessing image_profile_m_s field directly.
Returns:
Instance for image_profile_m_s component
private javax.microedition.lcdui.Image get_image_profile_w()
This method returns instance for image_profile_w component and should be called instead of accessing image_profile_w field directly.
Returns:
Instance for image_profile_w component
private javax.microedition.lcdui.Image get_image_profile_w_s()
This method returns instance for image_profile_w_s component and should be called instead of accessing image_profile_w_s field directly.
Returns:
Instance for image_profile_w_s component
private javax.microedition.lcdui.Image get_image_schedule()
This method returns instance for image_schedule component and should be called instead of accessing image_schedule field directly.
Returns:
Instance for image_schedule component
private javax.microedition.lcdui.Image get_image_schedule_s()
This method returns instance for image_schedule_s component and should be called instead of accessing image_schedule_s field directly.
Returns:
Instance for image_schedule_s component
private javax.microedition.lcdui.Image get_image_ubiMobile()
This method returns instance for image_ubiMobile component and should be called instead of accessing image_ubiMobile field directly.
Returns:
Instance for image_ubiMobile component
private javax.microedition.lcdui.Image get_image_ubimobile_s()
This method returns instance for image_ubimobile_s component and should be called instead of accessing image_ubimobile_s field directly.
Returns:
Instance for image_ubimobile_s component
private javax.microedition.lcdui.Command get_itemCommand1()
This method returns instance for itemCommand1 component and should be called instead of accessing itemCommand1 field directly.
Returns:
Instance for itemCommand1 component
private javax.microedition.lcdui.Command get_lighting_execution()
This method returns instance for lighting_execution component and should be called instead of accessing lighting_execution field directly.
Returns:
Instance for lighting_execution component
private javax.microedition.lcdui.Gauge get_lighting_level()
This method returns instance for lighting_level component and should be called instead of accessing lighting_level field directly.
Returns:
Instance for lighting_level component
private javax.microedition.lcdui.StringItem get_lighting_value()
This method returns instance for lighting_value component and should be called instead of accessing lighting_value field directly.
Returns:
Instance for lighting_value component
private javax.microedition.lcdui.Command get_profile_save()
This method returns instance for profile_save component and should be called instead of accessing profile_save field directly.
Returns:
Instance for profile_save component
private javax.microedition.lcdui.Command get_schedule_delete()
This method returns instance for schedule_delete component and should be called instead of accessing schedule_delete field directly.
Returns:
Instance for schedule_delete component
private javax.microedition.lcdui.TextField get_schedule_duration()
This method returns instance for schedule_duration component and should be called instead of accessing schedule_duration field directly.
Returns:
Instance for schedule_duration component
private javax.microedition.lcdui.Command get_schedule_edit()
This method returns instance for schedule_edit component and should be called instead of accessing schedule_edit field directly.
Returns:
Instance for schedule_edit component
private javax.microedition.lcdui.ChoiceGroup get_schedule_event()
This method returns instance for schedule_event component and should be called instead of accessing schedule_event field directly.
Returns:
Instance for schedule_event component
private javax.microedition.lcdui.List get_schedule_list()
This method returns instance for schedule_list component and should be called instead of accessing schedule_list field directly.
Returns:
Instance for schedule_list component
private javax.microedition.lcdui.ChoiceGroup get_schedule_place()
This method returns instance for schedule_place component and should be called instead of accessing schedule_place field directly.
Returns:
Instance for schedule_place component
private javax.microedition.lcdui.Command get_schedule_save()
This method returns instance for schedule_save component and should be called instead of accessing schedule_save field directly.
Returns:
Instance for schedule_save component
private javax.microedition.lcdui.DateField get_schedule_time()
This method returns instance for schedule_time component and should be called instead of accessing schedule_time field directly.
Returns:
Instance for schedule_time component
private javax.microedition.lcdui.Command get_schedule_update()
This method returns instance for schedule_update component and should be called instead of accessing schedule_update field directly.
Returns:
Instance for schedule_update component
get_screenCommand_controllist
private javax.microedition.lcdui.Command get_screenCommand_controllist()
This method returns instance for screenCommand_controllist component and should be called instead of accessing screenCommand_controllist field directly.
Returns:
Instance for screenCommand_controllist component
get_screenCommand_scheduler
private javax.microedition.lcdui.Command get_screenCommand_scheduler()
This method returns instance for screenCommand_scheduler component and should be called instead of accessing screenCommand_scheduler field directly.
Returns:
Instance for screenCommand_scheduler component
private javax.microedition.lcdui.Command get_screenCommand_search()
This method returns instance for screenCommand_search component and should be called instead of accessing screenCommand_search field directly.
Returns:
Instance for screenCommand_search component
get_screenCommand_userprofile
private javax.microedition.lcdui.Command get_screenCommand_userprofile()
This method returns instance for screenCommand_userprofile component and should be called instead of accessing screenCommand_userprofile field directly.
Returns:
Instance for screenCommand_userprofile component
private javax.microedition.lcdui.Command get_security_execution()
This method returns instance for security_execution component and should be called instead of accessing security_execution field directly.
Returns:
Instance for security_execution component
get_stringItem_profile_info
private javax.microedition.lcdui.StringItem get_stringItem_profile_info()
This method returns instance for stringItem_profile_info component and should be called instead of accessing stringItem_profile_info field directly.
Returns:
Instance for stringItem_profile_info component
private javax.microedition.lcdui.StringItem get_stringItem_time()
This method returns instance for stringItem_time component and should be called instead of accessing stringItem_time field directly.
Returns:
Instance for stringItem_time component
private javax.microedition.lcdui.TextField get_textField1()
This method returns instance for textField1 component and should be called instead of accessing textField1 field directly.
Returns:
Instance for textField1 component
private javax.microedition.lcdui.TextField get_textField_email()
This method returns instance for textField_email component and should be called instead of accessing textField_email field directly.
Returns:
Instance for textField_email component
private javax.microedition.lcdui.TextField get_textField_id()
This method returns instance for textField_id component and should be called instead of accessing textField_id field directly.
Returns:
Instance for textField_id component
private javax.microedition.lcdui.TextField get_textField_password()
This method returns instance for textField_password component and should be called instead of accessing textField_password field directly.
Returns:
Instance for textField_password component
private void initialize()
This method initializes UI of the application.
public static void log(String s)
An utility function to display a log message
Parameters:
s String
public void pauseApp()
public void profile_load()
A method to load User Profile information from Record Store
public void profile_save()
A method to save User Profile information into Record Store
public void set_form_main()
A method to display main form
public void set_ready()
A method to ready for Bluetooth & send the first confirm message
public void startApp()