Examples of Song


Examples of org.our2unes.itunes.client.Song

//    }
   
    int numRowsOld = songModel.getRowCount();
   
    for (int i = 0; i < songs.size(); i++) {
      Song s = (Song) songs.get(i);
      songModel.AddRow(s, host, sessionId, playdb, _status);
    }
     
    //songTable.validate();
    //songTable.repaint();
View Full Code Here

Examples of org.plugtree.training.model.Song

    /**
     * Creates a Michael Jackson song ("Thriller").
     * @return the created song.
     */
    private Song createThriller() {
        Song song = new Song("Thriller", Song.Genre.POP,6540);
        song.addArtist(new Artist("Michael", "Jackson"));
        return song;
    }
View Full Code Here

Examples of org.richfaces.demo.tree.Song

    return null;
  }

  public String getAsString(FacesContext context, UIComponent component,
      Object value) {
    Song song = (Song)value;
    return new Long(song.getId()).toString();
  }
View Full Code Here

Examples of org.skyscreamer.yoga.demo.model.Song

        artist.getAlbums().add( album );
    }

    private void newSong( long id, String title, long artistId, long albumId )
    {
        Song song = new Song();
        song.setId( id );
        song.setTitle( title );
        song.setArtist( artists.get( artistId ) );
        Album album = albums.get( albumId );
        song.setAlbum( album );
        album.getSongs().add( song );
        songs.put( id, song );
    }
View Full Code Here

Examples of org.skyscreamer.yoga.test.model.extended.Song

        return album;
    }

    private static void addSong( Album album, int id, String title )
    {
        Song song = new Song( id, title, album );
        album.getSongs().add( song );
    }
View Full Code Here

Examples of us.jyg.freshet.dao.model.Song

                    log.error("Song manager is null!");
                    keepGoing = false;
                }
                while (keepGoing) {
                    if (songQ.isEmpty()) {
                        Song s = songManager.getRandomSong(lock);
                        if (s == null) {
                            log.info("No song for randomizer. Waiting a sec, maybe the database is building. ");
                            try {
                                Thread.sleep(1000);
                            } catch (InterruptedException iE) {
View Full Code Here

Examples of us.jyg.freshet.dao.model.Song

                            while( (f=miner.next()) != null) {
                                if (f.getName().matches(".*[mM][pP]3")) {
                                    if (!finalSongManager.songIsInDb(f)) {
                                        try {
                                            SongData songData = new SongData(f);
                                            Song song = finalSongManager.saveSong(songData);
                                            log.debug("Added: " + song.getName() + " ("+song.getId() +")"+
                                                    ", " + song.getAlbum().getName() +
                                                    ", " + song.getArtist().getName() +
                                                    ", " + song.getGenre().getName());
                                        } catch (SongDataException sdE) {
                                            log.error("Could not process file: " +f.getAbsolutePath() + ": "+ sdE.getMessage());
                                        } catch (Exception e) {
                                            log.error("Generic exception while building database: ", e);
                                        }
View Full Code Here

Examples of us.jyg.freshet.dao.model.Song

    if (q.size() > 0) {
      qs = (QSong)q.get(0);
      q.remove(0);
    }
    currentlyPlaying = qs;
    Song s = null;
    if (qs != null) {
      // add this song to the song history list
      history.add(0, qs);
      if (history.size() > Constants.SONGQ_MAX_HISTORY)
        history.remove(history.size()-1);
View Full Code Here

Examples of us.jyg.freshet.dao.model.Song

   * Get the last song given by <code>next()</code>, a.k.a the currently playing
   * song (or last played song if none is currently playing)
   * @return the last song taken from the queue
   */
   public Song getCurrentlyPlayingSong() {
     Song song = null;
     if (currentlyPlaying != null)
       song = currentlyPlaying.getSong();
     return song;
   }
View Full Code Here

Examples of us.jyg.freshet.dao.model.Song

   */
  public List getHistory() {
    List<Song> songs = new ArrayList<Song>();
    for (Iterator i=history.iterator(); i.hasNext();) {
      QSong qSong = (QSong)i.next();
      Song song = qSong.getSong();
      songs.add(song);
    }
    return songs;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.