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

org.wisepersist.gwt.uploader.client.events.FileQueuedEvent Maven / Gradle / Ivy

Go to download

GWT Uploader is a freely available open source GWT library that encapsulates the file upload capabilities provided by the File and XMLHttpRequest Level 2 APIs as well as the SWFUpload library.

There is a newer version: 1.2.3
Show newest version
/*
 * Copyright (c) 2016 WisePersist.org
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.wisepersist.gwt.uploader.client.events;

import org.wisepersist.gwt.uploader.client.File;

/**
 * Provides access to the raw information provided by Uploader when a 'fileQueued' event occurs.
 * This class should not be instantiated directly, but instead you should create a {@link
 * FileQueuedHandler} and register it via the {@link org.wisepersist.gwt.uploader.client
 * .Uploader#setFileQueuedHandler(FileQueuedHandler)} method in order to access file queued events.
 * 

* Note that the 'fileQueued' event is fired for each file that is queued after the File * Selection Dialog window is closed. * * @author [email protected] */ public class FileQueuedEvent { private File file; /** * This constructor is intended for internal use only. You should not create file queued events * directly, but instead should register a {@link FileQueuedHandler}. * * @param file The file instance that was added to the queue. */ public FileQueuedEvent(File file) { this.file = file; } /** * Return the details of the file that was added to the queue. * * @return File */ public File getFile() { return file; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy