Entering content frame

Background documentation TriStateCheckBox Locate the document in its SAP Library structure

This UI element is similar to a CheckBox, with the difference that the clicked on status is variable:

·        Option can be activated (selected)

·        Option cannot be activated (not selected)

·        Option is unspecified

Examples of the Display

Selected

Not Selected

Not Specified

This graphic is explained in the accompanying text

This graphic is explained in the accompanying text

This graphic is explained in the accompanying text

 

Runtime Class

CL_WD_TRI_STATE_CHECKBOX

 

Properties in the View Designer

Name

Type

Initial Value

Bindable

ID

STRING

(automatic)

No

checked

WDUI_TRI_STATE

true

mandatory

enabled

WDY_BOOLEAN

true

Yes

explanation

Text

 

No

readOnly

WDY_BOOLEAN

false

Yes

state

WDUI_STATE

normal

Yes

text

Text

 

Yes

textDirection

WDUI_TEXT_DIRECTION

inherit

Yes

tooltip

Text

 

Yes

visible

WDUI_VISIBILITY

visible

Yes

 

Events in the View Designer

Name

onToggle

Note

Further properties that can be inherited are defined in the associated higher-level class.  The associated interface elements are:

·         UIElement

·         ViewElement

Dynamic Programming

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

Dynamic Programming of Properties

View Designer Name

Runtime Name

Type

checked

CHECKED

WDUI_TRI_STATE

 checked: false

CL_WD_TRI_STATE_CHECKBOX=>E_CHECKED-FALSE

 checked: true

CL_WD_TRI_STATE_CHECKBOX=>E_CHECKED-TRUE

 checked: undecided

CL_WD_TRI_STATE_CHECKBOX=>E_CHECKED-UNDECIDED

enabled

ENABLED

WDY_BOOLEAN

explanation

EXPLANATION

WDY_MD_TRANSLATABLE_TEXT

readOnly

READ_ONLY

WDY_BOOLEAN

state

STATE

WDUI_STATE

 state: normal

CL_WD_TRI_STATE_CHECKBOX=>E_STATE-NORMAL

 state: required

CL_WD_TRI_STATE_CHECKBOX=>E_STATE-REQUIRED

text

TEXT

WDY_MD_TRANSLATABLE_TEXT

textDirection

TEXT_DIRECTION

WDUI_TEXT_DIRECTION

 textDirection: inherit

CL_WD_TRI_STATE_CHECKBOX=>E_TEXT_DIRECTION-INHERIT

 textDirection: ltr

CL_WD_TRI_STATE_CHECKBOX=>E_TEXT_DIRECTION-LTR

 textDirection: rtl

CL_WD_TRI_STATE_CHECKBOX=>E_TEXT_DIRECTION-RTL

tooltip

TOOLTIP

WDY_MD_TRANSLATABLE_TEXT

visible

VISIBLE

WDUI_VISIBILITY

 visible: none

CL_WD_TRI_STATE_CHECKBOX=>E_VISIBLE-NONE

 visible: visible

CL_WD_TRI_STATE_CHECKBOX=>E_VISIBLE-VISIBLE

 

Dynamic Programming of Events

View Designer Name

Runtime Name

onToggle

ON_TOGGLE

 

 

Leaving content frame