|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.allen_sauer.gwt.dnd.client.drop.AbstractDropController
com.allen_sauer.gwt.dnd.client.drop.AbstractPositioningDropController
com.allen_sauer.gwt.dnd.client.drop.AbsolutePositionDropController
public class AbsolutePositionDropController
A DropController
which allows a draggable widget to be placed at specific (absolute)
locations on an AbsolutePanel
drop target.
Field Summary | |
---|---|
protected int |
dropTargetClientHeight
|
protected int |
dropTargetClientWidth
|
protected int |
dropTargetOffsetX
|
protected int |
dropTargetOffsetY
|
Constructor Summary | |
---|---|
AbsolutePositionDropController(com.google.gwt.user.client.ui.AbsolutePanel dropTarget)
Basic constructor. |
Method Summary | |
---|---|
void |
drop(com.google.gwt.user.client.ui.Widget widget,
int left,
int top)
Programmatically drop a widget on our drop target while obeying the constraints of this controller. |
protected java.util.List<Draggable> |
getDraggableList()
|
void |
onDrop(DragContext context)
Called when the draggable widget or its proxy is dropped on our drop target. |
void |
onEnter(DragContext context)
Called when the draggable widget or its proxy engages our drop target. |
void |
onLeave(DragContext context)
Called when the reference widget stops engaging our drop target by leaving the area of the page occupied by our drop target, or after DropController.onDrop(DragContext) to allow for any cleanup. |
void |
onMove(DragContext context)
Called with each mouse movement while the reference widget is engaging our drop target. |
Methods inherited from class com.allen_sauer.gwt.dnd.client.drop.AbstractDropController |
---|
getDropTarget, onPreviewDrop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int dropTargetClientHeight
protected int dropTargetClientWidth
protected int dropTargetOffsetX
protected int dropTargetOffsetY
Constructor Detail |
---|
public AbsolutePositionDropController(com.google.gwt.user.client.ui.AbsolutePanel dropTarget)
dropTarget
- the absolute panel drop targetMethod Detail |
---|
protected java.util.List<Draggable> getDraggableList()
public void drop(com.google.gwt.user.client.ui.Widget widget, int left, int top)
widget
- the widget to be droppedleft
- the desired absolute horizontal location relative to our drop targettop
- the desired absolute vertical location relative to our drop targetpublic void onDrop(DragContext context)
DropController
onDrop
in interface DropController
onDrop
in class AbstractDropController
context
- the current drag contextDropController.onPreviewDrop(DragContext)
public void onEnter(DragContext context)
DropController
onEnter
in interface DropController
onEnter
in class AbstractDropController
context
- the current drag contextDropController.onLeave(DragContext)
public void onLeave(DragContext context)
DropController
DropController.onDrop(DragContext)
to allow for any cleanup.
onLeave
in interface DropController
onLeave
in class AbstractDropController
context
- the current drag contextDropController.onEnter(DragContext)
public void onMove(DragContext context)
DropController
DropController.onEnter(DragContext)
is called before this method is called.
onMove
in interface DropController
onMove
in class AbstractDropController
context
- the current drag contextDropController.onEnter(DragContext)
,
DropController.onLeave(DragContext)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |