Package org.photovault.imginfo

Examples of org.photovault.imginfo.PhotoCollection


   
    public boolean importData(JComponent c, Transferable t) {
  log.warn( "importData" );
        if (canImport(c, t.getTransferDataFlavors())) {

      PhotoCollection collection = view.getCollection();
      if ( collection instanceof PhotoFolder ) {
    log.warn( "importing" );
    // Photos were dropped to a folder so we can insert them
    PhotoFolder folder = (PhotoFolder) collection;
                lastImportTarget = folder;
View Full Code Here


  while ( iter.hasNext() ) {
      sourcePhotos[i] = (PhotoInfo) iter.next();
      i++;
  }
  log.warn( "" + i + " photos selected" );
        PhotoCollection sourceCollection = view.getCollection();
        return new PhotoCollectionTransferable( sourcePhotos );
    }
View Full Code Here

     @param data The data that was transferred of null if transfer action was NONE
     @param action The actual action that was performed
    */
    protected void exportDone(JComponent c, Transferable data, int action) {

        PhotoCollection collection = view.getCollection();
       
        // Find out into which collection this transfer was done
       
        if ( (collection != lastImportTarget) && (action == MOVE) && collection instanceof PhotoFolder ) {
      PhotoFolder folder = (PhotoFolder) collection;
View Full Code Here

TOP

Related Classes of org.photovault.imginfo.PhotoCollection

Copyright © 2018 www.massapicom. 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.