!--a11y-->
CheckBox API 
The checkbox enables the user to select a Boolean value (true/false). The UI element consists of a graphic with text. The checkmark in the box indicates that the option is selected and the value is set to true.
The Web Dynpro class Checkbox which implements the IWDCheckBox interface is the base class of checkboxes.
·
checked
Specifies whether or
not a checkbox is selected. The
Boolean value true indicates that the option is selected. A checkmark
appears in the graphic that is displayed on the screen.
Short Description |
Visual Display |
|
|
|
·
readOnly
Specifies whether or
not the user can check the checkbox.
·
state
Describes the error
status of the UI element. The
data type of this property corresponds to the enumeration type WDState. You
can use the following values in the application:
normal |
Describes the default state of the UI element. |
required |
Specifies whether the entered value is required. |
·
text
Specifies the text
that is associated with the checkbox graphic and displayed to the right of the
box.
·
textDirection
Specifies the text direction and allows you to use a MenuActionItem element
for texts in languages which require a specific text direction. The textDirection property can be filled with the following
values and is represented by the enumeration type WDTextDirection.
The text direction is inherited from the parent element. Therefore, the text direction is identical to the one of the parent element. |
|
· The default value for this property is inherit.
Name |
Interface |
Type |
Initial Value |
Bindable |
Value Required |
checked |
IWDAbstractToggle |
boolean |
false |
bindable_mandatory |
No |
enabled |
IWDUIElement |
boolean |
true |
bindable |
No |
readOnly |
IWDCheckBox |
boolean |
false |
bindable |
No |
state |
IWDCheckBox |
WDState |
normal |
bindable |
No |
text |
IWDAbstractToggle |
String (TranslatableText) |
|
bindable |
No |
textDirection |
IWDAbstractToggle |
WDTextDirection |
inherit |
bindable |
No |
tooltip |
IWDUIElement |
String (TranslatableText) |
|
bindable |
No |
visible |
IWDUIElement |
WDVisibility |
visible |
bindable |
No |
·
onToggle
(boolean checked)
The onToggle event of the type IWDAbstractToggle is executed by
clicking the checkbox. The
transfer parameter is the new status.
See Event Parameter and
Parameter Mapping.