public class GalleryDragAndDropListener extends java.lang.Object implements DragAndDropListener
addGalleryDragAndDropListener method. When
the galleryDragAndDrop event occurs, that object's appropriate
method is invoked.GalleryDragAndDropEvent| Constructor and Description |
|---|
GalleryDragAndDropListener(StudentGallery gallery,
IStage stage,
java.util.logging.Logger log)
Instantiates a new gallery drag and drop listener.
|
| Modifier and Type | Method and Description |
|---|---|
void |
itemDraggedAndDropped(IItem itemDropped,
IItem onto,
int indexOfDrop) |
public GalleryDragAndDropListener(StudentGallery gallery, IStage stage, java.util.logging.Logger log)
gallery - the gallerystage - the stagelog - the logpublic void itemDraggedAndDropped(IItem itemDropped, IItem onto, int indexOfDrop)
itemDraggedAndDropped in interface DragAndDropListeneritemDropped - Item that was dropped onto drag destination.onto - Drag destination dropped onto.indexOfDrop - If the item was on top, this will be zero, otherwise,
how far underneath the top item.