Start of Content Area

Object documentation Toolbar  Locate the document in its SAP Library structure

Definition

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 can contain the following elements:

·        ToolBarButton, ToolBarButtonChoice, ToolBarLinkToAction, ToolBarLinkToURL, ToolBarDropDownByIndex, ToolBarDropDownByKey, ToolBarInputField, ToolBarSeparator, ToolBarToggleButton.

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.

Each individual element has the collapsible property, with which it can be hidden. If you have set at least one of these elements to collapsible, a triangle symbol appears in the toolbar at runtime via which the user can hide these elements. This is demonstrated by the following screenshots:

collapsed

This graphic is explained in the accompanying text

not collapsed

This graphic is explained in the accompanying text

You can also create all elements as ToolBarRightItems; These are then arranged starting from the right. ToolBarRightItems cannot be collapsed.

Use

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

·        Group, Tab, Table, Tray

Structure

The following UML class diagram illustrates the usage of the items in a toolbar:

This graphic is explained in the accompanying text

 

End of Content Area