org.scijava.ui.dnd
Class ListDragAndDropHandler

java.lang.Object
  extended by org.scijava.AbstractContextual
      extended by org.scijava.plugin.AbstractRichPlugin
          extended by org.scijava.plugin.AbstractTypedPlugin<D>
              extended by org.scijava.plugin.AbstractHandlerPlugin<D>
                  extended by org.scijava.ui.dnd.AbstractDragAndDropHandler<List<?>>
                      extended by org.scijava.ui.dnd.ListDragAndDropHandler
All Implemented Interfaces:
Comparable<Prioritized>, Contextual, HandlerPlugin<List<?>>, HasPluginInfo, RichPlugin, SciJavaPlugin, SingletonPlugin, TypedPlugin<List<?>>, Prioritized, Typed<List<?>>, DragAndDropHandler<List<?>>

public class ListDragAndDropHandler
extends AbstractDragAndDropHandler<List<?>>

Drag-and-drop handler for lists of objects.

Author:
Curtis Rueden, Barry DeZonia

Constructor Summary
ListDragAndDropHandler()
           
 
Method Summary
 boolean drop(List<?> list, Display<?> display)
          Performs a drop operation with the given data object in the specified Display.
 Class<List<?>> getType()
          Gets the type associated with the object.
 boolean supports(List<?> list, Display<?> display)
          Gets whether this handler supports dropping the given data object onto the specified display.
 
Methods inherited from class org.scijava.ui.dnd.AbstractDragAndDropHandler
check, convertData, convertDataUnchecked, convertObject, convertObjectUnchecked, dropData, dropObject, supportsData, supportsData, supportsDisplay, supportsObject, supportsObject
 
Methods inherited from class org.scijava.plugin.AbstractTypedPlugin
supports
 
Methods inherited from class org.scijava.plugin.AbstractRichPlugin
compareTo, getInfo, getPriority, setInfo, setPriority, toString
 
Methods inherited from class org.scijava.AbstractContextual
context, getContext, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.scijava.ui.dnd.DragAndDropHandler
supports
 
Methods inherited from interface org.scijava.Contextual
context, getContext, setContext
 
Methods inherited from interface org.scijava.Prioritized
getPriority, setPriority
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface org.scijava.plugin.HasPluginInfo
getInfo, setInfo
 

Constructor Detail

ListDragAndDropHandler

public ListDragAndDropHandler()
Method Detail

supports

public boolean supports(List<?> list,
                        Display<?> display)
Description copied from interface: DragAndDropHandler
Gets whether this handler supports dropping the given data object onto the specified display.

Specified by:
supports in interface DragAndDropHandler<List<?>>
Overrides:
supports in class AbstractDragAndDropHandler<List<?>>

drop

public boolean drop(List<?> list,
                    Display<?> display)
Description copied from interface: DragAndDropHandler
Performs a drop operation with the given data object in the specified Display.


getType

public Class<List<?>> getType()
Description copied from interface: Typed
Gets the type associated with the object.



Copyright © 2009–2015 SciJava. All rights reserved.