Start of Content Area

Background documentation FrameworkLegendItem  Locate the document in its SAP Library structure

A FrameworkLegendItem is an element of a Legend that consists of a color field and a text. You can use it, for instance, to reference today's date in a calendar.

 

Runtime Class

CL_WD_FW_LEGEND_ITEM

 

Properties in the View Designer

Name

Type

Initial Value

Bindable

id

STRING

(automatic)

No

frameworkSemantics

WDUI_LEGEND_ITEM_SEMANTIC

today

Yes

text

Translatable text

 

Yes

textDirection

WDUI_TEXT_DIRECTION

inherit

Yes

tooltip

Translatable text

 

Yes

visible

WDY_BOOLEAN

true

Yes

Note

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

        AbstractLegendItem

        ViewElement

Dynamic Programming

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

Dynamic Programming of Properties

View Designer Name

Runtime Name

Type

frameworkSemantics

FW_SEMANTICS

WDUI_LEGEND_ITEM_SEMANTIC

 frameworkSemantics: subtotal

CL_WD_FW_LEGEND_ITEM=>E_FW_SEMANTICS-SUBTOTAL

 frameworkSemantics: today

CL_WD_FW_LEGEND_ITEM=>E_FW_SEMANTICS-TODAY

 frameworkSemantics: total

CL_WD_FW_LEGEND_ITEM=>E_FW_SEMANTICS-TOTAL

text

TEXT

WDY_MD_TRANSLATABLE_TEXT

textDirection

TEXT_DIRECTION

WDUI_TEXT_DIRECTION

textDirection inherit

CL_WD_FW_LEGEND_ITEM=>E_TEXT_DIRECTION-INHERIT

textDirection ltr

CL_WD_FW_LEGEND_ITEM=>E_TEXT_DIRECTION-LTR

textDirection rtl

CL_WD_FW_LEGEND_ITEM=>E_TEXT_DIRECTION-RTL

tooltip

TOOLTIP

WDY_MD_TRANSLATABLE_TEXT

visible

VISIBLE

WDY_BOOLEAN

 

 

End of Content Area