Show TOC

LinkLocate this document in the navigation structure

The Link UI element is the basis for UI elements of a hypertext link type. The classes LinkToAction and LinkToURL inherit all the properties of this UI element. The UI element consists of a text and a graphic.

Note

To enable the development of accessible applications, the tooltip property is checked during the syntax check if the property text has not been set.

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.

Runtime Class

CL_WD_LINK

Properties in View Designer

Name Type Initial Value Bindable

id

STRING

(automatic)

No

activateAccessKey

WDY_BOOLEAN

false

No

contextMenuBehaviour

WDUI_CONTEXT_MENU_BEHAVIOUR

inherit

No

contextMenuId

WDY_MD_UI_ELEMENT_REFERENCE

No

design

WDUI_LINK_DESIGN

standard

Yes

enabled

WDY_BOOLEAN

true

Yes

imageFirst

WDY_BOOLEAN

true

Yes

imageHeight

STRING

Yes

imageSource

STRING

Yes

imageWidth

STRING

Yes

styleClassName STRING Yes

text

Translatable text

Yes

textDirection

WDUI_TEXT_DIRECTION

inherit

Yes

tooltip

Translatable text

Yes

visible

WDUI_VISIBILITY

visible

Yes

wrapping

WDY_BOOLEAN

false

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

activateAccessKey

ACTIVATE_ACCESS_KEY

WDY_BOOLEAN

contextMenuBehaviour

CONTEXT_MENU_BEHAVIOUR

WDUI_CONTEXT_MENU_BEHAVIOUR

 contextMenuBehaviour: inherit

CL_WD_LINK=>E_CONTEXT_MENU_BEHAVIOUR-INHERIT

 contextMenuBehaviour: provide

CL_WD_LINK=>E_CONTEXT_MENU_BEHAVIOUR-PROVIDE

 contextMenuBehaviour: suppress

CL_WD_LINK=>E_CONTEXT_MENU_BEHAVIOUR-SUPPRESS

contextMenuId

CONTEXT_MENU_ID

WDY_MD_UI_ELEMENT_REFERENCE

design

DESIGN

WDUI_LINK_DESIGN

design: emphasized

CL_WD_LINK=>E_DESIGN-EMPHASIZED

design: standard

CL_WD_LINK=>E_DESIGN-STANDARD

enabled

ENABLED

WDY_BOOLEAN

imageFirst

IMAGE_FIRST

WDY_BOOLEAN

imageHeight

IMAGE_HEIGHT

STRING

imageSource

IMAGE_SOURCE

STRING

imageWidth

IMAGE_WIDTH

STRING

styleClassName STYLE_CLASS_NAME STRING

text

TEXT

WDY_MD_TRANSLATABLE_TEXT

textDirection

TEXT_DIRECTION

WDUI_TEXT_DIRECTION

textDirection inherit

CL_WD_LINK=>E_TEXT_DIRECTION-INHERIT

textDirection ltr

CL_WD_LINK=>E_TEXT_DIRECTION-LTR

textDirection rtl

CL_WD_LINK=>E_TEXT_DIRECTION-RTL

tooltip

TOOLTIP

WDY_MD_TRANSLATABLE_TEXT

visible

VISIBLE

WDUI_VISIBILITY

visible: none

CL_WD_LINK=>E_VISIBLE-NONE

visible: visible

CL_WD_LINK=>E_VISIBLE-VISIBLE

wrapping

WRAPPING

WDY_BOOLEAN