Show TOC

FormattedTextEditLocate this document in the navigation structure

Use

FormattedTextEdit is used to edit formatted text. For the most part FormattedTextEdit corresponds to FormattedTextView.

Possible formats are:

  • Headers 1 to 3

  • Alphabetical and non-alphabetical lists

  • Indentations

  • Text printed in bold and italics

All formatting options contained in the toolbar can be used. The formatting options correspond to the XHTML conventions Note that in XHTML is deprecated and is therefore not included.

Note

Images, links, underscores, and colors are not possible.

Example of the Visual Display

Runtime Class

CL_WD_FORMATTED_TEXT_EDIT

Properties in View Designer

Name

Type

Initial Value

Bindable

id

STRING

(automatic)

No

contextMenuBehaviour

WDUI_CONTEXT_MENU_BEHAVIOUR

inherit

No

contextMenuId

STRING

No

enabled

WDY_BOOLEAN

true

Yes

height

STRING

Yes

imeMode

WDUI_IMEMODE

auto

Yes

readOnly

WDY_BOOLEAN

false

Yes

state

WDUI_STATE

normal

Yes

styleClassName STRING Yes

textDirection

WDUI_TEXT_DIRECTION

inherit

Yes

tooltip

Translatable text

Yes

value

Translatable text

Mandatory

visible

WDUI_VISIBILITY

visible

Yes

width

STRING

Yes

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_LABEL=>E_CONTEXT_MENU_BEHAVIOUR-INHERIT

 contextMenuBehaviour: provide

CL_WD_LABEL=>E_CONTEXT_MENU_BEHAVIOUR-PROVIDE

 contextMenuBehaviour: suppress

CL_WD_LABEL=>E_CONTEXT_MENU_BEHAVIOUR-SUPPRESS

contextMenuId

CONTEXT_MENU_ID

WDY_MD_UI_ELEMENT_REFERENCE

enabled

ENABLED

WDY_BOOLEAN

height

HEIGHT

STRING

imeMode

IME_MODE

WDUI_IMEMODE

imeMode: active

CL_WD_FORMATTED_TEXT_EDIT=>E_IME_MODE-ACTIVE

imeMode: auto

CL_WD_FORMATTED_TEXT_EDIT=>E_IME_MODE-AUTO

imeMode: disabled

CL_WD_FORMATTED_TEXT_EDIT=>E_IME_MODE-DISABLED

imeMode: inactive

CL_WD_FORMATTED_TEXT_EDIT=>E_IME_MODE-INACTIVE

readOnly

READ_ONLY

WDY_BOOLEAN

state

STATE

WDUI_STATE

state: normal

CL_WD_FORMATTED_TEXT_EDIT=>E_STATE-NORMAL

state: required

CL_WD_FORMATTED_TEXT_EDIT=>E_STATE-REQUIRED

styleClassName STYLE_CLASS_NAME STRING

textDirection

TEXT_DIRECTION

WDUI_TEXT_DIRECTION

textDirection inherit

CL_WD_LABEL=>E_TEXT_DIRECTION-INHERIT

textDirection ltr

CL_WD_LABEL=>E_TEXT_DIRECTION-LTR

textDirection rtl

CL_WD_LABEL=>E_TEXT_DIRECTION-RTL

tooltip

TOOLTIP

WDY_MD_TRANSLATABLE_TEXT

value

VALUE

WDY_MD_TRANSLATABLE_TEXT

visible

VISIBLE

WDUI_VISIBILITY

visible: none

CL_WD_LABEL=>E_VISIBLE-NONE

visible: visible

CL_WD_LABEL=>E_VISIBLE-VISIBLE

width

WIDTH

STRING

Example

You can find examples in the system in the Web Dynpro application demo_uiel_formatted_text_edit. You can switch between the FormattedTextView and the FormattedTextEdit using a button.