!--a11y-->
TextView 
The TextView UI element allows the display of text.

When using an TextView UI element, you should always add a label to ensure Accessibility.
When the template is designed there is no check for the tool tip property to guarantee accessibility.
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.
Example of the Display of TextView with a Label
|
|
|
|
|
|
Runtime Class |
CL_WD_TEXT_VIEW |
Properties in the View Designer
Name |
Type |
Initial Value |
Bindable |
ID |
STRING |
(automatic) |
No |
WDUI_TEXT_VIEW_DESIGN |
standard |
Yes |
|
WDY_BOOLEAN |
true |
Yes |
|
WDUI_INPUT_FIELD_ALIGNMENT |
auto |
Yes |
|
WDUI_TEXT_VIEW_LAYOUT |
native |
Yes |
|
WDUI_TEXTVIEW_SEM_COL |
standard |
Yes |
|
Text |
|
Yes |
|
WDUI_TEXT_DIRECTION |
inherit |
Yes |
|
Text |
|
Yes |
|
WDUI_VISIBILITY |
visible |
Yes |
|
WDY_BOOLEAN |
false |
Yes |
Aggregations in the View Designer
Name |
Cardinality |
Type |
0..1 |

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_TEXT_VIEW_DESIGN |
|
design: emphasized |
CL_WD_TEXT_VIEW=>E_DESIGN-EMPHASIZED |
|
design: header1 |
CL_WD_TEXT_VIEW=>E_DESIGN-HEADER1 |
|
design: header2 |
CL_WD_TEXT_VIEW=>E_DESIGN-HEADER2 |
|
design: header3 |
CL_WD_TEXT_VIEW=>E_DESIGN-HEADER3 |
|
design: header4 |
CL_WD_TEXT_VIEW=>E_DESIGN-HEADER4 |
|
design: label |
CL_WD_TEXT_VIEW=>E_DESIGN-LABEL |
|
design: label_small |
CL_WD_TEXT_VIEW=>E_DESIGN-LABEL_SMALL |
|
design: legend |
CL_WD_TEXT_VIEW=>E_DESIGN-LEGEND |
|
design: monospace |
CL_WD_TEXT_VIEW=>E_DESIGN-MONOSPACE |
|
design: reference |
CL_WD_TEXT_VIEW=>E_DESIGN-REFERENCE |
|
design: standard |
CL_WD_TEXT_VIEW=>E_DESIGN-STANDARD |
|
ENABLED |
WDY_BOOLEAN |
|
H_ALIGN |
WDUI_INPUT_FIELD_ALIGNMENT |
|
hAlign: auto |
CL_WD_TEXT_VIEW=>E_H_ALIGN-AUTO |
|
hAlign: beginOfLine |
CL_WD_TEXT_VIEW=>E_H_ALIGN-BEGIN_OF_LINE |
|
hAlign: center |
CL_WD_TEXT_VIEW=>E_H_ALIGN-CENTER |
|
hAlign: endOfLine |
CL_WD_TEXT_VIEW=>E_H_ALIGN-END_OF_LINE |
|
hAlign: forcedLeft |
CL_WD_TEXT_VIEW=>E_H_ALIGN-FORCED_LEFT |
|
hAlign: forcedRight |
CL_WD_TEXT_VIEW=>E_H_ALIGN-FORCED_RIGHT |
|
LAYOUT |
WDUI_TEXT_VIEW_LAYOUT |
|
layout: block |
CL_WD_TEXT_VIEW=>E_LAYOUT-BLOCK |
|
layout: native |
CL_WD_TEXT_VIEW=>E_LAYOUT-NATIVE |
|
layout: paragraph |
CL_WD_TEXT_VIEW=>E_LAYOUT-PARAGRAPH |
|
SEMANTIC_COLOR |
WDUI_TEXTVIEW_SEM_COL |
|
semanticColor: critical |
CL_WD_TEXT_VIEW=>E_SEMANTIC_COLOR-CRITICAL |
|
semanticColor: diminished |
CL_WD_TEXT_VIEW=>E_SEMANTIC_COLOR-DIMINISHED |
|
semanticColor: marked1 |
CL_WD_TEXT_VIEW=>E_SEMANTIC_COLOR-MARKED1 |
|
semanticColor: marked2 |
CL_WD_TEXT_VIEW=>E_SEMANTIC_COLOR-MARKED2 |
|
semanticColor: negative |
CL_WD_TEXT_VIEW=>E_SEMANTIC_COLOR-NEGATIVE |
|
semanticColor: positive |
CL_WD_TEXT_VIEW=>E_SEMANTIC_COLOR-POSITIVE |
|
semanticColor: standard |
CL_WD_TEXT_VIEW=>E_SEMANTIC_COLOR-STANDARD |
|
TEXT |
WDY_MD_TRANSLATABLE_TEXT |
|
TEXT_DIRECTION |
WDUI_TEXT_DIRECTION |
|
textDirection: inherit |
CL_WD_TEXT_VIEW=>E_TEXT_DIRECTION-INHERIT |
|
textDirection: ltr |
CL_WD_TEXT_VIEW=>E_TEXT_DIRECTION-LTR |
|
textDirection: rtl |
CL_WD_TEXT_VIEW=>E_TEXT_DIRECTION-RTL |
|
TOOLTIP |
WDY_MD_TRANSLATABLE_TEXT |
|
VISIBLE |
WDUI_VISIBILITY |
|
visible: none |
CL_WD_TEXT_VIEW=>E_VISIBLE-NONE |
|
visible: visible |
CL_WD_TEXT_VIEW=>E_VISIBLE-VISIBLE |
|
WRAPPING |
WDY_BOOLEAN |
|
Dynamic Programming of Aggregations
View Designer Name |
Runtime Name |
Cardinality |
MENU |
0..1 |
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 TEXT_VIEW.