Start of Content Area

Background documentation Menu  Locate the document in its SAP Library structure

You use this UI element to create a menu for your UI element. This is done with aggregation and is available for the following UI elements:

      LinkToURL

      LinkToAction

      TextView

      Image

      ProgressIndicator

      AbstractTreeNodeType

Example of the visual display

LinkToURL with Menu

This graphic is explained in the accompanying text

Note

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

 

Runtime class

CL_WD_MENU

 

Properties in the View Designer

Name

Type

Initial value

Bindable

id

STRING

(automatic)

No

textDirection

WDUI_TEXT_DIRECTION

inherit

Yes

title

Translatable text

 

Yes

visible

WDY_BOOLEAN

true

Yes

 

Aggregations in the View Designer

Name

Cardinality

Type

Menu Entry

0..n

MenuItem

Note

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

        MenuItem

        ViewElement

Dynamic Programming

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

Dynamic programming of properties

View Designer name

Runtime name

Type

textDirection

TEXT_DIRECTION

WDUI_TEXT_DIRECTION

 textDirection: inherit

CL_WD_MENU=>E_TEXT_DIRECTION-INHERIT

 textDirection: ltr

CL_WD_MENU=>E_TEXT_DIRECTION-LTR

 textDirection: rtl

CL_WD_MENU=>E_TEXT_DIRECTION-RTL

title

TITLE

WDY_MD_TRANSLATABLE_TEXT

visible

VISIBLE

WDY_BOOLEAN

 

Dynamic programming of aggregations

View Designer name

Runtime name

Cardinality

Menu Entry

ITEMS

0..n

Example

There is a system example for this UI element in the DEMO_UIEL_MENU component in the DEMO_UIEL_MENUBAR application.

 

End of Content Area