| net.refractions.udig.internal.ui.UDIGDropHandler
UDIGDropHandler | public class UDIGDropHandler extends DropTargetAdapter (Code) | | A drop event handler which delegates to an extension point in order to perform drag and drop
actions.
The drop handler interacts with three objects.
- The type object, which is the entity being dropped.
- The destination object, which is where the drop is occuring. This is usually a view
or an editor.
- The target object (optional), which is the specific object within the destination.
A UDIGDropHandler is delegated to by another DropTargetAdapter. Depending on the type of drop
adapter, location, and target may not be set.
author: Justin Deoliveira,Refractions Research Inc.,jdeolive@refractions.net since: 0.6.0 |
Inner Class :public static class CompositeDropActionJob extends Job | |
UDIGDropHandler | public UDIGDropHandler()(Code) | | |
addListener | public void addListener(IDropHandlerListener listener)(Code) | | Add listener to set of drop listeners. A listener can only be added once.
Parameters: listener - listener to add. |
dragEnter | public void dragEnter(DropTargetEvent event)(Code) | | |
dragLeave | public void dragLeave(DropTargetEvent event)(Code) | | |
dragOperationChanged | public void dragOperationChanged(DropTargetEvent event)(Code) | | |
dragOver | public void dragOver(DropTargetEvent event)(Code) | | |
drop | public void drop(DropTargetEvent event)(Code) | | |
dropAccept | public void dropAccept(DropTargetEvent event)(Code) | | |
getActionJob | public static CompositeDropActionJob getActionJob()(Code) | | |
getTarget | public Object getTarget()(Code) | | Gets the Object the Drop event targets. For example in LayersView it would be the layer it
hit. The target is dependent on the dropListener.
|
getViewerLocation | public ViewerDropLocation getViewerLocation()(Code) | | Returns a constant describing the position of the mouse relative to the target (before, on,
or after the target.
one of the LOCATION_* constants defined in this type See Also: org.eclipse.jface.viewers.ViewerDropAdapter.getCurrentLocation |
performDrop | public void performDrop(Object data, DropTargetEvent event)(Code) | | Find drop actions for data.
Parameters: data - data dropped Parameters: event - drop event. Maybe null. |
removeListener | public void removeListener(IDropHandlerListener listener)(Code) | | Remove listener from set of listeners.
Parameters: listener - listener to remove |
setTarget | public void setTarget(Object target)(Code) | | Gets the Object the Drop event targets. For example in LayersView it would be the layer it
hit.
This is defined by the extension and should not be called by non-framework code
|
setViewerLocation | public void setViewerLocation(ViewerDropLocation location)(Code) | | a constant describing the position of the mouse relative to the target (before, on, or after
the target.
This is set by the framework
Parameters: location - one of the LOCATION_* constants defined in this type See Also: org.eclipse.jface.viewers.ViewerDropAdapter.getCurrentLocation |
|
|