Entering content frame

Background documentation ToolBar Locate the document in its SAP Library structure

The Toolbar UI element is a collection of tools that can be accessed using UI elements. Therefore, toolbars provide are an additional way of grouping UI elements functionally.

A toolbar is no independent user interface element and can only be used in the following elements:

·        Group

·        Tab

·        Table

·        Tray

A toolbar can contain the following elements:

·        ToolBarButton

·        ToolBarButtonChoice

·        ToolBarDropDownByIndex

·        ToolBarDropDownByKey

·        ToolBarInputField

·        ToolBarLinkToAction

·        ToolBarLinkToURL

·        ToolBarSeparator

·        ToolBarToggleButton

Each individual element has the collapsible property, with which it can be hidden. All elements that can be collapsed together can be hidden in a small triangular symbol This graphic is explained in the accompanying text .

 

These toolbar elements are horizontally arranged in one row of the toolbar. The size and position of the individual UI elements are automatically calculated. You can use the wrapping property to determine whether a line break can be applied to the elements in a row.

 

To find out how to download a file without using the UI element see File Export.

 

Note

During the design time the properties accessibilityDescription and tooltip are not checked.

A tooltip does not necessarily have to be set for this UI element, but it could make sense to set it if it contains detailed semantic information.

 

Runtime Class

CL_WD_TOOLBAR

 

Properties in the View Designer

Name

Type

Initial Value

Bindable

ID

STRING

(automatic)

no

accessibilityDescription

Text

 

yes

design

WDUI_TOOLBAR_DESIGN

standard

yes

enabled

WDY_BOOLEAN

true

yes

visible

WDUI_VISIBILITY

visible

yes

wrapping

WDY_BOOLEAN

true

yes

 

Aggregations in the View Designer

Name

Cardinality

Type

Toolbar-Element

0..n

ToolBarItem

rechtsb. Toolbar-El.

0..n

ToolBarItem

Note

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

·         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

accessibilityDescription

ACCESSIBILITY_DESCR

WDY_MD_TRANSLATABLE_TEXT

design

DESIGN

WDUI_TOOLBAR_DESIGN

 design: emphasized

CL_WD_TOOLBAR=>E_DESIGN-EMPHASIZED

 design: standard

CL_WD_TOOLBAR=>E_DESIGN-STANDARD

enabled

ENABLED

WDY_BOOLEAN

visible

VISIBLE

WDUI_VISIBILITY

 visible: none

CL_WD_TOOLBAR=>E_VISIBLE-NONE

 visible: visible

CL_WD_TOOLBAR=>E_VISIBLE-VISIBLE

wrapping

WRAPPING

WDY_BOOLEAN

 

Dynamic Programming of Aggregations

View Designer Name

Runtime Name

Cardinality

Toolbar-Element

TOOLBAR_ITEMS

0..n

rechtsb. Toolbar-El.

TOOLBAR_RIGHT_ITEMS

0..n

Example

You can find examples in the system in the Web Dynpro application, WDR_TEST_UI_ELEMENTS.

 

 

Leaving content frame