Dynamic Component View
Table of contents
Introduction
DynamicComponentView is the baseclass for all ComponentViews that are draggable. It introduces properties and functions referring to the drag and drop feature of the BGW.
Properties
isDraggable: Boolean
/ isDraggableProperty: BooleanProperty
:
Set this attribute / property to true
to enable the drag and drop feature for this DynamicComponentView. Draggable /components can be picked up by holding the left mouse button and follow the cursor until the mouse button gets released.
isDragged: Boolean
isDraggedProperty: BooleanProperty
: Represents whether this DynamicComponentView is currently dragged or not. Gets set to true
when the drag begins and to false
after mouse button was released.
Functions
onDragGestureStarted: ((DragEvent) -> Unit)?
: Gets invoked with a DragEvent whenever a drag gesture is started on this component.
onDragGestureMoved: ((DragEvent) -> Unit)?
: Gets invoked with a DragEvent whenever the mouse was moved during a drag gesture.
onDragGestureEnded: ((DropEvent, Boolean) -> Unit)?
: Gets invoked with a DragEvent after the drag gesture ended.