Package 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,Identifiable,Locatable,Logged,HandlerPlugin<File>,HasPluginInfo,RichPlugin,SciJavaPlugin,SingletonPlugin,TypedPlugin<File>,Prioritized,Typed<File>,DragAndDropHandler<File>,Versioned
public class FileDragAndDropHandler extends AbstractDragAndDropHandler<File>
Drag-and-drop handler for files.- Author:
- Curtis Rueden, Barry DeZonia
-
-
Constructor Summary
Constructors Constructor Description FileDragAndDropHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandrop(File file, Display<?> display)Performs a drop operation with the given data object in the specifiedDisplay.Class<File>getType()Gets the type associated with the object.booleansupports(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
-
Methods inherited from class org.scijava.plugin.AbstractRichPlugin
getInfo, getPriority, setInfo, setPriority, toString
-
Methods inherited from class org.scijava.AbstractContextual
context, getContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.scijava.Contextual
context, getContext, setContext
-
Methods inherited from interface org.scijava.plugin.HasPluginInfo
getInfo, setInfo
-
Methods inherited from interface org.scijava.Locatable
getLocation
-
Methods inherited from interface org.scijava.Prioritized
compareTo, getPriority, setPriority
-
Methods inherited from interface org.scijava.plugin.RichPlugin
getIdentifier, log
-
Methods inherited from interface org.scijava.Versioned
getVersion
-
-
-
-
Method Detail
-
supports
public boolean supports(File file)
Description copied from interface:TypedGets whether this object is compatible with the given data object.By default, this method will return
trueiff the data is assignable to the associated type given byTyped.getType(). But individual implementations may have other requirements beyond class assignability.- Specified by:
supportsin interfaceDragAndDropHandler<File>- Specified by:
supportsin interfaceTyped<File>- Overrides:
supportsin classAbstractTypedPlugin<File>
-
drop
public boolean drop(File file, Display<?> display)
Description copied from interface:DragAndDropHandlerPerforms a drop operation with the given data object in the specifiedDisplay.
-
-