Start of Content Area

Background documentation TextView Properties  Locate the document in its SAP Library structure

Properties in the View Designer

      design

Appearance of the TextView UI element. The portal themes provided by SAP describe the variations of the design attribute display.

This property can be personalized by an administrator.

Value

Visual Display

Description

emphasized

This graphic is explained in the accompanying text

Text is highlighted in default size

groupTitle

This graphic is explained in the accompanying text

Header for forms

Caution

This enumeration value is deprecated. Instead, use SectionHeader.

If accessibility mode is activated, with TextView.design=groupTitle the TextView is not integrated in the tab chain, and it must be repeated in the surrounding Container. This is because a ScrollContainer or TransparentContainer with scrollingMode=none (TransparentContainer) is used to group form elements. The title should then be read by a screen reader when the user navigates to the Container. For this reason the text of the accessibilityDescription of the ScrollContainer or TransparentContainer must be added. To prevent the text from being read twice, the TextView with design=groupTitle is not contained in the tab chain.

header1

This graphic is explained in the accompanying text

Text is highlighted with font size +4 in relation to the default font size.

header2

This graphic is explained in the accompanying text

Text is highlighted with font size +5.08 cm in relation to the default font size.

header3

This graphic is explained in the accompanying text

Text is highlighted in default size

header4

This graphic is explained in the accompanying text

Text is highlighted in font size -1 (small) in relation to the default font size (as with the legend but highlighted)

label

This graphic is explained in the accompanying text

Text is display in the default font type. A space is always inserted after the text.

label_small

This graphic is explained in the accompanying text

Text is displayed in default font type, as with label, only with font size is -1 (as with the font size for header4).

legend

This graphic is explained in the accompanying text

Text is displayed with default font type in size -1.

reference

This graphic is explained in the accompanying text

Text is in italics and in default font size.

standard

This graphic is explained in the accompanying text

Text is displayed in default font size. No text attributes are defined for this value.

monospace

This graphic is explained in the accompanying text

Text is displayed in no-proportional font type. Each letter takes up the same space.

      hAlign

Horizontal alignment of the content with the TextView UI element.

Note

To position the text, SAP recommends setting the hAlign value in the LayoutData of the UI element and TableColumn.hAlign and not to use TextView.hAlign. If, however, you do use TextView.hAlign, you should define TextView.layout=block and set a suitable width.

This property can be personalized by an administrator.

Value

Description

auto

Automatic alignment of the text content. The alignment is determined by the data type of the value to be displayed.

center

Centered alignment

forcedLeft

The text content is always left-justified, regardless of whether the value is ltr or rtl for the textDirection property.

endOfLine

The text is always displayed at the end of the line. Therefore, if property textDirection is set to ltr, the text content is right-justified. The text content for the value rtl is left-justified.

forcedRight

The text content is always right-justified, regardless of whether the value is ltr or rtl for the textDirection property.

beginOfLine

The text is always displayed at the beginning of the line. Therefore, the text content for value ltr of property textDirection is left-justified. The text content for the value rtl is right-justified.

      layout

Alignment of the text in the TextView.

This property can be personalized by an administrator.

                                                  i.       Value

                                                ii.       Description

                                               iii.       Can be set using personalization

                                               iv.       block

                                                 v.       Displays the TextView element in a <div> tag.

                                               vi.       See also: property hAlign

                                              vii.       Yes

                                            viii.       native

                                              ix.       Standard display.

                                                x.       Displays the TextView element in a <span> tag.

                                              xi.       Yes

                                             xii.       paragraph

                                           xiii.       Displays the TextView element in a <p> tag.

                                            xiv.       Yes

 

      semanticColor

Semantic color

Note

Note that with regard to accessibility, the description of the color, for example “negative value”, is automatically included in the tooltip. For accessibility reasons, the colors can be used only in accordance with their semantic meaning.

This property can be personalized by an administrator.

Value

Visual Display

Description

standard

This graphic is explained in the accompanying text

Standard display

diminished

This graphic is explained in the accompanying text

Grayed-out display

positive

This graphic is explained in the accompanying text

Display as positive

critical

This graphic is explained in the accompanying text

Critical display

negative

This graphic is explained in the accompanying text

Display as negative

marked1

This graphic is explained in the accompanying text

First level selection

marked2

This graphic is explained in the accompanying text

Second level selection

      text

Label text

Note

Note that each occurrence of cl_abap_char_utilities=>newline in this property is replaced by a line break in the browser display.

Primary Property

This property can be personalized by an administrator.

 

Text or writing direction.

This enables labels of interface elements to be read in languages that have an RTL writing direction, such as Arabic or Hebrew, as opposed to LTR for languages like English.

This property can be personalized by an administrator.

Value

Description

INHERIT

The text direction is inherited from the parent element. Therefore, the text direction is identical to that of the parent element.

LTR

Left to right text direction

RTL

Right to left text direction

      width

Width of the UI element; see also Methods and Properties of UI Elements.

The specification of width:

       wrapping=true

If required it can be wrapped. The width cannot be guaranteed.

       wrapping=false

The text has precisely the specified width. If necessary, the text display is shortened with "...".

      wrapping

Determines whether the text can be wrapped to the next line, if the space is not sufficient for the surrounding layout. Otherwise the TextView must be as wide as the contained text space and the surrounding layout is correspondingly widened.

This property can be personalized by an administrator.

 

 

 

End of Content Area