All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jwebmp.plugins.blueimp.fileupload.BlueImpFileUploadReferencePool Maven / Gradle / Ivy

Go to download

File Upload widget with multiple file selection, drag and drop support, progress bar, validation and preview images, audio and video for jQuery. Supports cross-domain, chunked and resumable file uploads. Works with any server-side platform (Google App Engine, PHP, Python, Ruby on Rails, Java, etc.) that supports standard HTML form file uploads.

There is a newer version: 1.2.2.1-jre17
Show newest version
/*
 * Copyright (C) 2017 GedMarc
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see .
 */
package com.jwebmp.plugins.blueimp.fileupload;

import com.jwebmp.core.base.references.CSSReference;
import com.jwebmp.core.base.references.JavascriptReference;
import com.jwebmp.core.base.servlets.interfaces.ReferencePool;

/**
 * Default reference pool structure
 *
 * @author GedMarc
 * @since 20 Apr 2016
 */
public enum BlueImpFileUploadReferencePool
		implements ReferencePool
{
	/**
	 * Display Template
	 */
	TemplatesReference(new JavascriptReference("TemplatesReference", 9.22, "bower_components/blueimp-tmpl/js/tmpl.min.js"),
	                   null),

	/**
	 * Load Image
	 */

	LoadImageJCropReference(new JavascriptReference("LoadImageJCropReference", 9.22, "bower_components/blueimp-load-image/js/vendor/jquery.Jcrop.min.js"),
	                        new CSSReference("LoadImageJCropReference", 9.22, "bower_components/blueimp-load-image/css/vendor/jquery.Jcrop.min.css")),

	LoadImageExifReference(new JavascriptReference("LoadImageExifReference", 9.22, "bower_components/blueimp-load-image/js/load-image-exif.min.js"),
	                       null),
	LoadImageMetaReference(new JavascriptReference("LoadImageMetaReference", 9.22, "bower_components/blueimp-load-image/js/load-image-meta.min.js"),
	                       null),
	LoadImageExifMapReference(new JavascriptReference("LoadImageExifMapReference", 9.22, "bower_components/blueimp-load-image/js/load-image-exif-map.min.js"),
	                          null),
	LoadImageReference(new JavascriptReference("LoadImageReference", 9.22, "bower_components/blueimp-load-image/js/load-image.min.js"),
	                   null),

	CanvasToBlobReference(new JavascriptReference("CanvasToBlobReference", 9.22, "bower_components/blueimp-load-image/js/canvas-to-blob.min.js"),
	                      null),

	/**
	 * File Upload
	 */

	FileUploadReference(new JavascriptReference("FileUploadReference", 9.22, "bower_components/blueimpfileupload/js/jquery.fileupload.min.js"),
	                    new CSSReference("FileUploadReferenceCSS", 9.22, "bower_components/blueimpfileupload/css/jquery.fileupload.min.css")),

	FileUploadAudioReference(new JavascriptReference("FileUploadAudioReference", 9.22, "bower_components/blueimpfileupload/js/jquery.fileupload-audio.min.js"),
	                         null),

	FileUploadImageReference(new JavascriptReference("FileUploadImageReference", 9.22, "bower_components/blueimpfileupload/js/jquery.fileupload-image.min.js"),
	                         null),
	FileUploadProcessReference(new JavascriptReference("FileUploadProcessReference", 9.22, "bower_components/blueimpfileupload/js/jquery.fileupload-process.min.js"),
	                           null),
	FileUploadValidateReference(new JavascriptReference("FileUploadValidateReference", 9.22, "bower_components/blueimpfileupload/js/jquery.fileupload-validate.min.js"),
	                            null),
	FileUploadIFrameTransportReference(
			new JavascriptReference("FileUploadIFrameTransportReference", 9.22, "bower_components/blueimpfileupload/js/jquery.iframe-transport.min.js"),
			null),
	FileUploadVideoReference(new JavascriptReference("FileUploadVideoReference", 9.22, "bower_components/blueimpfileupload/js/jquery.fileupload-video.min.js"),
	                         null),

	FileUploadUIReference(new JavascriptReference("FileUploadUIReference", 9.22, "bower_components/blueimpfileupload/js/jquery.fileupload-ui.min.js"),
	                      new CSSReference("angularFileUploadReference", 9.22, "bower_components/blueimpfileupload/css/jquery.fileupload-ui.min.css")),

	FileUploadAngularReference(new JavascriptReference("FileUploadAngularReference", 9.22, "bower_components/blueimpfileupload/js/jquery.fileupload-angular.min.js"), null);
	/**
	 * The actual javascript
	 */
	private JavascriptReference javaScriptReference;
	/**
	 * The actual css reference
	 */
	private CSSReference cssReference;

	/**
	 * Constructs a reference pool
	 */
	BlueImpFileUploadReferencePool()
	{
	}

	/**
	 * Constructs a new reference pool
	 *
	 * @param javaScriptReference
	 * @param cssReference
	 */
	BlueImpFileUploadReferencePool(JavascriptReference javaScriptReference, CSSReference cssReference)
	{
		this.javaScriptReference = javaScriptReference;
		this.cssReference = cssReference;
	}

	/**
	 * Gets the cSS reference
	 *
	 * @return
	 */
	@Override
	public CSSReference getCssReference()
	{
		return cssReference;
	}

	/**
	 * Sets the CSS Reference
	 *
	 * @param cssReference
	 */
	@Override
	public void setCssReference(CSSReference cssReference)
	{
		this.cssReference = cssReference;
	}

	/**
	 * Returns the javascript reference
	 *
	 * @return
	 */
	@Override
	public JavascriptReference getJavaScriptReference()
	{
		return javaScriptReference;
	}

	/**
	 * Sets the javascript reference
	 *
	 * @param javaScriptReference
	 */
	@Override
	public void setJavaScriptReference(JavascriptReference javaScriptReference)
	{
		this.javaScriptReference = javaScriptReference;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy