Examples of ArtworkImpl


Examples of com.jitcaforwin.extended.impl.internal.track.ArtworkImpl

    IITArtworkCollection itArtworkCollection = new ITArtworkCollectionMock();
    TrackImpl track = TrackImpl.create(libraryMock, new ITTrackMock(itArtworkCollection));
    ArtworkCollectionImpl artworkCollection = new ArtworkCollectionImpl(track);
    assertTrue(artworkCollection.size() == 0);

    ArtworkImpl artwork = artworkCollection.add(new File(ARTWORK));
    artwork.setDescription(ARTWORK);
    assertTrue(artworkCollection.size() == 1);
    assertTrue(artworkCollection.get(0).getDescription().equals(ARTWORK));
  }
View Full Code Here

Examples of com.jitcaforwin.extended.impl.internal.track.ArtworkImpl

    IITArtworkCollection itArtworkCollection = new ITArtworkCollectionMock();
    TrackImpl track = TrackImpl.create(libraryMock, new ITTrackMock(itArtworkCollection));
    ArtworkCollectionImpl artworkCollection = new ArtworkCollectionImpl(track);
    assertTrue(artworkCollection.size() == 0);

    ArtworkImpl artwork1 = artworkCollection.add(new File(ARTWORK));
    artwork1.setDescription(ARTWORK);
    assertTrue(artworkCollection.size() == 1);
    assertTrue(artworkCollection.get(0).getDescription().equals(ARTWORK));

    @SuppressWarnings("unused")
    ArtworkImpl artwork2 = artworkCollection.add(artwork1);
    assertTrue(artworkCollection.size() == 2);
    assertTrue(artworkCollection.get(1).getDescription().equals(ARTWORK));
  }
View Full Code Here

Examples of com.jitcaforwin.extended.impl.internal.track.ArtworkImpl

   * @throws JitcaException
   *             if an error occurs.
   */
  private void extractArtworksFromCollection() throws ObjectDeletedException {
    for (int i = 1; i < this.itCollection.getCount() + 1; i++) {
      artworks.add(i - 1, new ArtworkImpl(this.itCollection.item(i), this.track));
    }
  }
View Full Code Here

Examples of com.jitcaforwin.extended.impl.internal.track.ArtworkImpl

   * @throws JitcaException
   *             if an error occurs.
   */
  public ArtworkImpl add(Artwork artwork) throws JitcaException{
    File tempFile = this.copyArtworkToTempFile(artwork);
    ArtworkImpl newArtwork = this.add(tempFile);
    tempFile.delete();
    newArtwork.setDescription(artwork.getDescription());
    return newArtwork;
  }
View Full Code Here

Examples of com.jitcaforwin.extended.impl.internal.track.ArtworkImpl

   * @throws JitcaException
   *             if an error occurs.
   */
  public ArtworkImpl add(File file) throws JitcaException {
    IITArtwork itArtwork = this.track.getITTrack().addArtworkFromFile(file);
    ArtworkImpl newArtwork = new ArtworkImpl(itArtwork, this.track);
    this.artworks.add(newArtwork);
    return newArtwork;
  }
View Full Code Here

Examples of com.jitcaforwin.extended.internal.track.ArtworkImpl

   * @throws JitcaException
   *             if an error occurs.
   */
  private void extractArtworksFromCollection() throws ObjectDeletedException {
    for (int i = 1; i < this.itCollection.getCount() + 1; i++) {
      artworks.add(i - 1, new ArtworkImpl(this.itCollection.item(i), this.track));
    }
  }
View Full Code Here

Examples of com.jitcaforwin.extended.internal.track.ArtworkImpl

   * @throws JitcaException
   *             if an error occurs.
   */
  public ArtworkImpl add(Artwork artwork) throws JitcaException{
    File tempFile = this.copyArtworkToTempFile(artwork);
    ArtworkImpl newArtwork = this.add(tempFile);
    tempFile.delete();
    newArtwork.setDescription(artwork.getDescription());
    return newArtwork;
  }
View Full Code Here

Examples of com.jitcaforwin.extended.internal.track.ArtworkImpl

   * @throws JitcaException
   *             if an error occurs.
   */
  public ArtworkImpl add(File file) throws JitcaException {
    IITArtwork itArtwork = this.track.getITTrack().addArtworkFromFile(file);
    ArtworkImpl newArtwork = new ArtworkImpl(itArtwork, this.track);
    this.artworks.add(newArtwork);
    return newArtwork;
  }
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.