Examples of Album


Examples of cs213.photoAlbum.model.Album

   * Updates the album labels if the current album selected changes.
   *
   */
  private void updateAlbumLabelPanel() {
    String albumname = (String) albumsJL.getSelectedValue();
    Album album = control.backend.getAlbum(albumname);
    albumNameJL.setText(albumname);

    if(album == null){
      albumNumPhotosJL.setText("");
      albumStartJL.setText("");
      albumEndJL.setText("");
    }else if(album.getPhotoList().size() == 0) {
      albumNumPhotosJL.setText("0");
      albumStartJL.setText("...");
      albumEndJL.setText("...");
    } else {
      albumNumPhotosJL.setText(album.getPhotoList().size() + "");
      albumStartJL.setText(album.start.toString());
      albumEndJL.setText(album.end.toString());
    }
  }
View Full Code Here

Examples of de.linwave.music.Album

  }

  public void testAlbumYelloSubmarine()
  {
    int cnt = 0;
    ObjectSet<Album> albums = gtm.queryByExample(new Album("Yellow Submarine"), 1);
    for (Album album : albums) {
      if (!album.getName().equals("Yellow Submarine"))
        fail("Invalid album. Expected 'Yellow Submarin' but got '" + album.getName() + "'");
      cnt++;
    }
View Full Code Here

Examples of de.umass.lastfm.Album

     */
    public static String getCoverImage(String artist, String album) {

        try {

            Album search = Album.getInfo(artist, album,
                    "33d9ef520018d87db5dff9ef74cc4904");

            if (search != null) {
                String album_image = search.getImageURL(ImageSize.EXTRALARGE);
                if (album_image != null) {
                    return album_image;
                } else {
                    return "";
                }
View Full Code Here

Examples of fb4java.beans.Album

    JSONArray albums = (JSONArray) albumListObj;
    int albumsSize = albums.length();
    for (int a = 0; a < albumsSize; a++) {
        JSONObject jObj = albums.getJSONObject(a);

        Album album = new Album();
        album.aid = jObj.getString("aid");
        album.coverPid = jObj.getString("cover_pid");
        album.owner = jObj.getLong("owner");
        album.name = jObj.getString("name");
        album.created = new Date(jObj.getLong("created") * 1000);
 
View Full Code Here

Examples of info.galleria.domain.Album

   
    em.flush();
    em.clear();
   
    //Execute
    Album album = new Album(TEST_ALBUM_NAME, TEST_ALBUM_DESCRIPTION);
    user.addToAlbums(album);
    user = repository.modify(user);
    em.flush();
    em.clear();
   
View Full Code Here

Examples of ketUI.Album

    SwingUtilities.invokeLater(new WindowOpener());
    return true;
  }

  public void showAlbum() {
    new Album(getDocument(), cycle);
  }
View Full Code Here

Examples of kz.sysdesign.app.Entities.Album

  public Album getAlbumByName(String name)
  {
    String jpqlQuery = "FROM " + Album.class.getSimpleName() + " a WHERE a.name = :name";
    Query query = em.createQuery(jpqlQuery, Album.class).setParameter("name", name);

    Album album = null;
    try
    {
      album = (Album) query.getSingleResult();
    }
    catch(NonUniqueResultException ue) {  }
View Full Code Here

Examples of model.Album

  }
  public void valueChanged(ListSelectionEvent e) {
    if (!e.getValueIsAdjusting()) {
      int row = table.getSelectedRow();
      if (row>=0) {
        Album selection = ((Album)table.getModel().getValueAt(row, 0));
        view.albumSelected(selection);
      }
     
    }
  }
View Full Code Here

Examples of models.Album

     *
     * @param id
     */
    @Check("admin")
    public static void delete(Long id) {
        Album album = Album.findById(id);
        album.delete();
        Application.list();
    }
View Full Code Here

Examples of models.Album

     *
     * @param id
     */
    @Check("admin")
    public static void form(Long id) {
        Album album = Album.findById(id);
        render("@Application.form", album);
    }
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.