public class DefaultDragAndDropService extends AbstractHandlerService<Object,DragAndDropHandler<Object>> implements DragAndDropService
| Constructor and Description |
|---|
DefaultDragAndDropService() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
drop(DragAndDropData data,
Display<?> display)
Performs a drag-and-drop operation in the given display with the specified
DragAndDropData, using the first available compatible handler. |
boolean |
drop(Object data,
Display<?> display)
Performs a drag-and-drop operation in the given display with the specified
data object, using the first available compatible handler.
|
DragAndDropHandler<?> |
getHandler(DragAndDropData data,
Display<?> display)
Gets the drag-and-drop handler which will be used to handle the given
DragAndDropData dragged onto the specified display. |
DragAndDropHandler<?> |
getHandler(Object object,
Display<?> display)
Gets the drag-and-drop handler which will be used to handle the given
object dragged onto the specified display.
|
Class<DragAndDropHandler<Object>> |
getPluginType()
Gets the type of plugins managed by this service.
|
Class<Object> |
getType()
Gets the type associated with the object.
|
protected void |
onEvent(DragEnterEvent e) |
protected void |
onEvent(DragExitEvent e) |
protected void |
onEvent(DragOverEvent e) |
protected void |
onEvent(DropEvent e) |
boolean |
supports(DragAndDropData data,
Display<?> display)
Checks whether the given
DragAndDropData can be dropped onto the
specified display. |
boolean |
supports(Object object,
Display<?> display)
Checks whether the given object can be dropped onto the specified display.
|
getHandler, supportsgetInstance, getInstances, objectServicepluginServicedispose, getContext, setContext, toStringgetInfo, getPriority, setInfo, setPrioritycontextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetInstancesgetHandler, supportscreate, filterInstances, getInstance, initialize, objectServicefindgetPlugins, getPluginService, pluginServiceregisterEventHandlersgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersiondisposepublic boolean supports(DragAndDropData data, Display<?> display)
DragAndDropServiceDragAndDropData can be dropped onto the
specified display. A (data, display) pair is deemed compatible if a
compatible handler exists for them.supports in interface DragAndDropServiceDragAndDropHandlerpublic boolean supports(Object object, Display<?> display)
DragAndDropServicesupports in interface DragAndDropServiceDragAndDropHandlerpublic boolean drop(DragAndDropData data, Display<?> display)
DragAndDropServiceDragAndDropData, using the first available compatible handler.drop in interface DragAndDropServiceDragAndDropHandlerpublic boolean drop(Object data, Display<?> display)
DragAndDropServicedrop in interface DragAndDropServiceDragAndDropHandlerpublic DragAndDropHandler<?> getHandler(DragAndDropData data, Display<?> display)
DragAndDropServiceDragAndDropData dragged onto the specified display.getHandler in interface DragAndDropServicepublic DragAndDropHandler<?> getHandler(Object object, Display<?> display)
DragAndDropServicegetHandler in interface DragAndDropServicepublic Class<DragAndDropHandler<Object>> getPluginType()
PTServicegetPluginType in interface PTService<DragAndDropHandler<Object>>public Class<Object> getType()
Typedprotected void onEvent(DragEnterEvent e)
protected void onEvent(DragExitEvent e)
protected void onEvent(DragOverEvent e)
protected void onEvent(DropEvent e)
Copyright © 2009–2016 SciJava. All rights reserved.