Class CompassWidgetImpl
- java.lang.Object
-
- org.uberfire.client.views.pfly.dnd.CompassWidgetImpl
-
- All Implemented Interfaces:
com.allen_sauer.gwt.dnd.client.drop.DropController,org.uberfire.client.workbench.widgets.dnd.CompassWidget
@ApplicationScoped public class CompassWidgetImpl extends Object implements org.uberfire.client.workbench.widgets.dnd.CompassWidget
A pop-up widget with arrows in the four cardinal directions, each of which is a separate drop target. The center of the widget is a fifth drop target representing the parent widget itself. The compass centers itself over its parent's Drop Target when displayed.
-
-
Constructor Summary
Constructors Constructor Description CompassWidgetImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.uberfire.workbench.model.PositiongetDropPosition()com.google.gwt.user.client.ui.WidgetgetDropTarget()voidonDrop(com.allen_sauer.gwt.dnd.client.DragContext context)voidonEnter(com.allen_sauer.gwt.dnd.client.DragContext context)voidonLeave(com.allen_sauer.gwt.dnd.client.DragContext context)voidonMove(com.allen_sauer.gwt.dnd.client.DragContext context)voidonPreviewDrop(com.allen_sauer.gwt.dnd.client.DragContext context)
-
-
-
Field Detail
-
FA_ACTIVE
public static final String FA_ACTIVE
- See Also:
- Constant Field Values
-
-
Method Detail
-
onEnter
public void onEnter(com.allen_sauer.gwt.dnd.client.DragContext context)
- Specified by:
onEnterin interfacecom.allen_sauer.gwt.dnd.client.drop.DropController
-
onLeave
public void onLeave(com.allen_sauer.gwt.dnd.client.DragContext context)
- Specified by:
onLeavein interfacecom.allen_sauer.gwt.dnd.client.drop.DropController
-
onMove
public void onMove(com.allen_sauer.gwt.dnd.client.DragContext context)
- Specified by:
onMovein interfacecom.allen_sauer.gwt.dnd.client.drop.DropController
-
getDropPosition
public org.uberfire.workbench.model.Position getDropPosition()
- Specified by:
getDropPositionin interfaceorg.uberfire.client.workbench.widgets.dnd.CompassWidget
-
getDropTarget
public com.google.gwt.user.client.ui.Widget getDropTarget()
- Specified by:
getDropTargetin interfacecom.allen_sauer.gwt.dnd.client.drop.DropController
-
onDrop
public void onDrop(com.allen_sauer.gwt.dnd.client.DragContext context)
- Specified by:
onDropin interfacecom.allen_sauer.gwt.dnd.client.drop.DropController
-
onPreviewDrop
public void onPreviewDrop(com.allen_sauer.gwt.dnd.client.DragContext context) throws com.allen_sauer.gwt.dnd.client.VetoDragException- Specified by:
onPreviewDropin interfacecom.allen_sauer.gwt.dnd.client.drop.DropController- Throws:
com.allen_sauer.gwt.dnd.client.VetoDragException
-
-