org.scijava.ui.dnd
Class FileDragAndDropHandler
java.lang.Object
org.scijava.AbstractContextual
org.scijava.plugin.AbstractRichPlugin
org.scijava.plugin.AbstractTypedPlugin<D>
org.scijava.plugin.AbstractHandlerPlugin<D>
org.scijava.ui.dnd.AbstractDragAndDropHandler<File>
org.scijava.ui.dnd.FileDragAndDropHandler
- All Implemented Interfaces:
- Comparable<Prioritized>, Contextual, HandlerPlugin<File>, HasPluginInfo, RichPlugin, SciJavaPlugin, SingletonPlugin, TypedPlugin<File>, Prioritized, Typed<File>, DragAndDropHandler<File>
public class FileDragAndDropHandler
- extends AbstractDragAndDropHandler<File>
Drag-and-drop handler for files.
- Author:
- Curtis Rueden, Barry DeZonia
Method Summary |
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. |
Methods inherited from class org.scijava.ui.dnd.AbstractDragAndDropHandler |
check, convertData, convertDataUnchecked, convertObject, convertObjectUnchecked, dropData, dropObject, supports, supportsData, supportsData, supportsDisplay, supportsObject, supportsObject |
FileDragAndDropHandler
public FileDragAndDropHandler()
supports
public boolean supports(File file)
- Description copied from interface:
Typed
- Gets whether this object is compatible with the given data object.
By default, this method will return true
always, since the type is
known to be compatible. But individual implementations may have other
requirements beyond class assignability.
- Specified by:
supports
in interface Typed<File>
- Specified by:
supports
in interface DragAndDropHandler<File>
- Overrides:
supports
in class AbstractTypedPlugin<File>
drop
public boolean drop(File file,
Display<?> display)
- Description copied from interface:
DragAndDropHandler
- Performs a drop operation with the given data object in the specified
Display
.
getType
public Class<File> getType()
- Description copied from interface:
Typed
- Gets the type associated with the object.
Copyright © 2009–2015 SciJava. All rights reserved.