Package com.vaadin.ui.dnd.event
Class FileDropEvent<T extends AbstractComponent>
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.event.ConnectorEvent
-
- com.vaadin.ui.Component.Event
-
- com.vaadin.ui.dnd.event.FileDropEvent<T>
-
- Type Parameters:
T
- Type of the file drop target component.
- All Implemented Interfaces:
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, Collection<Html5File> files)
Creates a file drop event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Html5File>
getFiles()
Gets the collection of files dropped onto the file drop target component.-
Methods inherited from class com.vaadin.ui.Component.Event
getComponent
-
Methods inherited from class com.vaadin.event.ConnectorEvent
getConnector
-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Constructor Detail
-
FileDropEvent
public FileDropEvent(T target, Collection<Html5File> files)
Creates a file drop event.- Parameters:
target
- The file drop target component.files
- Collection of files.
-
-
Method Detail
-
getFiles
public 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.
-
-