public class FileDragAndDropHandler extends AbstractDragAndDropHandler<File>
| Constructor and Description |
|---|
FileDragAndDropHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
drop(File file,
Display<?> display)
Performs a drop operation with the given data object in the specified
Display. |
Class<File> |
getType()
Gets the type associated with the object.
|
boolean |
supports(File file)
Gets whether this object is compatible with the given data object.
|
check, convertData, convertDataUnchecked, convertObject, convertObjectUnchecked, dropData, dropObject, supports, supportsData, supportsData, supportsDisplay, supportsObject, supportsObjectgetInfo, getPriority, setInfo, setPriority, toStringcontext, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersionpublic boolean supports(File file)
Typed
By default, this method will return true iff the data is assignable
to the associated type given by Typed.getType(). But individual
implementations may have other requirements beyond class assignability.
supports in interface Typed<File>supports in interface DragAndDropHandler<File>supports in class AbstractTypedPlugin<File>public boolean drop(File file, Display<?> display)
DragAndDropHandlerDisplay.Copyright © 2015–2022 SciJava. All rights reserved.