Interface IWysiwygDragAndDropControl

All Superinterfaces:
IWysiwygDragAndDropDataProvider
All Known Implementing Classes:
FormWysiwygRepresentation

public interface IWysiwygDragAndDropControl extends IWysiwygDragAndDropDataProvider
WYSIWYG representation with Drag'n'Drop operations support.
  • Method Details

    • getTransferObjectsToDrag

      Collection<TransferObject<?>> getTransferObjectsToDrag(org.eclipse.swt.graphics.Point point, WysiwygSubMenuControl subMenu)
      Returns selection to be dragged under the specified point.
      Parameters:
      point - the dragging point, cannot be null
      subMenu - the sub-menu control relative which the point is given or null if point relates not to sub-menu
      Returns:
      the collection of the TransferObject to be dragged or null if nothing to drag
    • onDragStarted

      void onDragStarted()
      Called when real dragging started.
    • showDropPosition

      void showDropPosition(DropPosition dropPosition)
      Displays drop position specified.
      Parameters:
      dropPosition - the drop position to display
    • hideDropPositions

      void hideDropPositions()
      Hides all currently shown drop positions.
    • findDropPosition

      DropPosition findDropPosition(org.eclipse.swt.graphics.Point pointRelativeWysiwygRoot)
      Searches for nearest drop position for the specified point. The point must be given relative root WYSIWYG control.
      Parameters:
      pointRelativeWysiwygRoot - the point for which to search the drop position
      Returns:
      the nearest drop position found or null if no such drop position
    • getPointRelativeWysiwygRoot

      org.eclipse.swt.graphics.Point getPointRelativeWysiwygRoot(int x, int y)
      Converts input coordinates to a point relative root WYSIWYG control.
      Parameters:
      x - the x coordinate
      y - the y coordinate
      Returns:
      the point relative root WYSIWYG control
    • openTab

      void openTab(TabControl tabControl)
      Opens tab during Drag'n'Drop operation.
      Parameters:
      control - the tab control to open