public class BoundaryDropController extends AbsolutePositionDropController
DropController
for the Panel
which contains a
given draggable widget.Constructor and Description |
---|
BoundaryDropController(com.google.gwt.user.client.ui.AbsolutePanel dropTarget,
boolean allowDroppingOnBoundaryPanel) |
Modifier and Type | Method and Description |
---|---|
boolean |
getBehaviorBoundaryPanelDrop()
Whether or not dropping on the boundary panel is permitted.
|
void |
onPreviewDrop(DragContext context)
Called just prior to
DropController.onDrop(DragContext) to allow the drop operation to be cancelled
by throwing a VetoDragException . |
void |
setBehaviorBoundaryPanelDrop(boolean allowDroppingOnBoundaryPanel)
Set whether or not widgets may be dropped anywhere on the boundary panel.
|
drop, onDrop, onEnter, onLeave, onMove
getDropTarget
public BoundaryDropController(com.google.gwt.user.client.ui.AbsolutePanel dropTarget, boolean allowDroppingOnBoundaryPanel)
public boolean getBehaviorBoundaryPanelDrop()
true
if dropping on the boundary panel is allowedpublic void onPreviewDrop(DragContext context) throws VetoDragException
DropController
DropController.onDrop(DragContext)
to allow the drop operation to be cancelled
by throwing a VetoDragException
.onPreviewDrop
in interface DropController
onPreviewDrop
in class AbstractDropController
context
- the current drag contextVetoDragException
- if the proposed operation is unacceptablepublic void setBehaviorBoundaryPanelDrop(boolean allowDroppingOnBoundaryPanel)
false
when you only want explicitly registered drop controllers to accept drops.
Defaults to true
.allowDroppingOnBoundaryPanel
- true
to allow dropping