Class FileDropEvent<T extends AbstractComponent>

  • Type Parameters:
    T - Type of the file drop target component.
    All Implemented Interfaces:
    java.io.Serializable

    public class FileDropEvent<T extends AbstractComponent>
    extends Component.Event
    File drop event that contains the collection of files dropped on a file drop target.
    Since:
    8.1
    Author:
    Vaadin Ltd
    See Also:
    FileDropHandler, Serialized Form
    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      FileDropEvent​(T target, java.util.Collection<Html5File> files)
      Creates a file drop event.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Collection<Html5File> getFiles()
      Gets the collection of files dropped onto the file drop target component.
      • Methods inherited from class java.util.EventObject

        getSource, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • FileDropEvent

        public FileDropEvent​(T target,
                             java.util.Collection<Html5File> files)
        Creates a file drop event.
        Parameters:
        target - The file drop target component.
        files - Collection of files.
    • Method Detail

      • getFiles

        public java.util.Collection<Html5File> getFiles()
        Gets the collection of files dropped onto the file drop target component.
        Returns:
        Collection of files that were dropped onto the file drop target component.