DropTarget

Use

DropTarget is the target of a Drag&Drop operation; it defines where a UI element moved by Drag&Drop is ultimately positioned. The DropTarget itself is not visualized, it is just an invisible frame or an invisible container around another UI element and prepares an area for the insertion of contents.

A DropTarget requires information about the corresponding DropTargetInfo and the UI element or the UI elements which are visualized. The aggregations below are provided for this purpose.

Runtime Class

CL_WD_DROP_TARGET

Properties in View Designer

Name

Type

Initial Value

Bindable

id

STRING

(automatic)

No

contextMenuBehaviour

WDUI_CONTEXT_MENU_BEHAVIOUR

inherit

No

contextMenuId

WDY_MD_UI_ELEMENT_REFERENCE

No

enabled

WDY_BOOLEAN

true

Yes

horizontalSizing

WDUI_HORIZONTALSIZING

push

Yes

hoverVisualization

WDUI_HOVER_VISUALIZATION

Standard

Yes

styleClassName STRING Yes

tooltip

Translatable text

Yes

verticalSizing

WDUI_VERTICALSIZING

push

Yes

visible

WDUI_VISIBILITY

visible

Yes

Aggregations in the View Designer

Name

Cardinality

Type

CONTENT

0..1

UIElement

DROP_TARGET_INFO

0..1

DropTargetInfo

Events in View Designer

Name

onDrop

Dynamic Programming

For dynamic programming, the same properties, events, and aggregations as in the View Designer are available. But note that the spelling format and use of upper/lower case is different.

Dynamic Programming of Properties

View Designer Name

Runtime Name

Type

contextMenuBehaviour

CONTEXT_MENU_BEHAVIOUR

WDUI_CONTEXT_MENU_BEHAVIOUR

 contextMenuBehaviour: inherit

CL_WD_DROP_TARGET=>E_CONTEXT_MENU_BEHAVIOUR-INHERIT

 contextMenuBehaviour: provide

CL_WD_DROP_TARGET=>E_CONTEXT_MENU_BEHAVIOUR-PROVIDE

 contextMenuBehaviour: suppress

CL_WD_DROP_TARGET=>E_CONTEXT_MENU_BEHAVIOUR-SUPPRESS

contextMenuId

CONTEXT_MENU_ID

WDY_MD_UI_ELEMENT_REFERENCE

enabled

ENABLED

WDY_BOOLEAN

horizontalSizing

HORIZONTALSIZING

WDUI_HORIZONTALSIZING

horizontalSizing: Fill

CL_WD_DROP_TARGET=>E_HORIZONTALSIZING-FILL

horizontalSizing: Push

CL_WD_DROP_TARGET=>E_HORIZONTALSIZING-PUSH

hoverVisualization

VERTICALSIZING

WDUI_VERTICALSIZING

hoverVisualization: Overlay

CL_WD_DROP_TARGET=>E_HOVER_VISUALIZATION-OVERLAY

hoverVisualization: Standard

CL_WD_DROP_TARGET=>E_HOVER_VISUALIZATION-STANDARD

styleClassName STYLE_CLASS_NAME STRING

tooltip

TOOLTIP

WDY_MD_TRANSLATABLE_TEXT

verticalSizing

VERTICALSIZING

WDUI_VERTICALSIZING

verticalSizing: Fill

CL_WD_DROP_TARGET=>E_VERTICALSIZING-FILL

verticalSizing: Push

CL_WD_DROP_TARGET=>E_VERTICALSIZING-PUSH

visible

VISIBLE

WDUI_VISIBILITY

visible: none

CL_WD_DROP_TARGET=>E_VISIBLE-NONE

visible: visible

CL_WD_DROP_TARGET=>E_VISIBLE-VISIBLE

Dynamic Programming of Events

View Designer Name

Runtime Name

onDrop

ON_DROP

Dynamic Programming of Aggregations

View Designer Name

Runtime Name

Cardinality

CONTENT

CONTENT

0..1

DROP_TARGET_INFO

DROP_TARGET_INFO

0..1

Example

You can find examples of this UI element in the WDR_TEST_DRAG_AND_DROP component.