Entering content frame

Background documentation TreeItemType Locate the document in its SAP Library structure

A TreeItemType describes a Tree node type that, unlike the TreeNodeType, cannot take any further nodes, they are the leaves of the tree.

 

Runtime Class

CL_WD_TREE_ITEM_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

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

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 provide 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_ITEM_TYPE=>E_DESIGN-EMPHASIZED

 design: standard

CL_WD_TREE_ITEM_TYPE=>E_DESIGN-STANDARD

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_ITEM_TYPE=>E_TEXT_DIRECTION-INHERIT

 textDirection: ltr

CL_WD_TREE_ITEM_TYPE=>E_TEXT_DIRECTION-LTR

 textDirection: rtl

CL_WD_TREE_ITEM_TYPE=>E_TEXT_DIRECTION-RTL

tooltip

TOOLTIP

WDY_MD_TRANSLATABLE_TEXT

 

Dynamic Programming of Events

View Designer Name

Runtime Name

onAction

ON_ACTION

 

Dynamic Programming of Aggregations

View Designer Name

Runtime Name

Cardinality

MENU

MENU

0..1

 

 

Leaving content frame