Image de profil de wsadik
@wsadik
Membre depuis le 24 avril 2004
0 Recommendations

wsadik

En ligne Hors ligne
//-------------------------------------------------------------------------- protected class TrackEmCommandListener implements CommandListener, Runnable { /** Current command to proccess. */ private Command currentCommand; /** Displyable of the current command to proccess. */ private Displayable currentDisplayable; /** The current command processing thread. */ private Thread commandThread; /** * The method to determine what action to take * * @param c The Command object that has been activated * @param d The Displayable object that the command was * associated with */ public void commandAction(Command c, Displayable d) { synchronized (this) { if (commandThread != null) { [url removed, login to view]("GORU"); // process only one command at a time return; } currentCommand = c; currentDisplayable = d; commandThread = new Thread(this); [url removed, login to view](); } } private void exitThread() { synchronized (this) { commandThread = null; } } /** * Perform the current command set by the method commandAction. */ public void run() { if (currentCommand == TrackEmUtil.EXIT_COMMAND) { try { destroyApp(true); } catch (MIDletStateChangeException msce) { //TBD } } else if (currentCommand == TrackEmUtil.ABOUT_COMMAND) { showAbout(); } //------------------------------------------------ synchronized (this) { // signal that another command can be processed commandThread = null; } } } /**************************************************************************/ private class UpdaterTask extends TimerTask { private int localTimer = 1; public void run() { [url removed, login to view]("------------------------------"); [url removed, login to view]("UpdaterTask:run(): (sc != null) " + (sc != null)); [url removed, login to view]("UpdaterTask:run(): (display == sc) " + ([url removed, login to view]() == sc)); [url removed, login to view]("UpdaterTask:run(): localTimer = " + localTimer); [url removed, login to view]([url removed, login to view]()); if (localTimer >= 20) { [url removed, login to view]([url removed, login to view]()); Thread t1 = new Thread() { public void run() { [url removed, login to view]([url removed, login to view](), [url removed, login to view]()); } }; [url removed, login to view](); Thread t2 = new Thread() { public void run() { [url removed, login to view](); } }; [url removed, login to view](); localTimer = 1; } else { localTimer++; } [url removed, login to view](); [url removed, login to view]("==============================="); } // run } /**************************************************************************/
$15 $ US / h
1 commentaire
0.8
  • 100%Travaux complétés
  • 100%Selon le budget
  • 100%Dans les temps
  • N/ATaux de Réembauche

Portfolio

Avis récents

Aucun commentaire.

Vérifications

  • Connecté à Facebook
  • Freelance Préféré
  • Paiement vérifié
  • Téléphone Vérifié
  • Identité Vérifiée
  • E-mail vérifié

Mes meilleures compétences

Voir des freelances similaires