Interface IWysiwygDragAndDropControl
- All Superinterfaces:
IWysiwygDragAndDropDataProvider
- All Known Implementing Classes:
FormWysiwygRepresentation
WYSIWYG representation with Drag'n'Drop operations support.
-
Method Summary
Modifier and TypeMethodDescriptionfindDropPosition(org.eclipse.swt.graphics.Point pointRelativeWysiwygRoot) Searches for nearest drop position for the specified point.org.eclipse.swt.graphics.PointgetPointRelativeWysiwygRoot(int x, int y) Converts input coordinates to a point relative root WYSIWYG control.getTransferObjectsToDrag(org.eclipse.swt.graphics.Point point, WysiwygSubMenuControl subMenu) Returns selection to be dragged under the specified point.voidHides all currently shown drop positions.voidCalled when real dragging started.voidopenTab(TabControl tabControl) Opens tab during Drag'n'Drop operation.voidshowDropPosition(DropPosition dropPosition) Displays drop position specified.Methods inherited from interface com._1c.g5.v8.dt.form.internal.presentation.wysiwyg.IWysiwygDragAndDropDataProvider
getBoundsRelativeWysiwygRoot, getControlUnderPoint, getRelatedControl, getRelatedFormEntity, isAutoAddedCommandBarItem, isGroupingVertical
-
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 benullsubMenu- the sub-menu control relative which the point is given ornullif point relates not to sub-menu- Returns:
- the collection of the
TransferObjectto be dragged ornullif nothing to drag
-
onDragStarted
void onDragStarted()Called when real dragging started. -
showDropPosition
Displays drop position specified.- Parameters:
dropPosition- the drop position to display
-
hideDropPositions
void hideDropPositions()Hides all currently shown drop positions. -
findDropPosition
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
nullif 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 coordinatey- the y coordinate- Returns:
- the point relative root WYSIWYG control
-
openTab
Opens tab during Drag'n'Drop operation.- Parameters:
control- the tab control to open
-