Riferimenti per la classe ClientMidlet

Diagramma delle classi per ClientMidlet

Inheritance graph
[legenda]
Diagramma di collaborazione per ClientMidlet:

Collaboration graph
[legenda]
Lista di tutti i membri.

Descrizione Dettagliata

Autore:
Antonio

Definizione alla linea 36 del file ClientMidlet.java.

Membri pubblici

 ClientMidlet ()
 Creates a new instance of ClientMidlet.
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.
void startApp ()
void pauseApp ()
void destroyApp (boolean unconditional)
void run ()
 per evitare possibili deadlock provocati da operazioni bloccanti (quali quelle relative al networking) è necessario implementare in un thread differente tutta la logica delle connessioni al server
void discoveryStarted ()
 _________________________________________________________________________
void discoveryError (DiscoveryError error)
void serviceSearchStarted (Enumeration devices)
 handler richiamato quando termina l'inquiry ed ha inizio la ricerca dei servizi disponibili sulle device trovate.
void serviceSearchError (ServiceSearchError error)
 handler richiamato quando si verifica un errore durante la ricerca di servizi su una device (nessun record trovato, device non raggiungibile, ecc)
void servicesFound (Vector services, RemoteDevice rd)
void discoveryCompleted (DiscoveryReport report)
void connectionError ()
 _________________________________________________________________________
void handleMessageResponse (String message)
void handleRowResponse (Vector rows)
void loginIncorrect (String msg)
void loginCorrect (String msg)

Attributi con visibilità di package

javax.microedition.lcdui.List deviceFounded
javax.microedition.lcdui.Alert alertDiscoveryStart
javax.microedition.lcdui.Alert alertError
javax.microedition.lcdui.Command okCommandDiscoveryStart
javax.microedition.lcdui.Command exitBluetoothInitError
javax.microedition.lcdui.Ticker tickerDeviceSearch
javax.microedition.lcdui.Command stopCommand1
javax.microedition.lcdui.Command ViewServices
javax.microedition.lcdui.List servicesList
javax.microedition.lcdui.Command backToDeviceFounded
javax.microedition.lcdui.Alert alertSplashScreen
javax.microedition.lcdui.Image splashScreen
javax.microedition.lcdui.Alert alertService
javax.microedition.lcdui.Ticker tickerServiceList
javax.microedition.lcdui.Command connect
javax.microedition.lcdui.TextBox loginScreen
javax.microedition.lcdui.Command okCommandLoginScreen
javax.microedition.lcdui.Alert alertLoginIncorrect
javax.microedition.lcdui.Command okCommandLoginCorrect
javax.microedition.lcdui.Command updateValue
javax.microedition.lcdui.Alert alertLoginCorrect
javax.microedition.lcdui.Command okCommandLogincorrect
javax.microedition.lcdui.List userChoice
javax.microedition.lcdui.Command okCommandUserChoice
javax.microedition.lcdui.TextBox tableNameBox
javax.microedition.lcdui.Command okCommandTableNameBox
javax.microedition.lcdui.TextBox selectResultbox
javax.microedition.lcdui.Command backCommandSelectResultBox

Membri privati

void initialize ()
 This method initializes UI of the application.
javax.microedition.lcdui.List get_deviceFounded ()
 This method returns instance for deviceFounded component and should be called instead of accessing deviceFounded field directly.
javax.microedition.lcdui.Alert get_alertDiscoveryStart ()
 This method returns instance for alertDiscoveryStart component and should be called instead of accessing alertDiscoveryStart field directly.
javax.microedition.lcdui.Alert get_alertError ()
 This method returns instance for alertError component and should be called instead of accessing alertError field directly.
javax.microedition.lcdui.Command get_okCommandDiscoveryStart ()
 This method returns instance for okCommandDiscoveryStart component and should be called instead of accessing okCommandDiscoveryStart field directly.
javax.microedition.lcdui.Command get_exitBluetoothInitError ()
 This method returns instance for exitBluetoothInitError component and should be called instead of accessing exitBluetoothInitError field directly.
javax.microedition.lcdui.Ticker get_tickerDeviceSearch ()
 This method returns instance for tickerDeviceSearch component and should be called instead of accessing tickerDeviceSearch field directly.
javax.microedition.lcdui.Command get_stopCommand1 ()
 This method returns instance for stopCommand1 component and should be called instead of accessing stopCommand1 field directly.
javax.microedition.lcdui.Command get_ViewServices ()
 This method returns instance for ViewServices component and should be called instead of accessing ViewServices field directly.
javax.microedition.lcdui.List get_servicesList ()
 This method returns instance for servicesList component and should be called instead of accessing servicesList field directly.
javax.microedition.lcdui.Command get_backToDeviceFounded ()
 This method returns instance for backToDeviceFounded component and should be called instead of accessing backToDeviceFounded field directly.
javax.microedition.lcdui.Alert get_alertSplashScreen ()
 This method returns instance for alertSplashScreen component and should be called instead of accessing alertSplashScreen field directly.
javax.microedition.lcdui.Image get_splashScreen ()
 This method returns instance for splashScreen component and should be called instead of accessing splashScreen field directly.
javax.microedition.lcdui.Alert get_alertService ()
 This method returns instance for alertService component and should be called instead of accessing alertService field directly.
javax.microedition.lcdui.Ticker get_tickerServiceList ()
 This method returns instance for tickerServiceList component and should be called instead of accessing tickerServiceList field directly.
javax.microedition.lcdui.Command get_connect ()
 This method returns instance for connect component and should be called instead of accessing connect field directly.
javax.microedition.lcdui.TextBox get_loginScreen ()
 This method returns instance for loginScreen component and should be called instead of accessing loginScreen field directly.
javax.microedition.lcdui.Command get_okCommandLoginScreen ()
 This method returns instance for okCommandLoginScreen component and should be called instead of accessing okCommandLoginScreen field directly.
javax.microedition.lcdui.Alert get_alertLoginIncorrect ()
 This method returns instance for alertLoginIncorrect component and should be called instead of accessing alertLoginIncorrect field directly.
javax.microedition.lcdui.Command get_okCommandLoginCorrect ()
 This method returns instance for okCommandLoginCorrect component and should be called instead of accessing okCommandLoginCorrect field directly.
javax.microedition.lcdui.Command get_updateValue ()
 This method returns instance for updateValue component and should be called instead of accessing updateValue field directly.
javax.microedition.lcdui.Alert get_alertLoginCorrect ()
 This method returns instance for alertLoginCorrect component and should be called instead of accessing alertLoginCorrect field directly.
javax.microedition.lcdui.Command get_okCommandLogincorrect ()
 This method returns instance for okCommandLogincorrect component and should be called instead of accessing okCommandLogincorrect field directly.
javax.microedition.lcdui.List get_userChoice ()
 This method returns instance for userChoice component and should be called instead of accessing userChoice field directly.
javax.microedition.lcdui.Command get_okCommandUserChoice ()
 This method returns instance for okCommandUserChoice component and should be called instead of accessing okCommandUserChoice field directly.
javax.microedition.lcdui.TextBox get_tableNameBox ()
 This method returns instance for tableNameBox component and should be called instead of accessing tableNameBox field directly.
javax.microedition.lcdui.Command get_okCommandTableNameBox ()
 This method returns instance for okCommandTableNameBox component and should be called instead of accessing okCommandTableNameBox field directly.
javax.microedition.lcdui.TextBox get_selectResultbox ()
 This method returns instance for selectResultbox component and should be called instead of accessing selectResultbox field directly.
javax.microedition.lcdui.Command get_backCommandSelectResultBox ()
 This method returns instance for backCommandSelectResultBox component and should be called instead of accessing backCommandSelectResultBox field directly.
void connect ()
void setupServiceSearchIndicator ()

Attributi privati

BtClient client
UUID UUIDset []
int attrset [] = null
Image serviceSearchInProgress = null
Image serviceSearchDone = null
Image serviceSearchError = null
Hashtable deviceListIndex
Hashtable services
Hashtable serviceSearchErrorMsg
 hashtable di stringhe memorizzate in chiave dgli indici di deviceFounded.
StreamConnection conn
DataInputStream streamFromServer
DataOutputStream streamToServer
LoginRequestProcessor loginRequestProcessor
SelectXRequestProcessor selectProcessor

Attributi privati statici

static final UUID JAEBI_MIDLET_UUID = new UUID(0x12345)


Documentazione dei costruttori e dei distruttori

ClientMidlet.ClientMidlet  ) 
 

Creates a new instance of ClientMidlet.

Definizione alla linea 88 del file ClientMidlet.java.

Riferimenti attrset, client, get_alertError(), JAEBI_MIDLET_UUID, e UUIDset.

00088                           {
00089         this.UUIDset = new UUID[2];
00090         this.attrset = new int[1];
00091         
00092         //Consideriamo servizi del profilo btssp (vedi javadoc per classe UUID)
00093         UUIDset[0] = new UUID(0x1101);
00094         
00095         
00096         //e in particolare al servizio JAEBI midlet
00097         UUIDset[1] = JAEBI_MIDLET_UUID;
00098         
00099         //degli attributi ci interssa solo il nome del servizio
00100         attrset[0] = 0x100;
00101         
00102         try{
00103             client = new BtClient(UUIDset, attrset, this);
00104         } catch (BtInitException e){
00105             
00106             //visualizzo l'alert di errore con un opportuno messaggio
00107             get_alertError().setTitle("Errore irreversibile");
00108             get_alertError().setString(e.getMessage());
00109             javax.microedition.lcdui.Display.getDisplay(this).setCurrent(get_alertError());
00110             e.printStackTrace();
00111         }
00112         
00113         this.deviceListIndex = new Hashtable();
00114         this.services = new Hashtable();
00115         this.serviceSearchErrorMsg = new Hashtable();  
00116         this.loginRequestProcessor = new LoginRequestProcessor();
00117         this.selectProcessor = new SelectXRequestProcessor();
00118         
00119         
00120         
00121         
00122     }

Questo è il grafo delle chiamate per questa funzione:


Documentazione delle funzioni membro

void ClientMidlet.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.

Parametri:
command the Command that ws invoked
displayable the Displayable on which the command was invoked

Definizione alla linea 138 del file ClientMidlet.java.

Riferimenti alertDiscoveryStart, alertError, alertLoginCorrect, alertLoginIncorrect, backCommandSelectResultBox, backToDeviceFounded, client, connect(), destroyApp(), deviceFounded, exitBluetoothInitError, get_alertService(), get_deviceFounded(), get_loginScreen(), get_servicesList(), get_tableNameBox(), get_userChoice(), loginScreen, okCommandDiscoveryStart, okCommandLoginCorrect, okCommandLogincorrect, okCommandLoginScreen, okCommandTableNameBox, okCommandUserChoice, org.jaebi.midlet.bt.requestProcessing.RequestProcessor.processRequest(), selectProcessor, selectResultbox, services, serviceSearchErrorMsg, servicesList, org.jaebi.midlet.bt.requestProcessing.XRequestProcessor.setTableName(), setupServiceSearchIndicator(), org.jaebi.midlet.bt.BtClient.startDiscovery(), stopCommand1, streamFromServer, streamToServer, tableNameBox, userChoice, e ViewServices.

00138                                                                                                                           {
00139         if (displayable == alertDiscoveryStart) {
00140             if (command == okCommandDiscoveryStart) {
00141 // For adding user code into this block, select "Design | Screens | alertDiscoveryStart [Alert] | Assigned Commands | okCommandDiscoveryStart" item in the inspector and invoke property editor on Action property in Properties window.
00142                 client.startDiscovery();
00143                 setupServiceSearchIndicator();
00144                 javax.microedition.lcdui.Display.getDisplay(this).setCurrent(get_deviceFounded());
00145             }
00146         } else if (displayable == alertError) {
00147             if (command == exitBluetoothInitError) {
00148 // For adding user code into this block, select "Design | Screens | alertError [Alert] | Assigned Commands | exitBluetoothInitError" item in the inspector and invoke property editor on Action property in Properties window.
00149                 javax.microedition.lcdui.Display.getDisplay(this).setCurrent(null);
00150                 destroyApp(true);
00151                 notifyDestroyed();
00152             }
00153         } else if (displayable == alertLoginCorrect) {
00154             if (command == okCommandLogincorrect) {
00155 // For adding user code into this block, select "Design | Screens | alertLoginCorrect [Alert] | Assigned Commands | okCommandLogincorrect" item in the inspector and invoke property editor on Action property in Properties window.
00156                 javax.microedition.lcdui.Display.getDisplay(this).setCurrent(get_userChoice());
00157             }
00158         } else if (displayable == alertLoginIncorrect) {
00159             if (command == okCommandLoginCorrect) {
00160 // For adding user code into this block, select "Design | Screens | alertLoginIncorrect [Alert] | Assigned Commands | okCommandLoginCorrect" item in the inspector and invoke property editor on Action property in Properties window.
00161                 javax.microedition.lcdui.Display.getDisplay(this).setCurrent(get_loginScreen());
00162             }
00163         } else if (displayable == deviceFounded) {
00164             if (command == ViewServices) {
00165 // For adding user code into this block, select "Design | Screens | deviceFounded [List] | Assigned Commands | ViewServices" item in the inspector and invoke property editor on Action property in Properties window.
00166                 get_servicesList().deleteAll();
00167                 
00168 //recupero l'indice della device di cui si vuole visualizzare i servizi
00169                 Integer index = new Integer( get_deviceFounded().getSelectedIndex());
00170                 
00171 //controllo se ci sono stati errori durante la ricerca dei servizi su questa device
00172                 if (serviceSearchErrorMsg.containsKey(index)){
00173                     
00174                     //visualizzo l'alert di errore con un opportuno messaggio
00175                     get_alertService().setTitle("Errore");
00176                     get_alertService().setString((String)serviceSearchErrorMsg.get(index));
00177                     javax.microedition.lcdui.Display.getDisplay(this).setCurrent(get_alertService());
00178                 } else{
00179                     //controllo se la ricerca dei servizi su questa device è terminata
00180                     if (!services.containsKey(index)){
00181                         
00182                         //visualizzo l'alert di errore con un opportuno messaggio
00183                         get_alertService().setTitle("Attenzione");
00184                         get_alertService().setString("La ricerca di servizi per questa device non è ancora terminata");
00185                         javax.microedition.lcdui.Display.getDisplay(this).setCurrent(get_alertService());
00186                     } else{
00187         /*______________________________
00188          *visualizzo i servizi
00189          *______________________________
00190          */
00191                         get_servicesList().getTicker().setString("Elenco servizi disponibili per questa periferica");
00192                         Vector servicesOnDevice = (Vector)services.get(index);
00193                         
00194                         for (int i=0; i<servicesOnDevice.size(); i++){
00195                             //recupero il servizio ed il relativo nome
00196                             ServiceRecord service = (ServiceRecord)servicesOnDevice.elementAt(i);
00197                             String serviceName = "Servizio senza nome " + i;
00198                             
00199             /*
00200              * per il perchè si esegua questa operazione per recuperare il nome
00201              * del servizio si rimanda al javadoc per javax.bluetooth.ServiceRecord
00202              */
00203                             DataElement nameElement = service.getAttributeValue(256);
00204                             
00205             /*
00206              ** Una cosa è poco chiara. l'offset per recuperare il service name è 0 e
00207              * l'offset è 256. nonostante 256 faccia parte dell'attrlist con cui si
00208              *istanzia BtClient, l'attributo col nome del servizio non viene ritornato
00209              */
00210                             if( (nameElement != null) && nameElement.getDataType() == DataElement.STRING){
00211                                 serviceName = (String)(nameElement.getValue());
00212                             }
00213                             
00214                             get_servicesList().append(serviceName,null);
00215                         }
00216                         javax.microedition.lcdui.Display.getDisplay(this).setCurrent(get_servicesList());
00217                     }
00218                     
00219                 }
00220             } else if (command == stopCommand1) {
00221 // For adding user code into this block, select "Design | Screens | deviceFounded [List] | Assigned Commands | stopCommand1" item in the inspector and invoke property editor on Action property in Properties window.
00222 //client.cancelDiscovery();
00223                 System.out.println("funziona");
00224             }
00225         } else if (displayable == loginScreen) {
00226             if (command == okCommandLoginScreen) {
00227 // For adding user code into this block, select "Design | Screens | loginScreen [TextBox] | Assigned Commands | okCommandLoginScreen" item in the inspector and invoke property editor on Action property in Properties window.
00228                 this.loginRequestProcessor.setNickName(get_loginScreen().getString());
00229                 this.loginRequestProcessor.processRequest(this,this.streamFromServer, this.streamToServer);
00230 //TODO debug
00231                 System.out.println("Client login screen: ha fatto quello che dovrebbe fare");
00232             }
00233         } else if (displayable == selectResultbox) {
00234             if (command == backCommandSelectResultBox) {
00235 // For adding user code into this block, select "Design | Screens | selectResultbox [TextBox] | Assigned Commands | backCommandSelectResultBox" item in the inspector and invoke property editor on Action property in Properties window.
00236                 javax.microedition.lcdui.Display.getDisplay(this).setCurrent(get_tableNameBox());
00237             }
00238         } else if (displayable == servicesList) {
00239             if (command == backToDeviceFounded) {
00240 // For adding user code into this block, select "Design | Screens | servicesList [List] | Assigned Commands | backToDeviceFounded" item in the inspector and invoke property editor on Action property in Properties window.
00241                 javax.microedition.lcdui.Display.getDisplay(this).setCurrent(get_deviceFounded());
00242             } else if (command == connect) {
00243 // For adding user code into this block, select "Design | Screens | servicesList [List] | Assigned Commands | connect" item in the inspector and invoke property editor on Action property in Properties window.
00244                 new Thread(this).start();
00245                 javax.microedition.lcdui.Display.getDisplay(this).setCurrent(get_loginScreen());
00246             }
00247         } else if (displayable == tableNameBox) {
00248             if (command == okCommandTableNameBox) {
00249 // For adding user code into this block, select "Design | Screens | tableNameBox [TextBox] | Assigned Commands | okCommandTableNameBox" item in the inspector and invoke property editor on Action property in Properties window.
00250                 selectProcessor.setTableName(get_tableNameBox().getString());
00251                 selectProcessor.processRequest(this, this.streamFromServer, this.streamToServer);
00252             }
00253         } else if (displayable == userChoice) {
00254             if (command == okCommandUserChoice) {
00255 // For adding user code into this block, select "Design | Screens | userChoice [List] | Assigned Commands | okCommandUserChoice" item in the inspector and invoke property editor on Action property in Properties window.
00256                 
00257                 int index = get_userChoice().getSelectedIndex();
00258                 if (index == 0){
00259                     javax.microedition.lcdui.Display.getDisplay(this).setCurrent(get_tableNameBox());
00260                 }
00261                 
00262                 if (index == 1){
00263                     //TODO esegui logout
00264                 }
00265             }
00266         }
00267     }

Questo è il grafo delle chiamate per questa funzione:

void ClientMidlet.connect  )  [private]
 

Definizione alla linea 670 del file ClientMidlet.java.

Riferimenti client, conn, get_alertService(), get_deviceFounded(), get_servicesList(), org.jaebi.midlet.bt.BtClient.getConnection(), e services.

Referenziato da commandAction(), get_connect(), e run().

00670                           {
00671         /*
00672          * recupero l'indice del servizio con cui è memorizzato nel vector a sua volta
00673          * presente in services
00674          * NB: i servizi vengono caricati nella list nello stesso ordine in cui sono
00675          * presenti nel Vector
00676          */
00677         int serviceIndex = get_servicesList().getSelectedIndex();
00678         String url ="";
00679         
00680         /*
00681          * recupero il valore chiave con cui è memorizzato il vettore di servizi
00682          * relativo alla device cui ci si vuole connetterre
00683          */
00684         Integer key = new Integer(get_deviceFounded().getSelectedIndex());
00685         Vector serviceVector = (Vector)services.get(key);
00686         ServiceRecord service = (ServiceRecord)serviceVector.elementAt(serviceIndex);
00687         
00688         try{
00689             conn = client.getConnection(service, ServiceRecord.NOAUTHENTICATE_NOENCRYPT,  false);
00690             this.streamFromServer = conn.openDataInputStream();
00691             this.streamToServer = conn.openDataOutputStream();
00692         }
00693         catch (ConnectionException e){
00694             /*
00695              * Non è possibile instaurare la connessione. visualizo l'opportuno alert
00696              */
00697             get_alertService().setTitle("Errore");
00698             get_alertService().setString(e.getMessage());
00699             javax.microedition.lcdui.Display.getDisplay(this).setCurrent(get_alertService());
00700         }
00701         
00702          catch (IOException e){
00703             /*
00704              * Non è possibile instaurare la connessione. visualizo l'opportuno alert
00705              */
00706             get_alertService().setTitle("Errore");
00707             get_alertService().setString(e.getMessage());
00708             javax.microedition.lcdui.Display.getDisplay(this).setCurrent(get_alertService());
00709         }
00710         
00711         
00712         //TODO se la connessione va a buon fine bisogna svuotare le hashtable per ottimizzare memoria
00713         //TODO la prima cosa che devo fare è inviare la login alla midlet server
00714         
00715     }

Questo è il grafo delle chiamate per questa funzione:

void ClientMidlet.connectionError  ) 
 

_________________________________________________________________________

Implementazione dei metodi appartenenti alle interfacce XResponseHandler e AccountingResponseHandler _________________________________________________________________________

Implementa org.jaebi.midlet.bt.responseHandling.ServiceResponseHandler.

Definizione alla linea 850 del file ClientMidlet.java.

00850                                  {
00851        
00852         try{
00853             this.conn.close();
00854         }
00855         
00856         catch(IOException e){
00857             ;
00858         }
00859         
00860         finally{
00861             this.conn = null;
00862         }
00863      
00864     }

void ClientMidlet.destroyApp boolean  unconditional  ) 
 

Definizione alla linea 656 del file ClientMidlet.java.

Referenziato da commandAction().

00656                                                   {
00657     }

void ClientMidlet.discoveryCompleted DiscoveryReport  report  ) 
 

Implementa org.jaebi.midlet.bt.discoveryHandling.DiscoveryEventHandler.

Definizione alla linea 830 del file ClientMidlet.java.

Riferimenti org.jaebi.midlet.bt.discoveryHandling.DiscoveryReport.deviceCount(), e get_tickerDeviceSearch().

00830                                                           {
00831         
00832         String msg = "Discovery completato";
00833         System.out.println(msg);
00834         if(report.deviceCount() == 0){
00835             msg += "nessuna periferica trovata";
00836             System.out.println("nessuna periferica trovata");
00837         }
00838         get_tickerDeviceSearch().setString(msg);
00839         
00840     }

Questo è il grafo delle chiamate per questa funzione:

void ClientMidlet.discoveryError DiscoveryError  error  ) 
 

Implementa org.jaebi.midlet.bt.discoveryHandling.DiscoveryEventHandler.

Definizione alla linea 757 del file ClientMidlet.java.

Riferimenti get_alertError(), e org.jaebi.midlet.bt.discoveryHandling.DiscoveryError.getMsg().

00757                                                     {
00758         //visualizzo l'alert di errore con un opportuno messaggio
00759         get_alertError().setString(error.getMsg());
00760         javax.microedition.lcdui.Display.getDisplay(this).setCurrent(get_alertError());
00761         
00762     }

Questo è il grafo delle chiamate per questa funzione:

void ClientMidlet.discoveryStarted  ) 
 

_________________________________________________________________________

Implementazione dei metodi appartenenti all'interfaccia DiscoveryEventHandler

_________________________________________________________________________

Implementa org.jaebi.midlet.bt.discoveryHandling.DiscoveryEventHandler.

Definizione alla linea 751 del file ClientMidlet.java.

00751                                   {
00752         System.out.println("discovery partito");
00753  
00754     }

javax.microedition.lcdui.Alert ClientMidlet.get_alertDiscoveryStart  )  [private]
 

This method returns instance for alertDiscoveryStart component and should be called instead of accessing alertDiscoveryStart field directly.

Restituisce:
Instance for alertDiscoveryStart component

Definizione alla linea 290 del file ClientMidlet.java.

Riferimenti alertDiscoveryStart, e get_okCommandDiscoveryStart().

Referenziato da get_alertSplashScreen().

00290                                                                      {
00291         if (alertDiscoveryStart == null) {
00292             alertDiscoveryStart = new javax.microedition.lcdui.Alert("JAEBI Midlet Bluetooth client\n", "Cominciare ora la ricerca delle device Bluetooth?", null, javax.microedition.lcdui.AlertType.INFO);
00293             alertDiscoveryStart.addCommand(get_okCommandDiscoveryStart());
00294             alertDiscoveryStart.setCommandListener(this);
00295             alertDiscoveryStart.setTimeout(-2);
00296         }
00297         return alertDiscoveryStart;
00298     }

Questo è il grafo delle chiamate per questa funzione:

javax.microedition.lcdui.Alert ClientMidlet.get_alertError  )  [private]
 

This method returns instance for alertError component and should be called instead of accessing alertError field directly.

Restituisce:
Instance for alertError component

Definizione alla linea 304 del file ClientMidlet.java.

Riferimenti alertError, e get_exitBluetoothInitError().

Referenziato da ClientMidlet(), e discoveryError().

00304                                                             {
00305         if (alertError == null) {
00306             alertError = new javax.microedition.lcdui.Alert("Errore irreversibile", "<Enter Text>", null, javax.microedition.lcdui.AlertType.INFO);
00307             alertError.addCommand(get_exitBluetoothInitError());
00308             alertError.setCommandListener(this);
00309             alertError.setTimeout(-2);
00310         }
00311         return alertError;
00312     }

Questo è il grafo delle chiamate per questa funzione:

javax.microedition.lcdui.Alert ClientMidlet.get_alertLoginCorrect  )  [private]
 

This method returns instance for alertLoginCorrect component and should be called instead of accessing alertLoginCorrect field directly.

Restituisce:
Instance for alertLoginCorrect component

Definizione alla linea 522 del file ClientMidlet.java.

Riferimenti alertLoginCorrect, e get_okCommandLogincorrect().

Referenziato da loginCorrect().

00522                                                                    {
00523         if (alertLoginCorrect == null) {
00524             alertLoginCorrect = new javax.microedition.lcdui.Alert(null, "<Enter Text>", null, javax.microedition.lcdui.AlertType.INFO);
00525             alertLoginCorrect.addCommand(get_okCommandLogincorrect());
00526             alertLoginCorrect.setCommandListener(this);
00527             alertLoginCorrect.setTimeout(-2);
00528         }
00529         return alertLoginCorrect;
00530     }

Questo è il grafo delle chiamate per questa funzione:

javax.microedition.lcdui.Alert ClientMidlet.get_alertLoginIncorrect  )  [private]
 

This method returns instance for alertLoginIncorrect component and should be called instead of accessing alertLoginIncorrect field directly.

Restituisce:
Instance for alertLoginIncorrect component

Definizione alla linea 486 del file ClientMidlet.java.

Riferimenti alertLoginIncorrect, e get_okCommandLoginCorrect().

Referenziato da loginIncorrect().

00486                                                                      {
00487         if (alertLoginIncorrect == null) {
00488             alertLoginIncorrect = new javax.microedition.lcdui.Alert("Errore", "<Enter Text>", null, javax.microedition.lcdui.AlertType.ERROR);
00489             alertLoginIncorrect.addCommand(get_okCommandLoginCorrect());
00490             alertLoginIncorrect.setCommandListener(this);
00491             alertLoginIncorrect.setTimeout(-2);
00492         }
00493         return alertLoginIncorrect;
00494     }

Questo è il grafo delle chiamate per questa funzione:

javax.microedition.lcdui.Alert ClientMidlet.get_alertService  )  [private]
 

This method returns instance for alertService component and should be called instead of accessing alertService field directly.

Restituisce:
Instance for alertService component

Definizione alla linea 428 del file ClientMidlet.java.

Riferimenti alertService.

Referenziato da commandAction(), e connect().

00428                                                               {
00429         if (alertService == null) {
00430             alertService = new javax.microedition.lcdui.Alert("alert service", "<Enter Text>", null, javax.microedition.lcdui.AlertType.WARNING);
00431             alertService.setTimeout(-2);
00432         }
00433         return alertService;
00434     }

javax.microedition.lcdui.Alert ClientMidlet.get_alertSplashScreen  )  [private]
 

This method returns instance for alertSplashScreen component and should be called instead of accessing alertSplashScreen field directly.

Restituisce:
Instance for alertSplashScreen component

Definizione alla linea 401 del file ClientMidlet.java.

Riferimenti alertSplashScreen, get_alertDiscoveryStart(), e get_splashScreen().

Referenziato da initialize().

00401                                                                    {
00402         if (alertSplashScreen == null) {
00403             alertSplashScreen = new javax.microedition.lcdui.Alert("", "", get_splashScreen(), javax.microedition.lcdui.AlertType.INFO);
00404             alertSplashScreen.setTimeout(3000);
00405             javax.microedition.lcdui.Display.getDisplay(this).setCurrent(get_alertDiscoveryStart());
00406         }
00407         return alertSplashScreen;
00408     }

Questo è il grafo delle chiamate per questa funzione:

javax.microedition.lcdui.Command ClientMidlet.get_backCommandSelectResultBox  )  [private]
 

This method returns instance for backCommandSelectResultBox component and should be called instead of accessing backCommandSelectResultBox field directly.

Restituisce:
Instance for backCommandSelectResultBox component

Definizione alla linea 611 del file ClientMidlet.java.

Riferimenti backCommandSelectResultBox.

Referenziato da get_selectResultbox().

00611                                                                               {
00612         if (backCommandSelectResultBox == null) {
00613             backCommandSelectResultBox = new javax.microedition.lcdui.Command("Back", javax.microedition.lcdui.Command.BACK, 1);
00614         }
00615         return backCommandSelectResultBox;
00616     }

javax.microedition.lcdui.Command ClientMidlet.get_backToDeviceFounded  )  [private]
 

This method returns instance for backToDeviceFounded component and should be called instead of accessing backToDeviceFounded field directly.

Restituisce:
Instance for backToDeviceFounded component

Definizione alla linea 390 del file ClientMidlet.java.

Riferimenti backToDeviceFounded.

Referenziato da get_servicesList().

00390                                                                        {
00391         if (backToDeviceFounded == null) {
00392             backToDeviceFounded = new javax.microedition.lcdui.Command("Back", javax.microedition.lcdui.Command.BACK, 1);
00393         }
00394         return backToDeviceFounded;
00395     }

javax.microedition.lcdui.Command ClientMidlet.get_connect  )  [private]
 

This method returns instance for connect component and should be called instead of accessing connect field directly.

Restituisce:
Instance for connect component

Definizione alla linea 451 del file ClientMidlet.java.

Riferimenti connect().

Referenziato da get_servicesList().

00451                                                            {
00452         if (connect == null) {
00453             connect = new javax.microedition.lcdui.Command("Connetti", javax.microedition.lcdui.Command.ITEM, 1);
00454         }
00455         return connect;
00456     }

Questo è il grafo delle chiamate per questa funzione:

javax.microedition.lcdui.List ClientMidlet.get_deviceFounded  )  [private]
 

This method returns instance for deviceFounded component and should be called instead of accessing deviceFounded field directly.

Restituisce:
Instance for deviceFounded component

Definizione alla linea 273 del file ClientMidlet.java.

Riferimenti deviceFounded, get_stopCommand1(), get_tickerDeviceSearch(), e get_ViewServices().

Referenziato da commandAction(), connect(), serviceSearchError(), serviceSearchStarted(), e servicesFound().

00273                                                               {
00274         if (deviceFounded == null) {
00275             deviceFounded = new javax.microedition.lcdui.List("Inserire user name", javax.microedition.lcdui.Choice.IMPLICIT, new java.lang.String[0], new javax.microedition.lcdui.Image[0]);
00276             deviceFounded.addCommand(get_stopCommand1());
00277             deviceFounded.addCommand(get_ViewServices());
00278             deviceFounded.setCommandListener(this);
00279             deviceFounded.setTicker(get_tickerDeviceSearch());
00280             deviceFounded.setSelectedFlags(new boolean[0]);
00281             deviceFounded.setSelectCommand(get_ViewServices());
00282         }
00283         return deviceFounded;
00284     }

Questo è il grafo delle chiamate per questa funzione:

javax.microedition.lcdui.Command ClientMidlet.get_exitBluetoothInitError  )  [private]
 

This method returns instance for exitBluetoothInitError component and should be called instead of accessing exitBluetoothInitError field directly.

Restituisce:
Instance for exitBluetoothInitError component

Definizione alla linea 329 del file ClientMidlet.java.

Riferimenti exitBluetoothInitError.

Referenziato da get_alertError().

00329                                                                           {
00330         if (exitBluetoothInitError == null) {
00331             exitBluetoothInitError = new javax.microedition.lcdui.Command("Exit", javax.microedition.lcdui.Command.EXIT, 1);
00332         }
00333         return exitBluetoothInitError;
00334     }

javax.microedition.lcdui.TextBox ClientMidlet.get_loginScreen  )  [private]
 

This method returns instance for loginScreen component and should be called instead of accessing loginScreen field directly.

Restituisce:
Instance for loginScreen component

Definizione alla linea 462 del file ClientMidlet.java.

Riferimenti get_okCommandLoginScreen(), e loginScreen.

Referenziato da commandAction().

00462                                                                {
00463         if (loginScreen == null) {
00464             loginScreen = new javax.microedition.lcdui.TextBox("Inserisci lo user name", "", 120, 0x0);
00465             loginScreen.addCommand(get_okCommandLoginScreen());
00466             loginScreen.setCommandListener(this);
00467         }
00468         return loginScreen;
00469     }

Questo è il grafo delle chiamate per questa funzione:

javax.microedition.lcdui.Command ClientMidlet.get_okCommandDiscoveryStart  )  [private]
 

This method returns instance for okCommandDiscoveryStart component and should be called instead of accessing okCommandDiscoveryStart field directly.

Restituisce:
Instance for okCommandDiscoveryStart component

Definizione alla linea 318 del file ClientMidlet.java.

Riferimenti okCommandDiscoveryStart.

Referenziato da get_alertDiscoveryStart().

00318                                                                            {
00319         if (okCommandDiscoveryStart == null) {
00320             okCommandDiscoveryStart = new javax.microedition.lcdui.Command("Ok", javax.microedition.lcdui.Command.OK, 1);
00321         }
00322         return okCommandDiscoveryStart;
00323     }

javax.microedition.lcdui.Command ClientMidlet.get_okCommandLogincorrect  )  [private]
 

This method returns instance for okCommandLogincorrect component and should be called instead of accessing okCommandLogincorrect field directly.

Restituisce:
Instance for okCommandLogincorrect component

Definizione alla linea 536 del file ClientMidlet.java.

Riferimenti okCommandLogincorrect.

Referenziato da get_alertLoginCorrect().

00536                                                                          {
00537         if (okCommandLogincorrect == null) {
00538             okCommandLogincorrect = new javax.microedition.lcdui.Command("Ok", javax.microedition.lcdui.Command.OK, 1);
00539         }
00540         return okCommandLogincorrect;
00541     }

javax.microedition.lcdui.Command ClientMidlet.get_okCommandLoginCorrect  )  [private]
 

This method returns instance for okCommandLoginCorrect component and should be called instead of accessing okCommandLoginCorrect field directly.

Restituisce:
Instance for okCommandLoginCorrect component

Definizione alla linea 500 del file ClientMidlet.java.

Riferimenti okCommandLoginCorrect.

Referenziato da get_alertLoginIncorrect().

00500                                                                          {
00501         if (okCommandLoginCorrect == null) {
00502             okCommandLoginCorrect = new javax.microedition.lcdui.Command("Ok", javax.microedition.lcdui.Command.OK, 1);
00503         }
00504         return okCommandLoginCorrect;
00505     }

javax.microedition.lcdui.Command ClientMidlet.get_okCommandLoginScreen  )  [private]
 

This method returns instance for okCommandLoginScreen component and should be called instead of accessing okCommandLoginScreen field directly.

Restituisce:
Instance for okCommandLoginScreen component

Definizione alla linea 475 del file ClientMidlet.java.

Riferimenti okCommandLoginScreen.

Referenziato da get_loginScreen().

00475                                                                         {
00476         if (okCommandLoginScreen == null) {
00477             okCommandLoginScreen = new javax.microedition.lcdui.Command("Ok", javax.microedition.lcdui.Command.OK, 1);
00478         }
00479         return okCommandLoginScreen;
00480     }

javax.microedition.lcdui.Command ClientMidlet.get_okCommandTableNameBox  )  [private]
 

This method returns instance for okCommandTableNameBox component and should be called instead of accessing okCommandTableNameBox field directly.

Restituisce:
Instance for okCommandTableNameBox component

Definizione alla linea 587 del file ClientMidlet.java.

Riferimenti okCommandTableNameBox.

Referenziato da get_tableNameBox().

00587                                                                          {
00588         if (okCommandTableNameBox == null) {
00589             okCommandTableNameBox = new javax.microedition.lcdui.Command("Ok", javax.microedition.lcdui.Command.OK, 1);
00590         }
00591         return okCommandTableNameBox;
00592     }

javax.microedition.lcdui.Command ClientMidlet.get_okCommandUserChoice  )  [private]
 

This method returns instance for okCommandUserChoice component and should be called instead of accessing okCommandUserChoice field directly.

Restituisce:
Instance for okCommandUserChoice component

Definizione alla linea 563 del file ClientMidlet.java.

Riferimenti okCommandUserChoice.

Referenziato da get_userChoice().

00563                                                                        {
00564         if (okCommandUserChoice == null) {
00565             okCommandUserChoice = new javax.microedition.lcdui.Command("Ok", javax.microedition.lcdui.Command.OK, 1);
00566         }
00567         return okCommandUserChoice;
00568     }

javax.microedition.lcdui.TextBox ClientMidlet.get_selectResultbox  )  [private]
 

This method returns instance for selectResultbox component and should be called instead of accessing selectResultbox field directly.

Restituisce:
Instance for selectResultbox component

Definizione alla linea 598 del file ClientMidlet.java.

Riferimenti get_backCommandSelectResultBox(), e selectResultbox.

Referenziato da handleMessageResponse().

00598                                                                    {
00599         if (selectResultbox == null) {
00600             selectResultbox = new javax.microedition.lcdui.TextBox(null, null, 120, 0x0);
00601             selectResultbox.addCommand(get_backCommandSelectResultBox());
00602             selectResultbox.setCommandListener(this);
00603         }
00604         return selectResultbox;
00605     }

Questo è il grafo delle chiamate per questa funzione:

javax.microedition.lcdui.List ClientMidlet.get_servicesList  )  [private]
 

This method returns instance for servicesList component and should be called instead of accessing servicesList field directly.

Restituisce:
Instance for servicesList component

Definizione alla linea 373 del file ClientMidlet.java.

Riferimenti get_backToDeviceFounded(), get_connect(), get_tickerServiceList(), e servicesList.

Referenziato da commandAction(), e connect().

00373                                                              {
00374         if (servicesList == null) {
00375             servicesList = new javax.microedition.lcdui.List("Inserire lo username", javax.microedition.lcdui.Choice.EXCLUSIVE, new java.lang.String[0], new javax.microedition.lcdui.Image[0]);
00376             servicesList.addCommand(get_backToDeviceFounded());
00377             servicesList.addCommand(get_connect());
00378             servicesList.setCommandListener(this);
00379             servicesList.setTicker(get_tickerServiceList());
00380             servicesList.setSelectedFlags(new boolean[0]);
00381             servicesList.setSelectCommand(get_connect());
00382         }
00383         return servicesList;
00384     }

Questo è il grafo delle chiamate per questa funzione:

javax.microedition.lcdui.Image ClientMidlet.get_splashScreen  )  [private]
 

This method returns instance for splashScreen component and should be called instead of accessing splashScreen field directly.

Restituisce:
Instance for splashScreen component

Definizione alla linea 414 del file ClientMidlet.java.

Riferimenti splashScreen.

Referenziato da get_alertSplashScreen().

00414                                                               {
00415         if (splashScreen == null) {
00416             try {
00417                 splashScreen = javax.microedition.lcdui.Image.createImage("/images/jaebi LogoFinal.jpg");
00418             } catch (java.io.IOException exception) {
00419             }
00420         }
00421         return splashScreen;
00422     }

javax.microedition.lcdui.Command ClientMidlet.get_stopCommand1  )  [private]
 

This method returns instance for stopCommand1 component and should be called instead of accessing stopCommand1 field directly.

Restituisce:
Instance for stopCommand1 component

Definizione alla linea 351 del file ClientMidlet.java.

Riferimenti stopCommand1.

Referenziato da get_deviceFounded().

00351                                                                 {
00352         if (stopCommand1 == null) {
00353             stopCommand1 = new javax.microedition.lcdui.Command("Stop", javax.microedition.lcdui.Command.STOP, 1);
00354         }
00355         return stopCommand1;
00356     }

javax.microedition.lcdui.TextBox ClientMidlet.get_tableNameBox  )  [private]
 

This method returns instance for tableNameBox component and should be called instead of accessing tableNameBox field directly.

Restituisce:
Instance for tableNameBox component

Definizione alla linea 574 del file ClientMidlet.java.

Riferimenti get_okCommandTableNameBox(), e tableNameBox.

Referenziato da commandAction().

00574                                                                 {
00575         if (tableNameBox == null) {
00576             tableNameBox = new javax.microedition.lcdui.TextBox("Inserisci il nome della tabella", null, 120, 0x0);
00577             tableNameBox.addCommand(get_okCommandTableNameBox());
00578             tableNameBox.setCommandListener(this);
00579         }
00580         return tableNameBox;
00581     }

Questo è il grafo delle chiamate per questa funzione:

javax.microedition.lcdui.Ticker ClientMidlet.get_tickerDeviceSearch  )  [private]
 

This method returns instance for tickerDeviceSearch component and should be called instead of accessing tickerDeviceSearch field directly.

Restituisce:
Instance for tickerDeviceSearch component

Definizione alla linea 340 del file ClientMidlet.java.

Riferimenti tickerDeviceSearch.

Referenziato da discoveryCompleted(), get_deviceFounded(), e serviceSearchStarted().

00340                                                                      {
00341         if (tickerDeviceSearch == null) {
00342             tickerDeviceSearch = new javax.microedition.lcdui.Ticker("Ricerca delle device in corso");
00343         }
00344         return tickerDeviceSearch;
00345     }

javax.microedition.lcdui.Ticker ClientMidlet.get_tickerServiceList  )  [private]
 

This method returns instance for tickerServiceList component and should be called instead of accessing tickerServiceList field directly.

Restituisce:
Instance for tickerServiceList component

Definizione alla linea 440 del file ClientMidlet.java.

Riferimenti tickerServiceList.

Referenziato da get_servicesList().

00440                                                                     {
00441         if (tickerServiceList == null) {
00442             tickerServiceList = new javax.microedition.lcdui.Ticker("<Enter Ticker Text>");
00443         }
00444         return tickerServiceList;
00445     }

javax.microedition.lcdui.Command ClientMidlet.get_updateValue  )  [private]
 

This method returns instance for updateValue component and should be called instead of accessing updateValue field directly.

Restituisce:
Instance for updateValue component

Definizione alla linea 511 del file ClientMidlet.java.

Riferimenti updateValue.

00511                                                                {
00512         if (updateValue == null) {
00513             updateValue = new javax.microedition.lcdui.Command("Modifica", javax.microedition.lcdui.Command.SCREEN, 1);
00514         }
00515         return updateValue;
00516     }

javax.microedition.lcdui.List ClientMidlet.get_userChoice  )  [private]
 

This method returns instance for userChoice component and should be called instead of accessing userChoice field directly.

Restituisce:
Instance for userChoice component

Definizione alla linea 547 del file ClientMidlet.java.

Riferimenti get_okCommandUserChoice(), e userChoice.

Referenziato da commandAction().

00547                                                            {
00548         if (userChoice == null) {
00549             userChoice = new javax.microedition.lcdui.List("Seleziona l\'operazione da eseguire", javax.microedition.lcdui.Choice.IMPLICIT, new java.lang.String[0], new javax.microedition.lcdui.Image[0]);
00550             userChoice.addCommand(get_okCommandUserChoice());
00551             userChoice.setCommandListener(this);
00552             userChoice.setSelectedFlags(new boolean[0]);
00553             get_userChoice().append("Select", null);
00554             get_userChoice().append("Logout", null);
00555         }
00556         return userChoice;
00557     }

Questo è il grafo delle chiamate per questa funzione:

javax.microedition.lcdui.Command ClientMidlet.get_ViewServices  )  [private]
 

This method returns instance for ViewServices component and should be called instead of accessing ViewServices field directly.

Restituisce:
Instance for ViewServices component

Definizione alla linea 362 del file ClientMidlet.java.

Riferimenti ViewServices.

Referenziato da get_deviceFounded().

00362                                                                 {
00363         if (ViewServices == null) {
00364             ViewServices = new javax.microedition.lcdui.Command("Servizi", "Visualizza i servizi disponibili su questa device", javax.microedition.lcdui.Command.ITEM, 1);
00365         }
00366         return ViewServices;
00367     }

void ClientMidlet.handleMessageResponse String  message  ) 
 

Implementa org.jaebi.midlet.bt.responseHandling.XResponseHandler.

Definizione alla linea 866 del file ClientMidlet.java.

Riferimenti get_selectResultbox().

00866                                                      {
00867        get_selectResultbox().setString(message);
00868     }

Questo è il grafo delle chiamate per questa funzione:

void ClientMidlet.handleRowResponse Vector  rows  ) 
 

Implementa org.jaebi.midlet.bt.responseHandling.XResponseHandler.

Definizione alla linea 870 del file ClientMidlet.java.

00870                                               {
00871         //TODO implementami
00872     }

void ClientMidlet.initialize  )  [private]
 

This method initializes UI of the application.

Definizione alla linea 128 del file ClientMidlet.java.

Riferimenti get_alertSplashScreen().

Referenziato da startApp().

00128                               {
00129 // For adding user code into this block, select "Design" item in the inspector and invoke property editor on Action property in Properties window.
00130         javax.microedition.lcdui.Display.getDisplay(this).setCurrent(get_alertSplashScreen());
00131     }

Questo è il grafo delle chiamate per questa funzione:

void ClientMidlet.loginCorrect String  msg  ) 
 

Implementa org.jaebi.midlet.bt.responseHandling.AccountingResponseHandler.

Definizione alla linea 883 del file ClientMidlet.java.

Riferimenti get_alertLoginCorrect().

00883                                         {
00884         /*
00885          *la login  è andata a buon fine. visualizzo un opportuno dialog 
00886          */ 
00887         get_alertLoginCorrect().setString(msg);
00888         javax.microedition.lcdui.Display.getDisplay(this).setCurrent(get_alertLoginCorrect());
00889         
00890     }

Questo è il grafo delle chiamate per questa funzione:

void ClientMidlet.loginIncorrect String  msg  ) 
 

Implementa org.jaebi.midlet.bt.responseHandling.AccountingResponseHandler.

Definizione alla linea 874 del file ClientMidlet.java.

Riferimenti get_alertLoginIncorrect().

00874                                           {
00875         
00876         /*
00877          *la login non è andata a buon fine. visualizzo un opportuno dialog 
00878          */ 
00879         get_alertLoginIncorrect().setString(msg);
00880         javax.microedition.lcdui.Display.getDisplay(this).setCurrent(get_alertLoginIncorrect());
00881     }

Questo è il grafo delle chiamate per questa funzione:

void ClientMidlet.pauseApp  ) 
 

Definizione alla linea 653 del file ClientMidlet.java.

00653                            {
00654     }

void ClientMidlet.run  ) 
 

per evitare possibili deadlock provocati da operazioni bloccanti (quali quelle relative al networking) è necessario implementare in un thread differente tutta la logica delle connessioni al server

Definizione alla linea 665 del file ClientMidlet.java.

Riferimenti connect().

00665                      {
00666        connect(); 
00667     }

Questo è il grafo delle chiamate per questa funzione:

void ClientMidlet.serviceSearchError ServiceSearchError  error  ) 
 

handler richiamato quando si verifica un errore durante la ricerca di servizi su una device (nessun record trovato, device non raggiungibile, ecc)

Parametri:
error dettagli sull'errore riscontrato

Implementa org.jaebi.midlet.bt.discoveryHandling.DiscoveryEventHandler.

Definizione alla linea 787 del file ClientMidlet.java.

Riferimenti deviceListIndex, get_deviceFounded(), org.jaebi.midlet.bt.discoveryHandling.DiscoveryError.getMsg(), org.jaebi.midlet.bt.discoveryHandling.ServiceSearchError.getRemoteDevice(), serviceSearchError, e serviceSearchErrorMsg.

00787                                                             {
00788         System.out.println("Errore durante la ricerca dei servizi " + error.getMsg());
00789         
00790         //aggiorno la remote device dall'error
00791         RemoteDevice rd = error.getRemoteDevice();
00792         
00793         /*
00794          * Se la condizione di questo if non è vera, significa che è finita una
00795          * ricerca con id non previsto
00796          */
00797         if (rd != null){
00798             //recupero l'indice in deviceFounded corrispondente a rd
00799             Integer index = (Integer)deviceListIndex.get(rd);
00800             
00801             //aggiorno l'immagine
00802             String stringPart = get_deviceFounded().getString(index.intValue());
00803             get_deviceFounded().set(index.intValue(), stringPart, serviceSearchError);
00804             
00805             //aggiorno l'hashtable delgi errori di ricerca servizi
00806             serviceSearchErrorMsg.put(index, error.getMsg());
00807         }
00808         
00809         
00810         
00811     }

Questo è il grafo delle chiamate per questa funzione:

void ClientMidlet.serviceSearchStarted Enumeration  devices  ) 
 

handler richiamato quando termina l'inquiry ed ha inizio la ricerca dei servizi disponibili sulle device trovate.

Parametri:
devices Enumeration delle devices bluetooth trovate durante l'inquiry e sui cui verrà effettuata la ricerca

Implementa org.jaebi.midlet.bt.discoveryHandling.DiscoveryEventHandler.

Definizione alla linea 764 del file ClientMidlet.java.

Riferimenti deviceListIndex, get_deviceFounded(), get_tickerDeviceSearch(), e serviceSearchInProgress.

00764                                                          {
00765         System.out.println("Ricerca servizi iniziata");
00766         
00767         get_tickerDeviceSearch().setString("Ricerca servizi sulle device trovate in corso");
00768         
00769         while(devices.hasMoreElements()){
00770             RemoteDevice rd = (RemoteDevice)devices.nextElement();
00771             String deviceName;
00772             try{
00773                 deviceName = rd.getFriendlyName(true);
00774             } catch(IOException e){
00775                 deviceName = rd.getBluetoothAddress();
00776             }
00777             
00778             //aggiorno il componente deviceFounded
00779             int index = get_deviceFounded().append(deviceName, serviceSearchInProgress);
00780             
00781             //..e l'hashtable deviceListIndex
00782             deviceListIndex.put(rd, new Integer(index));
00783         }
00784         
00785     }

Questo è il grafo delle chiamate per questa funzione:

void ClientMidlet.servicesFound Vector  services,
RemoteDevice  rd
 

Implementa org.jaebi.midlet.bt.discoveryHandling.DiscoveryEventHandler.

Definizione alla linea 814 del file ClientMidlet.java.

Riferimenti deviceListIndex, get_deviceFounded(), e serviceSearchDone.

00814                                                                {
00815         System.out.println("Servizio trovato");
00816         
00817         //recupero l'indice in deviceFounded corrispondente a rd
00818         Integer index = (Integer)deviceListIndex.get(rd);
00819         
00820         //aggiorno l'immagine
00821         String stringPart = get_deviceFounded().getString(index.intValue());
00822         get_deviceFounded().set(index.intValue(), stringPart, serviceSearchDone);
00823         
00824         
00825         //aggiorno l'hashtable di servizi
00826         this.services.put(index, services);
00827     }

Questo è il grafo delle chiamate per questa funzione:

void ClientMidlet.setupServiceSearchIndicator  )  [private]
 

Definizione alla linea 718 del file ClientMidlet.java.

Riferimenti serviceSearchDone, serviceSearchError, e serviceSearchInProgress.

Referenziato da commandAction().

00718                                               {
00719         try{
00720             serviceSearchInProgress = Image.createImage("/images/searching.png");
00721         } catch(IOException e){
00722             //TODO si può creare un off screen image (?) come in example.bluetooth.demo.ServerMIDlet.setupIndicatorImage()
00723             ;
00724         }
00725         
00726         try{
00727             serviceSearchDone = Image.createImage("/images/searchDone.png");
00728         } catch(IOException e){
00729             //TODO si può creare un off screen image (?) come in example.bluetooth.demo.ServerMIDlet.setupIndicatorImage()
00730             ;
00731         }
00732         
00733         try{
00734             serviceSearchError = Image.createImage("/images/noServiceFound.png");
00735         } catch(IOException e){
00736             //TODO si può creare un off screen image (?) come in example.bluetooth.demo.ServerMIDlet.setupIndicatorImage()
00737             ;
00738         }
00739         
00740     }

void ClientMidlet.startApp  ) 
 

Definizione alla linea 648 del file ClientMidlet.java.

Riferimenti initialize().

00648                            {
00649         initialize();
00650         
00651     }

Questo è il grafo delle chiamate per questa funzione:


Documentazione dei dati membri

javax.microedition.lcdui.Alert ClientMidlet.alertDiscoveryStart [package]
 

Definizione alla linea 619 del file ClientMidlet.java.

Referenziato da commandAction(), e get_alertDiscoveryStart().

javax.microedition.lcdui.Alert ClientMidlet.alertError [package]
 

Definizione alla linea 620 del file ClientMidlet.java.

Referenziato da commandAction(), e get_alertError().

javax.microedition.lcdui.Alert ClientMidlet.alertLoginCorrect [package]
 

Definizione alla linea 638 del file ClientMidlet.java.

Referenziato da commandAction(), e get_alertLoginCorrect().

javax.microedition.lcdui.Alert ClientMidlet.alertLoginIncorrect [package]
 

Definizione alla linea 635 del file ClientMidlet.java.

Referenziato da commandAction(), e get_alertLoginIncorrect().

javax.microedition.lcdui.Alert ClientMidlet.alertService [package]
 

Definizione alla linea 630 del file ClientMidlet.java.

Referenziato da get_alertService().

javax.microedition.lcdui.Alert ClientMidlet.alertSplashScreen [package]
 

Definizione alla linea 628 del file ClientMidlet.java.

Referenziato da get_alertSplashScreen().

int ClientMidlet.attrset[] = null [private]
 

Definizione alla linea 40 del file ClientMidlet.java.

Referenziato da ClientMidlet().

javax.microedition.lcdui.Command ClientMidlet.backCommandSelectResultBox [package]
 

Definizione alla linea 645 del file ClientMidlet.java.

Referenziato da commandAction(), e get_backCommandSelectResultBox().

javax.microedition.lcdui.Command ClientMidlet.backToDeviceFounded [package]
 

Definizione alla linea 627 del file ClientMidlet.java.

Referenziato da commandAction(), e get_backToDeviceFounded().

BtClient ClientMidlet.client [private]
 

Definizione alla linea 38 del file ClientMidlet.java.

Referenziato da ClientMidlet(), commandAction(), e connect().

StreamConnection ClientMidlet.conn [private]
 

Definizione alla linea 73 del file ClientMidlet.java.

Referenziato da connect().

javax.microedition.lcdui.Command ClientMidlet.connect [package]
 

Definizione alla linea 632 del file ClientMidlet.java.

javax.microedition.lcdui.List ClientMidlet.deviceFounded [package]
 

Definizione alla linea 618 del file ClientMidlet.java.

Referenziato da commandAction(), e get_deviceFounded().

Hashtable ClientMidlet.deviceListIndex [private]
 

Definizione alla linea 52 del file ClientMidlet.java.

Referenziato da serviceSearchError(), serviceSearchStarted(), e servicesFound().

javax.microedition.lcdui.Command ClientMidlet.exitBluetoothInitError [package]
 

Definizione alla linea 622 del file ClientMidlet.java.

Referenziato da commandAction(), e get_exitBluetoothInitError().

final UUID ClientMidlet.JAEBI_MIDLET_UUID = new UUID(0x12345) [static, private]
 

Definizione alla linea 71 del file ClientMidlet.java.

Referenziato da ClientMidlet().

LoginRequestProcessor ClientMidlet.loginRequestProcessor [private]
 

Definizione alla linea 84 del file ClientMidlet.java.

javax.microedition.lcdui.TextBox ClientMidlet.loginScreen [package]
 

Definizione alla linea 633 del file ClientMidlet.java.

Referenziato da commandAction(), e get_loginScreen().

javax.microedition.lcdui.Command ClientMidlet.okCommandDiscoveryStart [package]
 

Definizione alla linea 621 del file ClientMidlet.java.

Referenziato da commandAction(), e get_okCommandDiscoveryStart().

javax.microedition.lcdui.Command ClientMidlet.okCommandLogincorrect [package]
 

Definizione alla linea 639 del file ClientMidlet.java.

Referenziato da commandAction(), e get_okCommandLogincorrect().

javax.microedition.lcdui.Command ClientMidlet.okCommandLoginCorrect [package]
 

Definizione alla linea 636 del file ClientMidlet.java.

Referenziato da commandAction(), e get_okCommandLoginCorrect().

javax.microedition.lcdui.Command ClientMidlet.okCommandLoginScreen [package]
 

Definizione alla linea 634 del file ClientMidlet.java.

Referenziato da commandAction(), e get_okCommandLoginScreen().

javax.microedition.lcdui.Command ClientMidlet.okCommandTableNameBox [package]
 

Definizione alla linea 643 del file ClientMidlet.java.

Referenziato da commandAction(), e get_okCommandTableNameBox().

javax.microedition.lcdui.Command ClientMidlet.okCommandUserChoice [package]
 

Definizione alla linea 641 del file ClientMidlet.java.

Referenziato da commandAction(), e get_okCommandUserChoice().

SelectXRequestProcessor ClientMidlet.selectProcessor [private]
 

Definizione alla linea 85 del file ClientMidlet.java.

Referenziato da commandAction().

javax.microedition.lcdui.TextBox ClientMidlet.selectResultbox [package]
 

Definizione alla linea 644 del file ClientMidlet.java.

Referenziato da commandAction(), e get_selectResultbox().

Hashtable ClientMidlet.services [private]
 

Definizione alla linea 60 del file ClientMidlet.java.

Referenziato da commandAction(), e connect().

Image ClientMidlet.serviceSearchDone = null [private]
 

Definizione alla linea 42 del file ClientMidlet.java.

Referenziato da servicesFound(), e setupServiceSearchIndicator().

Image ClientMidlet.serviceSearchError = null [private]
 

Definizione alla linea 43 del file ClientMidlet.java.

Referenziato da serviceSearchError(), e setupServiceSearchIndicator().

Hashtable ClientMidlet.serviceSearchErrorMsg [private]
 

hashtable di stringhe memorizzate in chiave dgli indici di deviceFounded.

le stringhe indicano informazioni circa gli errori avvenuti durante la ricerca dei servizi (se mai ve ne fossero). Se avviene un errore sulla device x, la chiave in base alla quale verrà memorizzata la stringa di errore è data da deviceListIndex.get(x)

Definizione alla linea 69 del file ClientMidlet.java.

Referenziato da commandAction(), e serviceSearchError().

Image ClientMidlet.serviceSearchInProgress = null [private]
 

Definizione alla linea 41 del file ClientMidlet.java.

Referenziato da serviceSearchStarted(), e setupServiceSearchIndicator().

javax.microedition.lcdui.List ClientMidlet.servicesList [package]
 

Definizione alla linea 626 del file ClientMidlet.java.

Referenziato da commandAction(), e get_servicesList().

javax.microedition.lcdui.Image ClientMidlet.splashScreen [package]
 

Definizione alla linea 629 del file ClientMidlet.java.

Referenziato da get_splashScreen().

javax.microedition.lcdui.Command ClientMidlet.stopCommand1 [package]
 

Definizione alla linea 624 del file ClientMidlet.java.

Referenziato da commandAction(), e get_stopCommand1().

DataInputStream ClientMidlet.streamFromServer [private]
 

Definizione alla linea 74 del file ClientMidlet.java.

Referenziato da commandAction().

DataOutputStream ClientMidlet.streamToServer [private]
 

Definizione alla linea 75 del file ClientMidlet.java.

Referenziato da commandAction().

javax.microedition.lcdui.TextBox ClientMidlet.tableNameBox [package]
 

Definizione alla linea 642 del file ClientMidlet.java.

Referenziato da commandAction(), e get_tableNameBox().

javax.microedition.lcdui.Ticker ClientMidlet.tickerDeviceSearch [package]
 

Definizione alla linea 623 del file ClientMidlet.java.

Referenziato da get_tickerDeviceSearch().

javax.microedition.lcdui.Ticker ClientMidlet.tickerServiceList [package]
 

Definizione alla linea 631 del file ClientMidlet.java.

Referenziato da get_tickerServiceList().

javax.microedition.lcdui.Command ClientMidlet.updateValue [package]
 

Definizione alla linea 637 del file ClientMidlet.java.

Referenziato da get_updateValue().

javax.microedition.lcdui.List ClientMidlet.userChoice [package]
 

Definizione alla linea 640 del file ClientMidlet.java.

Referenziato da commandAction(), e get_userChoice().

UUID ClientMidlet.UUIDset[] [private]
 

Definizione alla linea 39 del file ClientMidlet.java.

Referenziato da ClientMidlet().

javax.microedition.lcdui.Command ClientMidlet.ViewServices [package]
 

Definizione alla linea 625 del file ClientMidlet.java.

Referenziato da commandAction(), e get_ViewServices().


La documentazione per questa classe è stata generata a partire dal seguente file:
Generato il Thu Jun 23 00:03:01 2005 per JAEBI - BlueTooth J2ME Midlet Client da  doxygen 1.4.3