Entering content frame

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.

 

Runtime Class

CL_WD_TREE_NODE_TYPE

 

Properties in the View Designer

Name

Type

Initial Value

Bindable

ID

STRING

(automatic)

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

Text

 

Yes

textDirection

WDUI_TEXT_DIRECTION

inherit

Yes

tooltip

Text

 

Yes

 

Aggregations in the View Designer

Name

Cardinality

Type

MENU

0..1

Menu

 

Events in the View Designer

Name

onAction

onLoadChildren

Note

Further properties that can be inherited are defined in the associated higher-level class.  The associated interface elements are:

·         AbstractTreeNodeType

·         ViewElement

Dynamic Programming

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

Dynamic Programming of Properties

View Designer Name

Runtime Name

Type

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

onLoadChildren

ON_LOAD_CHILDREN

 

Dynamic Programming of Aggregations

View Designer Name

Runtime Name

Cardinality

MENU

MENU

0..1

 

 

 

Leaving content frame