Class 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 Detail

      • CompassWidgetImpl

        public CompassWidgetImpl()
    • Method Detail

      • onEnter

        public void onEnter​(com.allen_sauer.gwt.dnd.client.DragContext context)
        Specified by:
        onEnter in interface com.allen_sauer.gwt.dnd.client.drop.DropController
      • onLeave

        public void onLeave​(com.allen_sauer.gwt.dnd.client.DragContext context)
        Specified by:
        onLeave in interface com.allen_sauer.gwt.dnd.client.drop.DropController
      • onMove

        public void onMove​(com.allen_sauer.gwt.dnd.client.DragContext context)
        Specified by:
        onMove in interface com.allen_sauer.gwt.dnd.client.drop.DropController
      • getDropPosition

        public org.uberfire.workbench.model.Position getDropPosition()
        Specified by:
        getDropPosition in interface org.uberfire.client.workbench.widgets.dnd.CompassWidget
      • getDropTarget

        public com.google.gwt.user.client.ui.Widget getDropTarget()
        Specified by:
        getDropTarget in interface com.allen_sauer.gwt.dnd.client.drop.DropController
      • onDrop

        public void onDrop​(com.allen_sauer.gwt.dnd.client.DragContext context)
        Specified by:
        onDrop in interface com.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:
        onPreviewDrop in interface com.allen_sauer.gwt.dnd.client.drop.DropController
        Throws:
        com.allen_sauer.gwt.dnd.client.VetoDragException