Entering content frame

Background documentation Label Locate the document in its SAP Library structure

The Label UI element is used for labeling other UI elements. Therefore, it is always associated with another UI elements. The appearance is defined by the design property.

If the assigned UI element has the status required, this is indicated by a small red star to the right of the label text. 

With an inactive UI element (enabled=false) the label is also indicated as inactive.

If the assigned UI element has an explanation text and the help mode is activated, this is indicated by a small / to the right of the label text. When you move the mouse over the label the text is displayed.

By clicking on the label the assigned UI element is activated (dropdown* UI elements and input fields are focused, check boxes toggled and radio buttons selected).

This UI element ensures accessibility of the Web Dynpro application.

Note

When the template is designed there is no check for the tool tip property to guarantee Accessibilty.

Example of the Display with an InputField

This graphic is explained in the accompanying text

 

Runtime Class

CL_WD_LABEL

 

Properties in the View Designer

Name

Type

Initial Value

Bindable

ID

STRING

(automatic)

No

design

WDUI_LABEL_DESIGN

standard

Yes

enabled

WDY_BOOLEAN

true

Yes

labelFor

STRING

 

No

text

Text

 

Yes

textDirection

WDUI_TEXT_DIRECTION

inherit

Yes

tooltip

Text

 

Yes

visible

WDUI_VISIBILITY

visible

Yes

width

STRING

 

Yes

wrapping

WDY_BOOLEAN

false

Yes

Note

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

·         UIElement

·         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

design

DESIGN

WDUI_LABEL_DESIGN

 design: emphasized

CL_WD_LABEL=>E_DESIGN-EMPHASIZED

 design: light

CL_WD_LABEL=>E_DESIGN-LIGHT

 design: standard

CL_WD_LABEL=>E_DESIGN-STANDARD

enabled

ENABLED

WDY_BOOLEAN

labelFor

LABEL_FOR

STRING

text

TEXT

WDY_MD_TRANSLATABLE_TEXT

textDirection

TEXT_DIRECTION

WDUI_TEXT_DIRECTION

 textDirection: inherit

CL_WD_LABEL=>E_TEXT_DIRECTION-INHERIT

 textDirection: ltr

CL_WD_LABEL=>E_TEXT_DIRECTION-LTR

 textDirection: rtl

CL_WD_LABEL=>E_TEXT_DIRECTION-RTL

tooltip

TOOLTIP

WDY_MD_TRANSLATABLE_TEXT

visible

VISIBLE

WDUI_VISIBILITY

 visible: none

CL_WD_LABEL=>E_VISIBLE-NONE

 visible: visible

CL_WD_LABEL=>E_VISIBLE-VISIBLE

width

WIDTH

STRING

wrapping

WRAPPING

WDY_BOOLEAN

Example

You can find examples of this interface element in the system in the Web Dynpro application WDR_TEST_UI_ELEMENTS, and in the component WDR_TEST_EVENTS in the View InputField.

 

 

Leaving content frame