Start of Content Area

Background documentation TextView Locate the document in its SAP Library 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 Structure linkaccessible 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 be useful to set it if it contains detailed semantic information.

Examples of the Display

This graphic is explained in the accompanying text

 

Runtime Class

CL_WD_TEXT_VIEW

 

Properties in View Designer

Name

Type

Initial Value

Bindable

ID

STRING

(automatic)

No

Structure linkdesign

WDUI_TEXT_VIEW_DESIGN

standard

Yes

Structure linkenabled

WDY_BOOLEAN

true

Yes

Structure linkhAlign

WDUI_INPUT_FIELD_ALIGNMENT

auto

Yes

Structure linklayout

WDUI_TEXT_VIEW_LAYOUT

native

Yes

Structure linksemanticColor

WDUI_TEXTVIEW_SEM_COL

standard

Yes

Structure linktext

Translatable text

 

Yes

Structure linktextDirection

WDUI_TEXT_DIRECTION

inherit

Yes

Structure linktooltip

Translatable text

 

Yes

Structure linkvisible

WDUI_VISIBILITY

visible

Yes

Structure linkwrapping

WDY_BOOLEAN

false

Yes

 

Aggregations in View Designer

Name

Cardinality

Type

Structure linkMenu

0..1

Structure linkMenu

Note

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

        Structure linkUIElement

        Structure linkViewElement

Dynamic Programming

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

Dynamic Programming of Properties

View Designer Name

Runtime Name

Type

Structure linkdesign

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

Structure linkenabled

ENABLED

WDY_BOOLEAN

Structure linkhAlign

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

Structure linklayout

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

Structure linksemanticColor

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

Structure linktext

TEXT

WDY_MD_TRANSLATABLE_TEXT

Structure linktextDirection

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

Structure linktooltip

TOOLTIP

WDY_MD_TRANSLATABLE_TEXT

Structure linkvisible

VISIBLE

WDUI_VISIBILITY

 visible: none

CL_WD_TEXT_VIEW=>E_VISIBLE-NONE

 visible: visible

CL_WD_TEXT_VIEW=>E_VISIBLE-VISIBLE

Structure linkwrapping

WRAPPING

WDY_BOOLEAN

 

Dynamic Programming of Aggregations

View Designer Name

Runtime Name

Cardinality

Structure linkMenu

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.

 

 

 

End of Content Area