Start of Content Area

Background documentation TreeNodeType  Locate the document in its SAP Library structure

A TreeNodeType describes a Tree node type that, unlike the TreeItemType, can take further nodes; these are the leaves of the tree.

Note

To enable the development of accessible applications, the tooltip property is checked during the syntax check if the property text is not set.

 

Runtime Class

CL_WD_TREE_NODE_TYPE

 

Properties in the 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

dataSource

Context node

 

Mandatory

design

WDUI_TREE_NODE_DESIGN

standard

Yes

expanded

WDY_BOOLEAN

false

Yes

hasChildren

WDY_BOOLEAN

true

Yes

iconSource

STRING

 

Yes

ignoreAction

WDY_BOOLEAN

false

Yes

text

Translatable text

 

Yes

textDirection

WDUI_TEXT_DIRECTION

inherit

Yes

tooltip

Translatable text

 

Yes

 

Aggregations in the View Designer

Name

Cardinality

Type

DRAG_SOURCE_INFO

0..1

DragSourceInfo

DROP_TARGET_INFO

0..1

DropTargetInfo

MENU

0..1

Menu

 

Events in the View Designer

Name

onAction

onDrop

onLoadChildren

Note

Other properties that can be inherited are defined in the associated higher-level classes. The associated UI elements are:

        AbstractTreeNodeType

        ContextMenuProvider

        ViewElement

Dynamic Programming

For dynamic programming, the same properties, events, and aggregations as in the View Designer are available. Bear in mind the different spellings.

Dynamic Programming of Properties

View Designer Name

Runtime Name

Type

contextMenuBehaviour

CONTEXT_MENU_BEHAVIOUR

WDUI_CONTEXT_MENU_BEHAVIOUR

 contextMenuBehaviour: inherit

CL_WD_TREE_NODE_TYPE=>E_CONTEXT_MENU_BEHAVIOUR-INHERIT

 contextMenuBehaviour: provide

CL_WD_TREE_NODE_TYPE=>E_CONTEXT_MENU_BEHAVIOUR-PROVIDE

 contextMenuBehaviour: suppress

CL_WD_TREE_NODE_TYPE=>E_CONTEXT_MENU_BEHAVIOUR-SUPPRESS

contextMenuId

CONTEXT_MENU_ID

WDY_MD_UI_ELEMENT_REFERENCE

dataSource

DATA_SOURCE

OBJECT

design

DESIGN

WDUI_TREE_NODE_DESIGN

design: emphasized

CL_WD_TREE_NODE_TYPE=>E_DESIGN-EMPHASIZED

design: standard

CL_WD_TREE_NODE_TYPE=>E_DESIGN-STANDARD

expanded

EXPANDED

WDY_BOOLEAN

hasChildren

HAS_CHILDREN

WDY_BOOLEAN

iconSource

ICON_SOURCE

STRING

ignoreAction

IGNORE_ACTION

WDY_BOOLEAN

text

TEXT

WDY_MD_TRANSLATABLE_TEXT

textDirection

TEXT_DIRECTION

WDUI_TEXT_DIRECTION

textDirection inherit

CL_WD_TREE_NODE_TYPE=>E_TEXT_DIRECTION-INHERIT

textDirection ltr

CL_WD_TREE_NODE_TYPE=>E_TEXT_DIRECTION-LTR

textDirection rtl

CL_WD_TREE_NODE_TYPE=>E_TEXT_DIRECTION-RTL

tooltip

TOOLTIP

WDY_MD_TRANSLATABLE_TEXT

 

Dynamic Programming of Events

View Designer Name

Runtime Name

onAction

ON_ACTION

onDrop

ON_DROP

onLoadChildren

ON_LOAD_CHILDREN

 

Dynamic Programming of Aggregations

View Designer Name

Runtime Name

Cardinality

DRAG_SOURCE_INFO

DRAG_SOURCE_INFO

0..1

DROP_TARGET_INFO

DROP_TARGET_INFO

0..1

MENU

MENU

0..1

 

 

End of Content Area