Show TOC

TextViewLocate this document in the navigation structure

Use

The TextView UI element enables text to be displayed.

Note

When you use the TextView UI element, make sure that you display it with a caption for application accessibility if you have not already added a Label as a prefix.

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 "Empty" is read by the screen reader.

Examples of the Display

One Label: TextView text text text text text text text text text text text text

Runtime Class

CL_WD_TEXT_VIEW

Properties in 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

menuIndicator

WDUI_TEXT_VIEW_MENU_INDICATOR

triangleOnHover

Yes

semanticColor

WDUI_TEXTVIEW_SEM_COL

standard

Yes

styleClassName STRING 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 related higher-level classes. The related UI elements are:

Dynamic Programming

For dynamic programming, the same properties, events, and aggregations as in the View Designer are available. But note that the spelling format and use of upper/lower case is different.

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

menuIndicator

MENU_INDICATOR

WDUI_TEXT_VIEW_MENU_INDICATOR

menuIndicator: iconPermanent

CL_WD_TEXT_VIEW=>E_MENU_INDICATOR-ICON_PERMANENT

menuIndicator: triangleOnHover

CL_WD_TEXT_VIEW=>E_MENU_INDICATOR-TRIANGLE_ON_HOVER

menuIndicator: trianglePermanent

CL_WD_TEXT_VIEW=>E_MENU_INDICATOR-TRIANGLE_PERMANENT

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

styleClassName STYLE_CLASS_NAME STRING

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 WDR_TEST_UI_ELEMENTS Web Dynpro application and in the WDR_TEST_EVENTS component in the TEXT_VIEW view.