Exemplo n.º 1
0
 /* (non-Javadoc)
  * @see org.jajuk.base.Observer#update(org.jajuk.base.Event)
  */
 public void update(Event event) {
   if (event.getSubject() == EventSubject.EVENT_FILE_LAUNCHED) {
     // Compute album max rating every 10 tracks launches
     if (comp % 10 == 0) {
       refreshMaxRating();
     }
   }
 }
Exemplo n.º 2
0
 /*
  * (non-Javadoc)
  *
  * @see org.jajuk.base.Observer#update(org.jajuk.base.Event)
  */
 public void update(JajukEvent event) {
   if (event.getSubject() == JajukEvents.FILE_LAUNCHED) {
     // Compute album max rating every 10 tracks launches
     if (comp % 10 == 0) {
       refreshMaxRating();
     }
     comp++;
   }
 }