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.
When the template is designed there is no check for the tool tip property to guarantee Accessibilty.
Example of the Display with an InputField
|
Runtime Class |
CL_WD_LABEL |
Properties in the View Designer
Name |
Type |
Initial Value |
Bindable |
ID |
STRING |
(automatic) |
No |
WDUI_LABEL_DESIGN |
standard |
Yes |
|
WDY_BOOLEAN |
true |
Yes |
|
STRING |
|
No |
|
Text |
|
Yes |
|
WDUI_TEXT_DIRECTION |
inherit |
Yes |
|
Text |
|
Yes |
|
WDUI_VISIBILITY |
visible |
Yes |
|
STRING |
|
Yes |
|
WDY_BOOLEAN |
false |
Yes |
Further properties that can be inherited are defined in the associated higher-level class. The associated interface elements are:
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 |
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 |
WDY_BOOLEAN |
|
LABEL_FOR |
STRING |
|
TEXT |
WDY_MD_TRANSLATABLE_TEXT |
|
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 |
WDY_MD_TRANSLATABLE_TEXT |
|
VISIBLE |
WDUI_VISIBILITY |
|
visible: none |
CL_WD_LABEL=>E_VISIBLE-NONE |
|
visible: visible |
CL_WD_LABEL=>E_VISIBLE-VISIBLE |
|
WIDTH |
STRING |
|
WRAPPING |
WDY_BOOLEAN |
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.