Show TOC

 TextViewLocate this document in the navigation structure

The TextView UI element enables text to be displayed.

Note

When using a TextView UI element, you should always add a label to ensure accessibilitysapurl_link_0001_0001_0001.

To enable the development of accessible applications, the tooltip property is not checked during the syntax check.

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.

If a TextView does not contain any text, in accessibility mode the reader reads out 'Empty'.

Examples of the Display

Runtime Class

CL_WD_TEXT_VIEW

Properties in the View Designer

Name Type Initial Value Bindable

id

STRING

(automatic)

No

contextMenuBehaviour

WDUI_CONTEXT_MENU_BEHAVIOUR

inherit

No

contextMenuId

WDY_MD_UI_ELEMENT_REFERENCE

No

design

WDUI_TEXT_VIEW_DESIGN

standard

Yes

enabled

WDY_BOOLEAN

true

Yes

hAlign

WDUI_INPUT_FIELD_ALIGNMENT

auto

Yes

layout

WDUI_TEXT_VIEW_LAYOUT

native

Yes

semanticColor

WDUI_TEXTVIEW_SEM_COL

standard

Yes

text

Translatable text

Yes

textDirection

WDUI_TEXT_DIRECTION

inherit

Yes

tooltip

Translatable text

Yes

visible

WDUI_VISIBILITY

visible

Yes

width

STRING

Yes

wrapping

WDY_BOOLEAN

false

Yes

Aggregations in the View Designer

Name Cardinality Type

Menu

0..1

Menu

Note

Other properties that can be inherited are defined in the associated higher-level classes. The associated UI elements are:

Dynamic Programming

For dynamic programming, the same properties, events, and aggregations as in the View Designer are available. Bear in mind the different spellings.

Dynamic Programming of Properties

View Designer Name Runtime Name Type

contextMenuBehaviour

CONTEXT_MENU_BEHAVIOUR

WDUI_CONTEXT_MENU_BEHAVIOUR

 contextMenuBehaviour: inherit

CL_WD_TEXT_VIEW=>E_CONTEXT_MENU_BEHAVIOUR-INHERIT

 contextMenuBehaviour: provide

CL_WD_TEXT_VIEW=>E_CONTEXT_MENU_BEHAVIOUR-PROVIDE

 contextMenuBehaviour: suppress

CL_WD_TEXT_VIEW=>E_CONTEXT_MENU_BEHAVIOUR-SUPPRESS

contextMenuId

CONTEXT_MENU_ID

WDY_MD_UI_ELEMENT_REFERENCE

design

DESIGN

WDUI_TEXT_VIEW_DESIGN

 design: emphasized

CL_WD_TEXT_VIEW=>E_DESIGN-EMPHASIZED

 design: groupTitle

CL_WD_TEXT_VIEW=>E_DESIGN-GROUP_TITLE

 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

ENABLED

WDY_BOOLEAN

hAlign

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

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

semanticColor

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

TEXT

WDY_MD_TRANSLATABLE_TEXT

textDirection

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

TOOLTIP

WDY_MD_TRANSLATABLE_TEXT

visible

VISIBLE

WDUI_VISIBILITY

 visible: none

CL_WD_TEXT_VIEW=>E_VISIBLE-NONE

 visible: visible

CL_WD_TEXT_VIEW=>E_VISIBLE-VISIBLE

width

WIDTH

STRING

wrapping

WRAPPING

WDY_BOOLEAN

Dynamic Programming of Aggregations

View Designer Name Runtime Name Cardinality

Menu

MENU

0..1

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 TEXT_VIEW.