|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DropTargetHandler
The handler defining the logic for drop targets
Method Summary | |
---|---|
DropTargetHandlerFactory.Priority |
getPriority()
|
boolean |
onDrop(java.lang.String deviceId,
com.google.gwt.user.client.ui.Widget widget,
com.google.gwt.dom.client.Element dragProxy,
com.google.gwt.user.client.Event event,
java.lang.Double intersectionPercentage,
java.lang.Double intersectionPercentageWithTarget)
Invoked when a widget is dropped above the drop target |
void |
onHover(java.lang.String deviceId,
com.google.gwt.user.client.ui.Widget widget,
com.google.gwt.dom.client.Element dragProxy,
com.google.gwt.user.client.Event event,
java.lang.Double intersectionPercentage,
java.lang.Double intersectionPercentageWithTarget)
Invoked when a widget hovers the drop target |
void |
onHoverEnd(java.lang.String deviceId,
com.google.gwt.user.client.ui.Widget widget,
com.google.gwt.dom.client.Element dragProxy,
com.google.gwt.user.client.Event event)
Invoked when a widget leaves the region of the drop target |
Method Detail |
---|
boolean onDrop(java.lang.String deviceId, com.google.gwt.user.client.ui.Widget widget, com.google.gwt.dom.client.Element dragProxy, com.google.gwt.user.client.Event event, java.lang.Double intersectionPercentage, java.lang.Double intersectionPercentageWithTarget)
deviceId
- - the identifier of the device that triggered the dropwidget
- - the widget which is dragged (this is the original widget and not the dragging proxy!)dragProxy
- - the HTML element of the proxyevent
- - the event that has caused the invocation of the onEndOfDrop (e.g. a mouse up event)intersectionPercentage
- - the percentage of intersection with the drop targetintersectionPercentageWithTarget
-
void onHover(java.lang.String deviceId, com.google.gwt.user.client.ui.Widget widget, com.google.gwt.dom.client.Element dragProxy, com.google.gwt.user.client.Event event, java.lang.Double intersectionPercentage, java.lang.Double intersectionPercentageWithTarget)
deviceId
- - the identifier of the device that triggered the dropwidget
- - the widget which is dragged (this is the original widget and not the dragging proxy!)dragProxy
- - the HTML element of the proxyevent
- - the event that has caused the invocation of the onEndOfDrop (e.g. a mouse up event)intersectionPercentage
- - the percentage of intersection with the drop targetintersectionPercentageWithTarget
- void onHoverEnd(java.lang.String deviceId, com.google.gwt.user.client.ui.Widget widget, com.google.gwt.dom.client.Element dragProxy, com.google.gwt.user.client.Event event)
deviceId
- - the identifier of the device that triggered the dropwidget
- - the widget which is dragged (this is the original widget and not the dragging proxy!)dragProxy
- - the HTML element of the proxyevent
- - the event that has caused the invocation of the onEndOfDrop (e.g. a mouse up event)DropTargetHandlerFactory.Priority getPriority()
DropTargetHandlerFactory.Priority
of the drop target
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |