public class DragHandlerAdapter extends java.lang.Object implements DragHandler
DragHandler
interface.Constructor and Description |
---|
DragHandlerAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
onDragEnd(DragEndEvent event)
Fired when drag operation terminates.
|
void |
onDragStart(DragStartEvent event)
Fired when drag is initiated.
|
void |
onPreviewDragEnd(DragEndEvent event)
Fired before
DragHandler.onDragEnd(DragEndEvent) is fired and provides an opportunity for any
registered DragHandler to throw VetoDragException to prevent the operation. |
void |
onPreviewDragStart(DragStartEvent event)
Fired before
DragHandler.onDragStart(DragStartEvent) is fired and provides an opportunity for any
registered DragHandler to throw VetoDragException to prevent the operation. |
public void onDragEnd(DragEndEvent event)
DragHandler
onDragEnd
in interface DragHandler
event
- an event object containing information about the drag operationpublic void onDragStart(DragStartEvent event)
DragHandler
onDragStart
in interface DragHandler
event
- an event object containing information about the drag operationpublic void onPreviewDragEnd(DragEndEvent event) throws VetoDragException
DragHandler
DragHandler.onDragEnd(DragEndEvent)
is fired and provides an opportunity for any
registered DragHandler to throw VetoDragException
to prevent the operation.onPreviewDragEnd
in interface DragHandler
event
- an event object containing information about the drag operationVetoDragException
- when the drag operation is unacceptablepublic void onPreviewDragStart(DragStartEvent event) throws VetoDragException
DragHandler
DragHandler.onDragStart(DragStartEvent)
is fired and provides an opportunity for any
registered DragHandler to throw VetoDragException
to prevent the operation.onPreviewDragStart
in interface DragHandler
event
- an event object containing information about the drag operationVetoDragException
- when the drag operation is unacceptable