DropTarget 
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.
Note
To drop an element with DragSourceInfo into table cells, use DropTargetCellEditor as the cell editot in Table and CTable.
Runtime Class |
CL_WD_DROP_TARGET |
Properties in View Designer
Name |
Type |
Initial Value |
Bindable |
|---|---|---|---|
STRING |
(automatic) |
No |
|
WDUI_CONTEXT_MENU_BEHAVIOUR |
inherit |
No |
|
WDY_MD_UI_ELEMENT_REFERENCE |
No |
||
WDY_BOOLEAN |
true |
Yes |
|
WDUI_HOVER_VISUALIZATION |
Standard |
Yes |
|
Translatable text |
Yes |
||
WDUI_VERTICALSIZING |
push |
Yes |
|
WDUI_VISIBILITY |
visible |
Yes |
Aggregations in View Designer
Name |
Cardinality |
Type |
|---|---|---|
0..1 |
||
0..1 |
Events in View Designer
Name |
|---|
Note
Other properties that can be inherited are defined in the related higher-level classes. The related UI elements are:
For dynamic programming, the same properties, events and aggregations are available as in the View Designer. Note the different spellings.
Dynamic Programming of Properties
View Designer Name |
Runtime Name |
Type |
|---|---|---|
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 |
|
CONTEXT_MENU_ID |
WDY_MD_UI_ELEMENT_REFERENCE |
|
ENABLED |
WDY_BOOLEAN |
|
VERTICALSIZING |
WDUI_VERTICALSIZING |
|
hoverVisualization: Overlay |
CL_WD_DROP_TARGET=>E_HOVER_VISUALIZATION-OVERLAY |
|
hoverVisualization: Standard |
CL_WD_DROP_TARGET=>E_HOVER_VISUALIZATION-STANDARD |
|
TOOLTIP |
WDY_MD_TRANSLATABLE_TEXT |
|
VERTICALSIZING |
WDUI_VERTICALSIZING |
|
verticalSizing: Fill |
CL_WD_DROP_TARGET=>E_VERTICALSIZING-FILL |
|
verticalSizing: Push |
CL_WD_DROP_TARGET=>E_VERTICALSIZING-PUSH |
|
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 |
|---|---|
ON_DROP |
Dynamic Programming of Aggregations
View Designer Name |
Runtime Name |
Cardinality |
|---|---|---|
CONTENT |
0..1 |
|
DROP_TARGET_INFO |
0..1 |
You can find examples of this UI element in the WDR_TEST_DRAG_AND_DROP component.